|
Posted by Chaddy2222 on 05/22/06 14:04
spodosaurus wrote:
> Hi all,
>
> I'm trying to make a website with a fixed table width centred in the
> page. The width is specified using:
>
> <table width="779">
>
> This works fine in the latest version of mozilla, 1.7.13. However, in
> IE6 it renders as 955 pixels. (IE also ignores row height specifications
> half the time, but that's something I'll work on later) I want this
> website to be viewable with both mozilla and IE rather than look goofy
> in one but nice in the other.
>
> Can anyone explain to me why this is happenening and what I can do to
> make IE render the table at the fixed width I want?
Place the width as a percentage rather then in PX units. Different
browsers use different window sizes, as in the scroll bars in IE, or
users may have a specific font size etc etc.
So if you want to use a table to place the text and images of a page,
then you should center it and then just give it a width of say 25% and
you may not need to concern yourself with the hight, but you should set
that as a % as well.
This will mean your page will still look similar on a range of browsers
but will be able to be changed, made more viewable by the visitor if he
or she desirers.
--
Regards Chad. http://freewebdesign.cjb.cc
[Back to original message]
|