![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| http://www.commoner.com/lsimon/horzscroll_rtl.html My question is if anyone knows of a way to get an element to expand across the entire viewport in IE in RTL without setting the body padding or margin to 0 (I want to leave those to their default for a variety of reasons). I can't add a container markup piece either or turn off overflow on body. Firefox doesn't give a scrollbar here, but that seems to me to be a bug |
|
the browser (the left hand side for RTL users). Setting width to 100% seems to work in Opera, but I'm looking for something which may work for all. In any case, I can come up with a fix for FF and Opera, but nothing for IE, so I don't mind a conditional solution. Any ideas? I've tried a combination of widths with negative margins and paddings, but had no luck yet.. |
#3
| |||
| |||
|
|
Just use the default browser values and just use width: auto. |
#4
| |||
| |||
|
|
Actually, you never need to set width to 100% since width: auto will use all of the available width. |
#5
| |||
| |||
|
|
GTalbot wrote: Just use the default browser values and just use width: auto. Since auto is the default value, you shouldn't need to set width at all. -- Berg |
#6
| |||
| |||
|
| http://www.commoner.com/lsimon/horzscroll_rtl.html My question is if anyone knows of a way to get an element to expand across the entire viewport in IE in RTL without setting the body padding or margin to 0 (I want to leave those to their default for a variety of reasons). |
#7
| |||
| |||
|
|
elsigh wrote: http://www.commoner.com/lsimon/horzscroll_rtl.html My question is if anyone knows of a way to get an element to expand across the entire viewport in IE in RTL without setting the body padding or margin to 0 (I want to leave those to their default for a variety of reasons). Eh? If the body's right margin isn't zero, then you're going to have a right margin, and your element won't expand across the entire viewport. You're looking to satisfy two inherently contradictory conditions. |
![]() |
| Thread Tools | |
| Display Modes | |
| |