Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Div Alignment Problem
    text
    copied!<p>I have two divs that make up my header, <code>#title</code> and <code>#header</code>. They are inside <code>#totalTop</code>. They should be flush against the top, and they should be flush against each other. Here's how it looks like:</p> <p><a href="http://i53.tinypic.com/2ykj0b7.jpgy" rel="nofollow noreferrer">http://i53.tinypic.com/2ykj0b7.jpgy</a></p> <p>Here's the CSS code for the relevant part:</p> <pre><code>#totalTop { text-align: center; } #title { background-image: url(../img/TopBannerGradientOrange.png); border-bottom-color: #FFF; text-align: center; border-bottom-style: solid; border-bottom-width: 3px; background: url(../img/TopBannerGradientOrange.png); height: 150px; width: 20%; font-size: 25px; display: inline-block; } #header { border-bottom-color: #FFF; border-bottom-style: solid; border-bottom-width: 3px; background: repeat-x; background: url(../img/TopBannerGradientOrange.png); width: 60%; text-align: center; height: 150px; display: inline-block; margin-top: 0; } </code></pre> <p>How can I get them to fit together? I already have reset.css in my full stylesheet.</p> <p><b>Edit:</b></p> <p>Added the <code>vertical-align: top;</code>, so now it only looks like this sort of gap between elements. It's about 3-4px and with Chrome's Inspect Tool I can't figure out whether it is <code>#title</code> or <code>#header</code> that's causing the problem:</p> <p><a href="http://i55.tinypic.com/j0i4nr.jpg" rel="nofollow noreferrer">http://i55.tinypic.com/j0i4nr.jpg</a></p>
 

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