Note that there are some explanatory texts on larger screens.

plurals
  1. POAlign My Html Content through CSS
    primarykey
    data
    text
    <p>I have a slight problem in my css, i am trying to create 2 column layout and i see a random gaps in between contents. i am not able to explain it properly, please check the sample which i have created in jsfiddle. you will be able to understand. right side i am trying to create 2 column. </p> <p>here is the jsfiddle link <a href="http://jsfiddle.net/QZJJL/3/" rel="nofollow">http://jsfiddle.net/QZJJL/3/</a></p> <p><strong>HTML</strong> </p> <pre><code>&lt;div class="mainsection"&gt; &lt;div class="visitMainSection"&gt; &lt;div class="VISIT headingsection"&gt;Open Site Visits&lt;/div&gt; &lt;div class="scrolldiv visit_repeatSection1" style=""&gt; &lt;div class="header sectionheader TODAY"&gt;TODAY&lt;/div&gt; &lt;div class="content TODAY_1"&gt; &lt;div class="leftColumn"&gt; &lt;div class="ellipsis"&gt; &lt;h3 class="label1"&gt;&lt;span class="facid"&gt;4002&lt;/span&gt;&lt;span class="facName"&gt; ABC Comapny Ltd.(Ark Bal Cave)&lt;/span&gt;&lt;/h3&gt; &lt;/div&gt; &lt;p class="facLocalName" style="display: none;"&gt;&lt;/p&gt; &lt;p class="facAddress"&gt;Building 5, 6th floor Darjaling Road, Shan District CAV&lt;/p&gt; &lt;p class="label4"&gt;&lt;span class="city"&gt;Shenzhen&lt;/span&gt;&lt;span class="state"&gt; Gurgao&lt;/span&gt;&lt;span class="country"&gt; India&lt;/span&gt;&lt;/p&gt; &lt;p class="label5"&gt;&lt;span class="longitude" style="display: none;"&gt;&lt;/span&gt;&lt;span class="latitude" style="display: none;"&gt;&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class="rightColumn"&gt; &lt;div class="rightGroup"&gt; &lt;div class="groupproto"&gt; &lt;h3&gt;&lt;span class="protocolname show"&gt; Test Protocol 10&lt;/span&gt; &lt;span class="date_class show"&gt; NOV 18 - NOV 30, 2013&lt;/span&gt;&lt;/h3&gt; &lt;/div&gt; &lt;p class="onsiteLead bold" style="display:none;"&gt;ONSITE LEAD: &lt;span&gt;&lt;/span&gt;&lt;/p&gt; &lt;div class="multirow"&gt; &lt;div&gt; &lt;h5 class="audit_com" style="display:none;"&gt;Golder&lt;/h5&gt; &lt;h5 class="auditor"&gt;J1&lt;/h5&gt; &lt;p class="assignments"&gt;Antidsdsdsdsd&lt;br&gt;Labor &amp;amp; Human Rights&lt;/p&gt; &lt;h5 class="auditor"&gt;Y1 (Lead)&lt;/h5&gt; &lt;p class="assignments"&gt;dsdsdsdsdsdsdsd&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;h5 class="audit_com" style="display:none;"&gt;Verite&lt;/h5&gt; &lt;h5 class="auditor"&gt;S1&lt;/h5&gt; &lt;p class="assignments"&gt;Wages &amp;amp; Benefits&lt;br&gt;Labor &amp;amp; Human Rights&lt;/p&gt; &lt;h5 class="auditor"&gt;C1 (Lead)&lt;/h5&gt; &lt;p class="assignments"&gt;antidiscrimas&lt;br&gt;Labor &amp;amp; Human Rights&lt;/p&gt; &lt;h5 class="auditor"&gt;D1&lt;/h5&gt; &lt;p class="assignments"&gt;antidiscrimas&lt;br&gt;Labor &amp;amp; Human Rights&lt;br&gt;Wages &amp;amp; Benefits&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;h5 class="audit_com" style="display:none;"&gt;PWC&lt;/h5&gt; &lt;h5 class="auditor"&gt;L1 (Lead)&lt;/h5&gt; &lt;p class="assignments"&gt;antidiscrimas&lt;br&gt;Labor &amp;amp; Human Rights&lt;/p&gt; &lt;h5 class="auditor"&gt;M1&lt;/h5&gt; &lt;p class="assignments"&gt;Labor &amp;amp; Human Rights&lt;br&gt;Wages &amp;amp; Benefits&lt;/p&gt; &lt;h5 class="auditor"&gt;M2&lt;/h5&gt; &lt;p class="assignments"&gt;Antidiscrimination&lt;br&gt;Labor &amp;amp; Human Rights&lt;br&gt;Wages &amp;amp; Benefits&lt;/p&gt; &lt;h5 class="auditor"&gt;V1&lt;/h5&gt; &lt;p class="assignments"&gt;Antidiscrimination&lt;br&gt;Labor &amp;amp; Human Rights&lt;br&gt;Wages &amp;amp; Benefits&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;h5 class="audit_com" style="display:none;"&gt;Supplier Responsibility&lt;/h5&gt; &lt;h5 class="auditor"&gt;G1 (Lead)&lt;/h5&gt; &lt;p class="assignments"&gt;antidiscrimas&lt;br&gt;Labor &amp;amp; Human Rights&lt;br&gt;Wages &amp;amp; Benefits&lt;/p&gt; &lt;h5 class="auditor"&gt;R1&lt;/h5&gt; &lt;p class="assignments"&gt;antidiscrimas&lt;br&gt;Labor &amp;amp; Human Rights&lt;/p&gt; &lt;h5 class="auditor"&gt;R2&lt;/h5&gt; &lt;p class="assignments"&gt;Labor &amp;amp; Human Rights&lt;br&gt;Wages &amp;amp; Benefits&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="footer"&gt; &lt;input type="button" class="setupButton" value="Visit Setup" style="display:none;"&gt; &lt;p class="downloadBriefcase"&gt; &lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="linkButton"&gt; &lt;input type="button" class="lplinkbutton" value="&amp;gt;" onclick="top.openPageURL('Pushinfolet?id=101652&amp;amp;proc=146194&amp;amp;flag=1&amp;amp;emd=2&amp;amp;accessflag=2&amp;amp;edit_flag=D&amp;amp;wrapper=no')" style="height: 558px;"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code>html{ min-height: 100%; } .headingsection { font-weight: 600; font-size: 23px; padding-bottom: 5; padding-top: 0; margin-top: 0; } body { min-height: 100%; font-family: "Avenir Next", "Avenir", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !important; } .mycustcls{ background-color: white; padding-left: 5; } .sectionheader{ background-color: #C2C2C2; color: white; padding: 5px; font-weight: 500; font-size: 16px; } .sectionspacer{ height:20px; } .sectionrows{ background-color: rgba(240, 240, 240, 0.93); padding: 10; padding-right: 0; overflow: hidden; } .colsheader{ height: auto; color: white; font-weight: 500; font-size: 14px; float: left; } .sectioncols{ width: 300px; height: auto; float: left; color: black; font-weight: normal; font-size: 13px; } .mainsection{ padding:10px; } .anotherspacer{ background-color: rgba(231, 231, 231, 0.72); } .rowseparator{ border: 2px solid #CFCFCF; } .content { clear: both; font-size: 13px;} .Separator {border-top: 2px solid #858585;} .date_class { float:right; font-weight: normal; } .rightGroup { float: left; width:80%;} .anchor{cursor:pointer;font-weight:500;} .linkbutton {} .lplinkbutton{ float: right; vertical-align: middle; cursor:pointer; border:0; font-weight: 500; font-size: 15; margin: 0; padding:0 10px; background-color: rgba(173, 172, 172, 0.12); } .scrolldiv{ overflow-x: auto; background-color: #F0F0F0; color: black; border: 2px solid #858585; width: 1237px; } .colfacility_id,.colfacility_name{ font-weight:600; text-decoration:underline; } .colfacility_id,.colfacility_local_name,.colfacility_address,.colcity,.collongitude{width:500px;padding-top:2px;} .colprotocol_name{ font-weight:500; margin-left: 50px; width:500px; } .hidden{display:none;} .colname{font-weight:600;} .colfacility_address.colfacility_local_name,.colname{padding-top:5px; width: 235px;} .offlineclass{width:170px;color:black;font-size: 13px;} .downloadasmnt{ width: 73px; height: 29; border: 1px solid rgb(49, 120, 153); border-radius: 6; background-color: rgba(173, 172, 172, 0.94); color: white; font-weight: 500; } .datefloat{ color: #666; font-size: 12px; } .datefloat,.offlineclass{ font-weight:normal; float:right; } /*div.tt_upcoming.sectionheader{ background-color: rgba(240, 240, 240, 0.93); color: black; border: 2px solid rgba(0, 0, 0, 0.25); }*/ .sectionheader u.anchor{ text-decoration:none; font-size: 17; margin-left: 6; } .protocoldate{ padding: 0; margin: 0; border-bottom: 1px solid; } .tt_upcoming.sectionheader{ background-color: rgba(240, 240, 240, 0.93) !important; color: black !important; } .capMainSection .sectionheader{ display:none;} .leftColumn { float: left; width: 45%; padding: 15px 0 10px 20px;} .rightColumn { padding: 0; position: relative; /* add this to make linkbutton position relative to parent*/ vertical-align: middle; width: 50%; float: right; } .rightColumn .rightGroup { padding-top: 10px; } .rightGroup .multirow div { float: left; width: 245px; } .content p { margin: 5px 0;} .groupproto { padding-top: 4px;} .groupproto .protocolname{ float: left; width: 313px; overflow: hidden; height: 16px; white-space: nowrap; text-overflow: ellipsis; display: block; } .leftColumn .ellipsis { } .leftColumn h3.label1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 7px;} .show{ display: block;} .groupproto { margin-bottom:5px; } .lasActivity ul { padding-left: 18px !important;} h3 { font-weight: 500; border-bottom: 1px solid #000; height: 16px; margin:5px 0 10px 0; text-transform: uppercase; font-size: 1.1em;} h3.label1 { text-decoration: underline; border: 0;} h5 { margin: 5px 0; font-weight: 600; font-size: 13px;} .content { overflow: hidden;} .downloadBriefcase { float: right;} h3.normalCase { text-transform: none; border: 0;} p.bold { font-weight: 600; font-size: 13px;} .setupButton { cursor: pointer; background: #727272; border: 0; padding: 8px 15px; color: #FFF; margin: 3px 0;} .onsiteLead span { font-weight: normal; } .UPCOMING { background: none; position: absolute; color: #858585;} .UPCOMINGContent .leftColumn { padding-top: 30px;} .UPCOMINGContent .rightGroup { padding-top: 27px; } </code></pre>
    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.
 

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