Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help working around imposed stylesheet to align content to top of cell

    Hello,
    I am working on a website in which I cannot access the full stylesheet, but I can add my own css rules. The problem is that my content is forced into <td valign="middle">, while I actually want my content to vertically align to the top. I cannot alter the <td> alignment. I can only work around it by adding a css rule within the cell itself. If it was just text, then I could do that with a block css rule for vertical alignment: top. However, the content also includes images and tables, which prevents the block vertical alignment rule from working. Is there an alternative to just being stuck with the default <td valign="middle"> formatting?

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    I'd have thought vertical-align:top would work myself. Can you give a link to your page?


  •  

    Tags for this Thread

    Posting Permissions

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