문제

I am very new to twitter bootstrap, I think everything is set up correctly and I am trying to make the site responsive. The first thing I want to do is have my header jpeg image to be resized depending on the browser width. Can somebody give a fist hint?

Now I have:

<div class="container">
    <img src="header-image.jpg">
</div>

The other divs with class container are resized properly, and I also already tried to fluid option.

Thank you, Kasper

도움이 되었습니까?

해결책

Use the img-responsive class on the image..

http://www.bootply.com/7R0qNWk74z

If you're looking for a full-width solution use a row inside a container-fluid..

http://www.bootply.com/Cc0rdXsJXP

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top