Table auto-fit behavior

Savannah
Savannah
edited January 2012 in Campaign Portal Building
Every time I've tried to make a table, it's spread out to fill the window. I'd like it to fit to the contents (each column only as wide as the widest cell contents). Is there a way to do this?

Comments

  • JohnHutchenreuther
    JohnHutchenreuther
    Posts: 8
    I can't help with making the column width match the content, but I can help with telling you how to manually set the width of a column. For my wiki, I've been handling it that way.


    table{width:60%}.
  • Savannah
    Savannah
    Posts: 188
    Ah, cool, that could work. I'd really like to get an actual auto-fit, however, as it's a table I'm going to be copying and pasting as a template with new information a lot, and I'd rather not have to manually figure out the correct dimensions each time if I can help it. If that's the best way, though...well, at least all I really need is to adjust one column and the rest will be okay.
  • GamingMegaverse
    GamingMegaverse
    Posts: 3,001
    I do not know of an autofit. The other option is to use only indentations by px, but I personally would go with the above version.
    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

    Just trying to help out.

Sign In or Register to comment.

April 2024
Season of Strife

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