PDA

View Full Version : background fixed


ryan.coughlin
01-24-2005, 11:15 AM
Hey guys,
I am thinking about a background that will be all the way at the top of the page with not top margin. I know I would use background fixed, but will it make it all the way at the top? And make it for it will go with width by %, etc. I background would just be a top header bar, or would it be possible to make it a <img> tag and not use a background and still align it top and width 100%.
Something along this line:

_________________________________________
|SITE NAME|
And that would be the whole image (obviously nice looking.. heh)

Thanks in Advance, Ryan

RysChwith
01-24-2005, 12:25 PM
A background image isn't going to let you stretch it to 100%, so an image tag is probably your best option. You can certainly do what you want with it. Just make sure the margin and padding on the body is set to zero, then put the image first thing in the document, with a width of 100%. In CSS, it would look something like this:body { margin: 0;
padding: 0 }

#banner { width: 100% }Then give your banner image the id "banner".

Rys

ryan.coughlin
01-25-2005, 02:17 PM
ahh. nice man! thanks alot!!!

ryan