KRiTiKuL FX
Gawd
- Joined
- Aug 30, 2002
- Messages
- 633
I'm trying to create a "tabbed" page. I use Javascript to dynamically update the content "frame" with preset data. The problem I'm having is that I'm trying to size the content frame the same width as the tabs part.
Shoot me for using tables, but I am. The tabs piece uses a table to format the tabs where and the images for the tabs where I need them. The width of the table is 80%. Now the content frame is a div, and has it's width set to 80%, and this works fine in IE, but not Mozilla. I have the padding on the div to be 10px all around. I've tried setting exact numbers, but Mozilla still is having a problem with the edges lining up exactly. I have to set the width of the table to be 1000, while the div has a width of 978 (10px on each side of the div for the padding, plus an additional 1px on each side for whatever reason, making it a total of 22px off). Why the hell is it doing this? Shouldn't 80% on a table be the same as 80% on a div?
Any solutions other than not using tables (which I don't want to do, I hate having to learn more CSS than I know now, I rarely use it for positioning).
Shoot me for using tables, but I am. The tabs piece uses a table to format the tabs where and the images for the tabs where I need them. The width of the table is 80%. Now the content frame is a div, and has it's width set to 80%, and this works fine in IE, but not Mozilla. I have the padding on the div to be 10px all around. I've tried setting exact numbers, but Mozilla still is having a problem with the edges lining up exactly. I have to set the width of the table to be 1000, while the div has a width of 978 (10px on each side of the div for the padding, plus an additional 1px on each side for whatever reason, making it a total of 22px off). Why the hell is it doing this? Shouldn't 80% on a table be the same as 80% on a div?
Any solutions other than not using tables (which I don't want to do, I hate having to learn more CSS than I know now, I rarely use it for positioning).