• Without going into the merits of tables vs css…I’m trying to prevent the 2 cells I use (in a single row) from being able to ‘grow’, say, when a user increases the browser font size. What attribute controls this?

    Here’s another way of putting it: is there a way to make all page elements static (both css and tables) *except* for something like font size?

    thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think what you really meant is not “static” – rather “fixed width” elements.
    Whatever is around those cells (td), couldn’t you just give it a fixed width?

    Thread Starter xmiinc

    (@xmiinc)

    So ‘fixed width’ is an attribute of a td element?

    Not in the way you put it; you can define a class
    <td class="moshu">...</td>

    and define the class’ width in the stylesheet ??

    Thread Starter xmiinc

    (@xmiinc)

    Oh ok, so I create a custom class containing a width-attribute that I associate with a cell as you show above? But what setting do I use for ‘width’ that makes things ‘fixed’? Absolute, static, something else?

    Actually, I was just about to post again saying that I admit I don’t know what the heck I’m doing with respect to this.

    Here’s my blog:
    Citixendotorg

    The header graphic and the searchbox area to the right are contained in a 2-cell table as the only ‘solution’ that worked reasonably well when I started the blog. But it has its problems.

    I’m trying to prevent the right table cell color and the 3 nav-tab borders (just beneath the header on the right) from being able to expand and contract relative to text-size, so at least those elements remain consistent across resolutions.

    Is that possible? I notice other sites have page elements firmly fixed no matter how greatly I decrease/increase text-size. How would one approach doing what I’m doing the *correct* way? :]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I make table cells static?’ is closed to new replies.