OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
Forcing a DIV container to play like the BODY, html for BG image
This page's ID:
28202
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Any normal element should always force the horizontal scrollbar ... not just a DIV. Obviously, there are exceptions (positioned elements, negative margins, etc), but it is to be expected for elements that extend past the viewport ... you could use overflow:hidden, but that creates its own problems (like no vertical scrollbar when you need it). That said, if you give the div a width of 100% (or just display:block), it should only take the width of the body, and consequently not precipitate a horizontal scrollbar. The background image will only display for as much of the element is visible, and won't cause a scrollbar on the viewport. My reading comprehension isn't always the best, so if I missed some aspect of your question, please say so or provide us with an example URL (even just a proof of concept or "what I want" image). Regards, DC
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »