The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Table Width Creating Horizontal Bar in Moz.

I have a table at 100% and in Mozilla Firebird it creates a horizontal scrollbar. I know Mozilla translates the 100% literally and I was wondering if someone can tell me how to get a table to be 100% in Mozilla without the scrollbar. Thanks.

According to web standards, the "width" of an element is the *content* width - any borders or margins are added to the content width.

If you set the width of a table to 100% of the page, and then add a 1 pixel border and a 3pixel margin, then the table (including border and margin) ends up at 100% + 8px, and you get a scrollbar.

Older versions of IE get it wrong, and include the border/margin in the width. In many circumstances, newer versions of IE will behave just like the old ones. Mozilla (including firebird) gets it right.

Short answer: adjust your table width, border and margins so that the TOTAL is 100%.