Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Gurus, Beginner needs a bit help: Can't center middle column on 3-col layout
    primarykey
    data
    text
    <p>Beginner to HTML here.</p> <p>I am at my wit's end and yet I can't get this working. Could you please have a look?</p> <p>What I want is to push the text inside navleft to the leftmost side of hte viewport, center the contents of navcenter and push the contents of navright to the rightmost side of the viewport.</p> <p>Whatever I do, the width of navcenter is only its contents, it doesnt fill the area between navleft and navright. I tried 1 million CSS 3-column options to no avail (negative margin, padding, etc).</p> <p>I can't get rid of wrapper because it is used for sticyk footer (i left out the irrelevant code, body entries, etc.).</p> <p>What can i do?</p> <p>Maria</p> <p>PS: Yes I know my CSS sucks, and it would look like a big mess to you, please excuse and bear with me. Thank you very much for your time.</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; &lt;title&gt;title&lt;/title&gt; &lt;link href="2.css" rel="stylesheet" type="text/css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="wrapper"&gt; &lt;div id="headerMain"&gt; &lt;div id="header"&gt; &lt;div class="headerLogoLeft"&gt;&lt;/div&gt; &lt;div class="headerLogoCenter"&gt;&lt;/div&gt; &lt;div id="nav"&gt; &lt;div id="navleft"&gt;navleft&lt;/div&gt; &lt;div id="navcenter"&gt;center&lt;/div&gt; &lt;div id="navright"&gt;navright&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; /* CSS Document */ * { margin:0; padding:0; border:0; } html { height:100%; width:100%; } .wrapper { min-height:100%; height:auto !important; margin:0 auto -26px; background:#e9e9e9; } body{ font: normal 12px/16px Arial, Verdana, Helvetica, sans-serif; height: 100%; min-width:1024px; width:100%; border: 0px; background-color:#CFCFCF; } #headerMain{ width:100%; background:url(img/header_bg.png) 0 0 repeat-x; color:#D2C7A3; } #header{ width:100%; background:url(img/header_bg_top.png) 0 0 repeat-x; margin:0; height:153px; } .headerLogoLeft { height:84px; width:34%; float:left; text-align:left; } .headerLogoLeft img { height:72px; width:72px; display:inline; padding-top:5px; } .headerLogoCenter { height:84px; width:66%; float:left; text-align:left; } .headerLogoCenter img { height:84px; width:550px; display:inline; } #nav { width:100%; height:33px; color: #9E9E9E; line-height:33px; font-size:13px; } #navleft { height:33px; float:left; width:200px; text-align:left; } #navcenter { height:33px; line-height:33px; text-align:right; float:left; } #navright { height:33px; width:200px; text-align:right; float: right; } </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.
    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