...

View Full Version : specifying table width with stylesheets



valeria_vi
09-13-2002, 04:43 PM
how do i do that?
when i gave my table an id or class, and thenin my stylesheet said
#id {width: whatever} it did nothing

MCookie
09-13-2002, 05:41 PM
Maybe it's this:
table {
width:300;
}

Forgot to specify units? 300px

valeria_vi
09-13-2002, 05:51 PM
umm, what about %?
i tried width: 50% or so and it did not work
neither did the pixels

MCookie
09-13-2002, 05:57 PM
And what if you put the style inline?
Like <table style="width:50%;">?

valeria_vi
09-13-2002, 10:34 PM
MCookie,

you're so much help! :thumbsup:

well, it ended up being that teh inline stylesheet worked and i could not figure out why not external. well, the site is all in miva, and miva incerts its own formatting tags without your concent. i thought i coded to "counterat" everything, but had missed some tags. once i got that worked out my external stylesheet started working.

Thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum