Note that there are some explanatory texts on larger screens.

plurals
  1. POAlign three divs: one of them containing an image and the other two text
    primarykey
    data
    text
    <p>I am trying to align three divs side by side. The center div contains a href with image, that expands links to edit text. The problem is that I am unable to verticaly align the contents of those divs. The left, right and center div contents should all be verticaly aligned in the middle like:</p> <p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[right]<br /> [left] [center] [right]<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[right]</p> <p>It might also look something like:</p> <p> [left]<br /> [left]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [right]<br /> [left] [center] [right]<br /> [left]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [right]<br /> [left]</p> <p>But now it looks like:</p> <p> [left] [center] [right]<br /> [left] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[right]<br /> [left]</p> <p>The edit-content div lies</p> <p>This is the code so far:</p> <pre><code>&lt;div id="search-result" class="accordion"&gt; &lt;div class="search-result-left"&gt; &lt;p&gt;CEPT, Conference Europ&amp;eacute;enne des Adminidstra-&lt;/p&gt; &lt;p&gt;tion Despostes et des T&amp;eacute;l&amp;eacute;communications&lt;/p&gt; &lt;/div&gt; &lt;div class="search-result-right"&gt; &lt;p&gt;Evropsko združenje po&amp;scaron;tnih in telekomunikaci-&lt;/p&gt; &lt;p&gt;jskih organizacij&lt;/p&gt; &lt;/div&gt; &lt;div class="search-result-center"&gt; &lt;a href="#" class="acc"&gt;&lt;img src="CSS/images/arrow_wr.gif"/&gt;&lt;/a&gt; &lt;/div&gt; &lt;div class="edit-content"&gt; &lt;p&gt;&lt;a href="#"&gt;edit&lt;/a&gt; - &lt;a href="#"&gt;comment&lt;/a&gt; - &lt;a href="#"&gt;translate&lt;/a&gt; &lt;/p&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>and css:</p> <pre><code>#all-search-results { font-size: 14px; color: #000000; width: 730px; margin: 0 auto; line-height: 4px; } .search-result-left { text-align: right; float: left; width: 335px; } .search-result-center { text-align: center; margin: 0 auto; width: 60px; } .search-result-center img{ vertical-align: bottom; } .search-result-right { text-align: left; float: right; width: 335px; } .edit-content{ color: #669900; margin-top: 20px; } .edit-content a { color: #669900; } </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