Grow your CSS skills. Land your dream job.

horizontal alignment of divs within wrapper

  • # September 19, 2009 at 9:34 am

    [attachment=0]threeColumn_problem.jpg[/attachment]

    I hope I did the screen shot upload right. I’m new, of course.

    I am trying to fit three horizontal divs into a wrapper of 820px. Divs are: blue, left, 270 px w 173h brown, middle, 270 px w 173 h blue; right 270w 173h blue. I also want to put a 3pvwhite border beside the left and right center div. I need to fill these with text so I put the colors in the background. What you see here is left blue, floats left; middle floats left; right floats right. I need to go in and change the css but I am asking if floating is the answer and am I floating them correctly? For some reason, my brown rectangle[attachment=0]threeColumn_problem.jpg[/attachment] has taken on the blue right format.

    I know this is probably very easy, but I am cramming trying to get this site done for my teacher and my head cannot absorb all the new DWCS4 stuff I’m learning fast enough.

    Thank you!

    # September 19, 2009 at 4:00 pm

    watch this video
    http://css-tricks.com/video-screencasts … creencast/

    You can also use relative and absolute positioning.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".