Forum Moderators: not2easy

Message Too Old, No Replies

width: 100% in IE5.x?

man, this sucks...

         

Emperor

7:01 pm on Oct 21, 2004 (gmt 0)

10+ Year Member



Hi guys,

I have to specify a width: 100% so I can use overflow: hidden. Here is the code:

div.liquid {
padding: 16px;
...
}

div.linklist {
overflow: hidden;
width: 100%;
...
}

The div.liquid is the main area of a two-column layout I set up. What will the width of the div.linklist be in IE5.x Win? I bet it will be the same as the standard box model plus 32px which means I'll get a nasty horizontal scroll bar.

I guess I can take the padding off the div.liquid and margin or pad whatever is inside it.

What do you think?

Take care,
Cyrus

createErrorMsg

7:49 pm on Oct 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



pad whatever is inside it

That's the ticket. You can place whatever is inside into a secondary wrapper div and apply the padding to that. A little extra markup, but it's relatively clean.