Absolutely positioned div’s break in WordPress page
-
I want a ‘mosaic’ effect on a WP page and spent a happy half-day laying out the css for displaying my images. Got it working perfectly in its OWN page, but when I copy it across to a WP page it ‘breaks’ and displays all the images one under another down the page. Can anyone tell me why, or how to resolve it please?
Here’s the basic html I’m adding:
<img class="thumbnail" src=".../frontthumb.jpg" width="410" height="280"> <img class="thumbnail" src=".../frontthumb.jpg" width="160" height="340"> <img class="thumbnail" src=".../frontthumb.jpg" width="230" height="130"> <img class="thumbnail" src=".../frontthumb.jpg" width="230" height="150"> <div id="div-1a"> <img class="thumbnail" src=".../frontthumb.jpg" width="290" height="230"></div> <div id="div-1b"> <img class="thumbnail" src=".../frontthumb.jpg" width="280" height="240"></div> <div id="div-1c"> <img class="thumbnail" src=".../frontthumb.jpg" width="230" height="150"></div>
and the small added chunk to style.php
{ float:left; margin:5px; } #piccontainter { border: 1px solid; } #div-1 { position:relative; width:280px;} #div-1a { position:relative; top:-60; right:0; width:200px; } #div-1b { position:relative; top:-235; left:300; width:200px; } #div-1c { position:relative; top:-530; left:590; width:200px; } #div-1d { position:relative; top:100; left:420; width:200px; }
In a dedicated page this layout works fine, and I have three images side by side as per this screenshot – so what’s happening when I transfer it into WP?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Absolutely positioned div’s break in WordPress page’ is closed to new replies.