SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Oct 2006
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    noob: css side bar and content

    When you define a div in css for left sidebar (first column), do you always say float: left, eg leftsidebar { float: left; width: 150px; }?

    And for the content that need to appear on the next column(second column) div content, how do you go about setting css properties for it? Do you start from 150px?

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, you float the sidebar DIV and give it a width, then you set the left margin of the second column to be the same as the sidebar DIV's width.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •