SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2008
    Location
    Port Elizabeth, South Africa
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Box will not allow line height

    Hi - can anyone perhaps see why my Subscribe box at the top left of this page does not recognize any line height in all browsers?

    http://www.greensmoothie.com/1cde/1mst5.php

    I've tried adding font:0.9em/1.3 even font:0.9em/3 to .ebk p, but all browsers ignore it, and FF alone shows a small space between lines. All other browsers squash the lines closely together.

    .ebk p {
    padding:0 6px 3px;
    margin:3px 0;
    font:0.9em Arial,sans-serif; color:#006600; text-align:left;
    }

    I've tried reducing the text in the box to fewer words but that also makes no difference.

    thank you for your kind help - Val

  2. #2
    SitePoint Wizard bronze trophy conradical's Avatar
    Join Date
    Jan 2005
    Location
    Atlanta
    Posts
    2,354
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I see that you have .ebk p and .ebk .foot - both reference the same element - since the <p> has a class of .foot in your .ebk div.

    Try deleting the .ebk p and add your line height to .ebk .foot

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,097
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    I seems you've made the changes suggested by conradical, and it seems to be working for me. But you haven't set a specific line height now, which you can do it you want:

    Code:
    .ebk .foot {
    	padding:0 6px 8px;
    	margin:3px 0;
    	font:0.9em/1.3 Arial,sans-serif; color:#006600; text-align:left;
    }
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  4. #4
    SitePoint Evangelist
    Join Date
    Jul 2008
    Location
    Port Elizabeth, South Africa
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! I eliminated foot + adjusted p. That foot must've been a relic from text long gone...


Tags for this Thread

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
  •