CSS image Size? -


there...

#logowrapper{   background-image: url(../image/bg_img.jpg);   height:86px;   width:100%;   } 

q> how fix size of image #logowapper same wapper automatically?

#logowrapper img{       // not work   height:86px;   width:100%;   }  

thank you!

for background image in css3 if want stretch not repeat can use background-size: 100%;

documented here http://webdesign.about.com/od/styleproperties/p/blspbgsize.htm

alternatively can layer absolute positioned image inside relative positioned div , add additional wrapper.

<style> #wrapper { position:relative; ... } #wrapper div, #wrapper img { position:absolute; top:0px; left:0px; ... } </style>  <div id="wrapper"> <img ... > <div> goes on top of image</div> </div> 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -