PDA

View Full Version : Can't get table to span whole window in IE


Kombat
04-05-2005, 03:00 PM
I am having trouble getting a table to span the entire browser window in IE. It works in Firefox just fine. It starts on the left, but on the right it stops about 30 pixels short of the right edge.

Here's the style for the table:
style="position:absolute; left:0px; top:21px; width:100%; padding:0px; border:none; background-color: #CBDFF4"

I've tried margin:0px and margin-right:0px both with no effect. I'd read somewhere to try display:inline which didn't help either.

The table is NOT in any <p> or <div> tags.

Thanks,
Karl

Silmaril8n
04-05-2005, 03:53 PM
Is it stopping for the scrollbar?

Kombat
04-06-2005, 09:37 AM
Is it stopping for the scrollbar?

The scrollbar is visible and it's stopping before the scrollbar.

I've fixed it by setting it's width to the width of the browser window. 100% wasn't working.

metaph0r
04-06-2005, 10:49 AM
The scrollbar is visible and it's stopping before the scrollbar.

I've fixed it by setting it's width to the width of the browser window. 100% wasn't working.


Can you show your solution on the boards for us? =) Thanks!

Silmaril8n
04-06-2005, 12:08 PM
The scrollbar is visible and it's stopping before the scrollbar.

I've fixed it by setting it's width to the width of the browser window. 100% wasn't working.
Is that going to work for people with different sized screens though?

I recall IE taking into account for a scrollbar even when it wasn't shown at the time. I don't remember what I did to get around it but my designed are mostly fluid now and it's become irrelevant.

Mr. Popularity
05-04-2005, 03:37 AM
try setting your margins to 0 :)