d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > How To Do That ?
Add Reply New Topic New Poll
Member
Posts: 6,420
Joined: Jan 27 2008
Gold: 1,327.99
Feb 26 2013 03:09pm
Hi, i'm looking to do a webpage with a header (something like 100px height) and a background full width/height on the rest of the page, but not under the header, how to do that ?
Member
Posts: 1,628
Joined: Aug 11 2012
Gold: 628.00
Feb 26 2013 04:01pm
wha?
got an example?
Member
Posts: 2,579
Joined: Jun 1 2012
Gold: 1,524.00
Feb 26 2013 04:10pm
Have the header in a div and set it's z-index attribute higher than the rest of the page and give it its own background maybe?

I'm sure there are multiple ways to do this, depending on how you've implemented the header/background.
Member
Posts: 2,478
Joined: Jan 4 2007
Gold: 7,545.00
Feb 27 2013 10:35am
Mostly with CSS.

Here's a quick example: http://jsfiddle.net/B7Ksn/

You could even set the background of the body to an image and not have to worry about the header background.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll