خرید بک لینک

Vote count: 0

I have been searching for quite sometime and at this point feel that I am wasting it by not presenting my current situation. I am trying to create a landing page for a website with a responsive background image. I am not having issues with the responsiveness of the width of the image. It will stretch and respond to the scaling of the web browser. However, I caot get it to fit the height of the web browser. In fact, it only goes about 1 inch down from the top of the browser and no further. I have looked at MANY solutions but most suggest things I have already done. As a side not, I am trying to do this using Rails. I have created a root static-page#home and am working inside the static-page folder in home.html.erb and the static_pages.css.scss. Here is my code:

home.html.erb:

<div class="jumbotron debug">
 <div class="container">
 </div>
</div>

static_pages.css.scss:

.jumbotron {
  background: url(http://www.wolmer.lt/wp-content/uploads/2013/12/tree-of-light-daughter.jpg) no-repeat center center;
  background-size: 100% 100%;
  -moz-background-size: 100% 100%;
  -webkit-background-size: 100% 100%;
  -o-background-size: 100% 100%;
}

Now the background-size: 100% 100%; should be the line that initially scales the image to 100% height and 100% width if i'm not mistaken. I am still having no such luck with it. I have even tried to set html and body tag to height: 100% and that did nothing. Maybe I am missing something. Any help would be greatly appreciated.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 27 فروردين 1395 ساعت: 6:13

صفحه بندی