WordPress.org

Forums

Div container next to another div container? (3 posts)

  1. pro_shine81
    Member
    Posted 8 years ago #

    Hello everybody!

    I have a div container called "outline" which is loaded in the header and this container contains everything else of my blog. Now I wonder how I can load another container (lets call it right) which sits on the right side of "outline". There should be no gab between the two. This container shoudl contain an image.

    Cheers,
    with best regards.

  2. Lori
    Member
    Posted 8 years ago #

    You can try floating another div on the right or making a container div with 2 divs inside, one for main content and one for right.

    ex.

    #wrap { width:780px; }
    #header { width:100% }
    #main {
      float:left;
      margin-right:0;
      width:580px;
    }
    #right {
      float:right;
      margin-left:0;
      width:200px;
      background: url('image.jpg') top left no-repeat;
    }
    #footer { clear:both; }

    Of course widths need to be adjusted for margins, etc. but it is a good place to start.

  3. whooami
    Member
    Posted 8 years ago #

    Here's a good place to start reading. You can learn to do it, instead of having someone do it for you :)

    http://www.thenoodleincident.com/tutorials/box_lesson/boxes.html

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags