Help with a table

TheDZA
TheDZA
edited March 2012 in Campaign Portal Building
Hello! I'm pretty new to the community and in the process of working on my campaign. I've created a table for a "new class":http://www.obsidianportal.com/campaign/the-seventon/wikis/swashbuckler using the guide "here":http://redcloth.org/hobix.com/textile/ but when I save the page it creates a HUGE gap between text. Any ideas on how I can fix that? Thanks!

Comments

  • magavendon
    magavendon
    Posts: 112
    I take it you want something like:
    table{width:25%}.
    {background:#ddd}. |Number|Die Type|
    |0 or 1|Nothing|
    |2 or 3|d4|
    |4 or 5|d6|
    |6 or 7|d8|
    |8 or 9|d10|

    which is created with the following code:
    ==table{width:25%}.==
    =={background:#ddd}. |Number[1]|Die Type|==
    ==|0 or 1|Nothing|==
    ==|2 or 3|d4|==
    ==|4 or 5|d6|==
    ==|6 or 7|d8|==
    ==|8 or 9|d10|==

    The top row's background doesn't seem to work here in the forums, but it works in a "wiki":http://www.obsidianportal.com/campaign/fronos/wikis/dice. If you have any questions about this feel free to ask.
  • TheDZA
    TheDZA
    Posts: 4
    Thanks for your response! This is the code I used, and the table itself looks great but it's the massive amount of space it puts between the paragraph before the table and the table itself that I can't figure out how to fix. I'm not really proficient with writing any type of code so maybe there is something wrong with how I've done it.



    LVL 

    BAB 

    F

    R 

    W 

    AC 

    Special 



    1st 

    +1 

    +0 

    +2 

    +0 

    +1 

    Bravado, Panache, Weapon Finesse 


  • magavendon
    magavendon
    Posts: 112 edited March 2012
    Unfortunately Obsidian Portal does some weird things with HTML tags sometimes and in this case that's what's happening. In your attempt to make the _code_ look nice your _page_ suffers. In other words, it is picking up all of your returns that you are using to make the code look good and placing them before your table in the page. To fix this you only need to change your code to this:

    

 LVL 
 BAB 
 F
 R 
 W 
 AC 
 Special 

 1st 
 +1 
 +0 
 +2 
 +0 
 +1 
 Bravado, Panache, Weapon Finesse 




    But as you can see, that is a lot harder to read when editing files, it will get rid of all that extra space, however.

    Furthermore, if you have your paragraph text, or whatever it is, and then have an empty space in your code before starting the table, that will generate a lot of empty space in the page too. You can just start the table tag in the _very next_ line after your text to get rid of a lot of space as well.

    If you have problems with any of that let me know.
    Post edited by magavendon on
  • TheDZA
    TheDZA
    Posts: 4
    Ah! I see what you're saying. I never would have put that together. Thank you very much! I'll give it a shot.
  • Leonidas300
    Leonidas300
    Posts: 284
    I had some of the same issues and my coding skills are meager at best, my work around was to do the chart in excel, print it to pdf, convert the pdf to a jpeg, then crop the jpeg and upload to my pic's on the portal, then insert on your page

    "Manifestation of Chaos Chart":http://www.obsidianportal.com/campaign/metzger/wikis/magical-item-crafting-costs-pathfinder

    obviously the smaller the chart the better it looks but these still look good
  • GamingMegaverse
    GamingMegaverse
    Posts: 3,037 edited March 2012
    Wow Leonidas, there are plenty of us that would have helped there....you didn't have to do that... I have to admit, as long as they are static charts, they look really good!
    killervp
    "A God...Rebuilt":http://www.obsidianportal.com/campaigns/a-god-rebuilt
    "Duskreign's First Ever COTM":http://www.obsidianportal.com/campaigns/wyrmshadow/wiki_pages/112011
    Post edited by GamingMegaverse on

    Just trying to help out.

  • magavendon
    magavendon
    Posts: 112
    Wow, those charts do look good! That is definitely one way to do it, and I think that worked out pretty well, could be a good method for charts that aren't supposed to change much, if any.
  • TheDZA
    TheDZA
    Posts: 4
    Magavendon that absolutely did the trick. Thanks! Leonidas those charts look really good. That's a good idea that I might have to steal later, my coding skills could also be described as "meager at best"!
  • magavendon
    magavendon
    Posts: 112
    No problem, glad to help!
Sign In or Register to comment.

September 2026
City of Shadows

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions