Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • darrenf Friend
    #148549

    Hi guys,

    Any one knows how to properly code for multiple lines of pictures and details when using DIVs?

    I noticed that these were the codes.

    <div class=”clearfix”>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-5.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Egestas risus tempor</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a></div>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-6.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Iaculis id pulvinar</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a></div>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-7.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Egestas tempor justo</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a></div>
    <div style=”float: right; width: 25%;”><img src=”images/stories/demo/sam-8.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Ornare lacinia non?</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /></div>
    </div>

    I do I do a next line and ensure that the content does not get misaligned.

    Thanks in advanced.

    darrenf Friend
    #332242

    Alright, I figured a work around. If anyone knows a better or a proper way to do this, please let me know.

    <div class=”clearfix”>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-5.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Egestas risus tempor</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /><br /></div>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-6.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Iaculis id pulvinar</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /><br /></div>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-7.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Egestas tempor justo</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /><br /></div>
    <div style=”float: right; width: 25%;”><img src=”images/stories/demo/sam-8.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Ornare lacinia non?</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /><br /></div>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-5.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Egestas risus tempor</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /></div>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-6.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Iaculis id pulvinar</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /></div>
    <div style=”float: left; width: 25%;”><img src=”images/stories/demo/sam-7.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Egestas tempor justo</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /></div>
    <div style=”float: right; width: 25%;”><img src=”images/stories/demo/sam-8.png” border=”0″ alt=”by Photos8.com” title=”by Photos8.com” />
    <h3 style=”margin-bottom: 3px;”>Ornare lacinia non?</h3>
    <a class=”readon” href=”#” title=”Sample link”>Project detail</a><br /><br /></div>
    </div>

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  darrenf 14 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum