SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2006
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Safari CSS height problem

    Hi guys,

    I am trying to set the height on a select element using CSS with no success.

    .selectHolder select
    {

    width:215px;
    height:26px;
    padding:4px;


    }

    This works fine in FF and IE but not in Safari - any ideas why not?

    Thanks

    sinky

  2. #2
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no html, no joy

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,535
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    You can't style the height of a select element in Safari (just as you can't set a height in IE7 and under either)

    You can use line-height for Safari.
    Code:
    line-height:26px;
    You can't do anything for IE6 and 7 though as they accept neither height nor padding.

    With some form controls its best just to leave them alone if you can


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
  •