Welcome to WebmasterWorld Guest from 54.90.204.233

Forum Moderators: open

Message Too Old, No Replies

table size in opera/netscape

how do browsers render tables?

     
10:47 am on Nov 27, 2003 (gmt 0)

Full Member from GB 

10+ Year Member

joined:May 20, 2003
posts:274
votes: 0


Sorry to bug you guys again, but I have another question. I am making a template that doesn't need much scrolling, and I have a problem with it in Opera and Netscape. I have a few bits and pieces in the template, top and bottom and a table for content. I set this table at 75% which in IE, (on my particular 1024x768 screen) fits quite nice with about 40px border at the bottom when maximized, and is damn near tight at 800x600. But when I checked this in Opera and Netscape, the browsers seemed to ignore this 75% setting and snap to the content of the table? as I only have a little dummy content in there at present, it's only about a third of the screen, why?
Can anyone explain this?
Smokey
1:45 pm on Nov 27, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


Try defining the width of the parent element, whether it is a div or just the body.

<head>
<style type="text/css">
body{width: 100%;}
#maintable{width: 75%;}
</style>
</head>
<body>
<table id="maintable">
.........
</table>
</body>

7:48 pm on Nov 27, 2003 (gmt 0)

Full Member from GB 

10+ Year Member

joined:May 20, 2003
posts:274
votes: 0


Thanks Birdman, but it is the height that is the problem. Will the same sort of thing work with said height? I have to admit, I know little about writing in code, so could you clarify the steps for me please?
and thankyou.
Smokey