www.webdeveloper.com
Results 1 to 3 of 3

Thread: Relative positioning

  1. #1
    Join Date
    Oct 2007
    Location
    Tampa, FL
    Posts
    20

    Relative positioning

    Hey guys, I'm new to CSS positioning, I have two cells inside on one large cell. I need to position one on the left side (no problem) "position: relative; top: 0px; left: 0px;" but the second cell I want to position it relative to the large cell like the left-aligned cell is. Currently it is relative to the left-aligned cell, and since that cell will change in height it would be best to be relative to the fixed size cell.

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    I'm not sure what you're referring to, since you're still using "tables" language, but this should help you:
    Code:
    <div style="float: left; width: 50%;">
    ;alskdfj;laskdfj;askljf
    </div>
    <div style="float: right; width: 50%;">
    a;lsdkfja;sldkfj
    </div>
    If this doesn't meet your needs, let us know.

    KDLA

  3. #3
    Join Date
    Oct 2007
    Location
    Tampa, FL
    Posts
    20
    yes thanks, i dont know why I wasnt thinking to use float

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles