| | |
Two full-height columns
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I need to have my background image span the entire length of the page without using the BODY element, here's why: I separated the image into left and right sections so even for different resolutions, the left image will always be on the left, and same with the right. Because of this, I have to use two DIVs, each with one part of the image. The problem is, I haven't seen any way to get them to span the entire height of the page. Setting
Edit: here is the CSS I currently have (for those specific parts):
Edit again: I just realized that in IE (horrible thing that it is) the background won't span any of the page except for a small, ~15px part at the top. If you want to take a look at this, here is the page.
width: 100%; only sets these to 100% of the viewport. Any ideas?Edit: here is the CSS I currently have (for those specific parts):
css Syntax (Toggle Plain Text)
.bodyContent .bg_l { position: absolute; z-index: -1; top: 0px; left: 0px; height: 100%; width: 500px; background-image: url('http://img22.imageshack.us/img22/2778/bgl.jpg'); background-repeat: repeat-y; } .bodyContent .bg_r { position: absolute; z-index: -1; top: 0px; right: 0px; height: 100%; width: 500px; background-image: url('http://img15.imageshack.us/img15/5810/bgrf.jpg'); background-repeat: repeat-y; }
Edit again: I just realized that in IE (horrible thing that it is) the background won't span any of the page except for a small, ~15px part at the top. If you want to take a look at this, here is the page.
Last edited by death_oclock; Mar 17th, 2009 at 6:09 pm.
•
•
•
•
Not really. Removing the "px" changes nothing. And 0px really doesn't make sense to you? How else should you remove a border inherited from lower down in the cascade?
HTML and CSS Syntax (Toggle Plain Text)
.mystyle [margin: 0;]
Border prefers the "none" attribute, rather than 0, if there is to be no border at all.
But margin and padding do not know the "none" attribute. You have to use 0 with them.
Last edited by MidiMagic; Mar 24th, 2009 at 7:08 pm.
Daylight-saving time uses more gasoline
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: aligning 2 DIV's aside one another
- Next Thread: Browser issuses
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity create css design development displayimageinsteadofflash dreamweaver drupal emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. templates textcolor theme timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 wordpress xml xsl






