Css text and image

Discussion in 'CSS' started by Scubasjl, Apr 14, 2010.

  1. #1
    I made a custom search box, it is using a image and the text in FF and Chrome all is lined up correctly, except in IE8 its a bit to high what is the fix to this?

    FIX: => Line-height: ;

    :)
     
    Last edited: Apr 14, 2010
    Scubasjl, Apr 14, 2010 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Be sure to check it in Opera too, as it may be messed up there as well... This is why I NEVER play with the padding or height properties on an input - they are not applied the same way in all browsers.
     
    deathshadow, Apr 16, 2010 IP
  3. Gr33ny

    Gr33ny Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should play with the padding on some occasions, such as h1, p, etc. as Internet Explorer decides to add default values of them even when they are not specified in the stylesheet. So @OP, check for anywhere that you might need to specify padding:0px; or margin:0px;. This is often the solution for my miss-placed Internet Explorer issues.
     
    Gr33ny, Apr 19, 2010 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Which has what to do with "on an INPUT" exactly?
     
    deathshadow, Apr 19, 2010 IP