Note that there are some explanatory texts on larger screens.

plurals
  1. PO100% width Background Image
    primarykey
    data
    text
    <p>I'm trying to do a background image of 100% and have an image as the background. When I upload the image it goes to 100% but it cuts off have the picture. It makes the image wider than my screen. How do I fix it where the picture width is 100% but the image width fits the screen without getting cut off. Here is my tumblr to let you see what I mean (<a href="http://ophelialogy.tumblr.com/" rel="nofollow">http://ophelialogy.tumblr.com/</a>) and here is the full image to show you the full image and give you an idea for where it's cutting off (<a href="http://imageshack.us/a/img7/7103/khb3.png" rel="nofollow">http://imageshack.us/a/img7/7103/khb3.png</a>). </p> <p>Here is my code: CSS PART</p> <pre><code> /* --- HEADER --- */ #header { top: 0; left: 0; width: 100%; {block:IfAdjustableHeader}height:{text:Header Height};{/block:IfAdjustableHeader} {block:IfNotAdjustableHeader}height:100%;{/block:IfNotAdjustableHeader} position: fixed; z-index: 10; background-image: url('{image:header}'); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } /* --- PAGE CONTENT --- */ #page { {block:IfAdjustableHeader}top:{text:Header Height};{/block:IfAdjustableHeader} {block:IfNotAdjustableHeader}top:100%;{/block:IfNotAdjustableHeader} left: 0; width: 100%; min-height: 100%; position: absolute; background: {color:Background}; z-index: 99; } .container { margin: 50px auto 0px; {block:If400Posts}width: 800px;{/block:If400Posts} {block:If500Posts}width: 900px;{/block:If500Posts} } /* --- POSTS --- */ .postcol { width: 540px; margin-left: 240px; } .posts { margin-bottom: 20px; background-color: #fff; padding: 20px; } .posts img, .posts li, .posts blockquote { max-width: 100%; } </code></pre> <p>HTML Part</p> <pre><code>&lt;body&gt; &lt;div id="header"&gt; &lt;div class="description"&gt;{Description}&lt;/div&gt; &lt;/div&gt; &lt;div id="page"&gt; &lt;div class="container"&gt; &lt;div class="postcol"&gt; {block:Posts} &lt;div class="posts"&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload