jquery - Image grows with browser width? -


heee, had question; know how can let background image grow browser in terms of width , perhaps height well. mean? have 2 great examples here;

1 http://www.google.com/nexus/7/

2 http://getbootstrap.com/examples/carousel/

that kinda i'm looking for... image stays centered.. *i don't use bootstrap made own responsive design in css.

#heat{  background: url(../img/full.jpg) 50% 0 no-repeat; position: absolute;  height: 100%; width: 100%;  margin: 0 auto; padding: 0; } 

just use this..?

img {     width:100%;     height:auto; } 

jsfiddle example..


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -