Give help. Get help.

  • # February 21, 2010 at 9:16 am

    I know this is probably something very simple, but I need to align some images side by side across the page and then centre them within a div.

    Here is my CSS for the div and images:-

    .twoColFixRtHdr #banner
    .twoColFixRtHdr #banner img
    border:solid 1px black;
    margin:10px 5px 10px 5px;

    and here is my html:


    But the images are still aligning to the left in the div,

    help please……

    # February 21, 2010 at 1:30 pm

    A possible solution would be to place the images div within another div then do the margin: 0 auto; Not sure exactly understand the outcome you want a link to a test page would be helpful but this is what it might look like:


    The css would like something like this:

    #container #banner {
    margin: 0 auto;

    #container #banner img {
    float: left;
    /* Then add individual styles for the images */

    That would probably get the outcome your looking for.

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

You must be logged in to reply to this topic.