Note that there are some explanatory texts on larger screens.

plurals
  1. POBorder issue in fluid layout on fixed position
    primarykey
    data
    text
    <p>My problem with aligning the middle border in fluid layout. Initially the header and content middle borders are fine, but when page scroll comes the content portion is adjusted and the border is misaligned. Anybody have solution for this? Im ready to use Javascript, if there is a solution.</p> <p>HTML:</p> <pre><code>&lt;div class="header"&gt; &lt;div class="hdrSectionleft"&gt; &lt;p&gt;First Title&lt;/p&gt; &lt;/div&gt; &lt;div class="hdrSectionright"&gt; &lt;p&gt;Second Title&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="content"&gt; &lt;div class="contentLeft"&gt;Lorem ipsum dolor sit amet, ...&lt;/div&gt; &lt;div class="contentRight"&gt;Lorem ipsum dolor sit amet, ...&lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>body, p { padding:0; margin:0; } .header { Position:fixed; top:50px; display:block; width:100%; height:40px; background-color:#eee; } .hdrSectionleft { float:left; width:50%; border-right:1px solid #ccc; box-sizing:border-box; height:40px; } .hdrSectionleft p, .hdrSectionright p { padding:12px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:14px; } .hdrSectionright { float:left; width:50%; height:40px; } .content { Position:absolute; top:90px; max-height:150px; border-bottom:1px solid #ccc; border-top:1px solid #ccc; width:100%; box-sizing:border-box; overflow:auto; } .contentLeft { float:left; width:50%; border-right:1px solid #ccc; box-sizing:border-box; padding:10px; } .contentRight { float:left; width:50%; padding:10px; box-sizing:border-box; } </code></pre> <p>Here is the link to my jsFiddle: <a href="http://jsfiddle.net/tyas/cFZ3d/" rel="nofollow">http://jsfiddle.net/tyas/cFZ3d/</a></p>
    singulars
    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