Hi.
I'm working on a responsive one page website based on bootstrap and having a problem with a background image which isn't going fullscreen on smaller devices.
Anchor the image to the bottom of the browser window might work, but I don't know how to do it.
Someone please give me a hand here.
Below the HTML & CSS.
HTML:
CSS:HTML Code:<header> <div class="container"> <div class="intro-text"> <div class="intro-heading">Text</div> <div class="intro-lead-in">Text</div> <a href="#portfolio" class="page-scroll btn btn-xl">Text</a> </div> </div> </header>
Thanks in advance for any suggestions.Code:header { text-align: center; color: #fff; background-attachment: scroll; background-image: url(../img/header-bg.jpg); background-position: center center; background-repeat: none; background-size: cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; } header .intro-text { padding-top: 100px; padding-bottom: 50px; } header .intro-text .intro-lead-in { margin-bottom: 25px; font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 22px; font-style: italic; line-height: 22px; } header .intro-text .intro-heading { margin-bottom: 25px; font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 50px; font-weight: 700; line-height: 50px; font-style: italic; } @media(min-width:768px) { header .intro-text { padding-top: 300px; padding-bottom: 200px; } header .intro-text .intro-lead-in { margin-bottom: 50px; font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 40px; font-style: italic; line-height: 40px; } header .intro-text .intro-heading { margin-bottom: 20px; font-family: Montserrat, "Helvetica Neue",Helvetica, Arial, sans-serif; font-size: 70px; font-weight: 700; line-height: 75px; font-style: italic; font-variant: normal; text-transform: none; } }



Reply With Quote

Bookmarks