Click to See Complete Forum and Search --> : div + css + width + jpeg = help


NEWGEEK
05-31-2009, 08:00 PM
I ran a search of Search: Keyword(s): width, 100%, jpeg and I view height/width as %'s: what am I doing wrong? Malkalypse 04-09-2005 10:41 PM by DARTHTAMPON 1 581 HTML + banner that extends from corner to corner tableforglasses 12-06-2007 06:22 AM by tableforglasses 2 641 CSS + [RESOLVED] DIV and CSS ( 1 2)
CreativeMind 05-27-2008 09:11 PM by Centauri 21 1,912 HTML and I didn’t found what I was looking for or maybe what I am trying to do isn’t done the way I want it to do it.
I want my jpeg 1000 width to behave the same way this
#topheader {
position:absolute;
left:0px;
top:0px;
width:100%px;
height:100px;
z-index:1;
}
<div id=" topheader" style="background:#666666"></div>
I have it like this
#topheader {
position:absolute;
left:0px;
top:0px;
width:100%px;
height:100px;
z-index:1;
}
<div id="topheader"><img src="../../My Documents/Unnamed Site 1/header.jpg" width="1000" height="100" /></div>

For header purpose any comments that helps is welcome :mad:

jonthomas83
06-01-2009, 03:04 AM
width:100%px;
Not sure what you mean really because I couldn't make much sense of your original post sorry, but this won't work. It can only either be 100% or 100px.

Try changing this to:

width: 100%;

Hope that helps.

NEWGEEK
06-01-2009, 10:29 AM
thank for the code check it did help

jonthomas83
06-01-2009, 11:00 AM
Nice one!