does anyone know how to make tables in opera really take up 100% width of the page ?
| SitePoint Sponsor |





does anyone know how to make tables in opera really take up 100% width of the page ?
It's not going to validate but if you insert:
marginwidth="0"
into the <body> tag, your <table width="100%> should fit right to the edge.
"Do you want it with, or without the moustache? .....Too bad."
J. Driscoll

put
body{
margin:0;
padding:0;
}
in your css file.
I've also got a funny feeling that opera reserves space at the right hand side for a scrollbar even if its not needed. Not sure about that though and I don't have it to hand to test.
cheers
alastair
haven't tested the CSS margin attributes, (I live in a world of non-compliant code as I have to design pages for netscape 4.7) but declaring the marginwidth it fills with whole screen, no gap. Try the CSS first though, you'll sleep better at night with valid markup![]()
"Do you want it with, or without the moustache? .....Too bad."
J. Driscoll





YAY! , didnt know about the padding: 0px , thanx ppl
i do try and make my code a little more cross-browser, but i couldnt be bothered with NSbut i use Opera so i try and make it work at least with that
![]()
I find that with opera, if there's no vertical scrollbar it will still allow space for it, so that your divs won't go to the right hand edge if there's no scrollbar. It doesn't look too bad, and there usually is a scrollbar.
edit: oops, 19nine78 already mentioned that. Is my face red. Well, I can confirm that I did experience that.
[mmj] My magic jigsaw
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Bit Depth Blog · Twitter · Contact me
Neon Javascript Framework Jokes
Bookmarks