SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Madison, WI
    34 Post(s)
    2 Thread(s)

    what method do you use to give a TD position:realtive.

    Googling this I found ONE ARTICLE (within the search) about the CSS specs not requiring position in table elements!!! Meaning that many UAs don't have the ability to give a TD relative position.

    what this means that any child element that's AP'ed will be positioned relative to a parent of the Table and not the cell in which it is contained. :/

    Well not exactly, if you wrap the contents of the cell , in a Div , for example then you can position any child of the div relative to the div, and it will be almost equivalent to having AP off of the cell.

    Well the article I found was dated 2005, I am stil showing that TD are tricky to style as far as RP goes, so I am still using the wrap method.. but I was curious to know if anyone has found an alternate way to position something off of a cell.

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Whiteford, Maryland, United States
    12 Post(s)
    0 Thread(s)
    Your findings are correct. Browsers won't recognize position:relative on a table cell
    I nest a <div> directly inside the table cell to overcome this

    There really is no beter option.
    Always looking for web design/development work.


Posting Permissions

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