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 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2007
    Location
    Canterbury, Kent (immigrant, of course :)
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Center text vertically - solved.

    Solved - I am indeed an idiot.
    Last edited by Khensu; 10-01-2007 at 09:05 PM.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It would be better to leave the problem and provide the solution rather than get rid of the problem. This forum is for everyone not just YOU. Someone else may have a similar problem.

    I'm guessing though the solution was setting the line-height equal to the height of the element.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Uhhhh.....good to hear. But what about to share the solution with us other, I'm sure quite a few of us would like to know how to do it ..

    EDIT Aero was a bit faster on the typing than me I see. lol

  • #4
    New Coder
    Join Date
    Jan 2007
    Location
    Canterbury, Kent (immigrant, of course :)
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Sorry about that. Basically, I forgot about vertical-align Hence my feeling quite the idiot

    The problem: I wanted to center vertically in CSS, but in true 1990s style I tried to use "valign" as opposed to "vertical-align"...

    Solution: use "vertical-algin"


  •  

    Posting Permissions

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