SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2001
    Location
    Montreal, Canada
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Positioning question

    Hi all,

    Let's say I have the following code

    Code:
    <div1>
      <div2>
      Some text here...
      </div
      <div3>
      Some text here again...
      </div>
    </div>
    What I would like to do is have div3 beside div2 instead of bellow it.

    How do I declare CSS to do that?

    Thanks alot

    Michel

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Easy:
    Code:
    #div2 {
      width: #px /* replace with actual value */
      float: left /* or right */; 
    }
    That should do it.

    ~~Hope This Helps


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
  •