Results 1 to 2 of 2

Thread: CSS line problem?

  1. #1
    Join Date
    Dec 2010
    Posts
    31

    CSS line problem?

    How do I fix the line height in css. i.e. I have a header, under it (with very litle space between the lines) I want a text. Rosetta Stone Spanish[/URL]The header is a H1 and the text under is unspecified, but the font size differ.
    Last edited by Jason; 07 Mar 2011 at 01:25 AM.

  2. #2
    Join Date
    Jun 2007
    Posts
    295
    If you have two elements (an h1 and another underneath), it isn't line height is that's your problem, it's margin. Since paragraph elements are normally block elements, you will need to address the margin property.

    Code:
    h1 {
    margin-bottom: 10px;
    }

Similar Threads

  1. CSS help regarding line-height
    By kong in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 04 Feb 2011, 12:38 AM
  2. Problem with IE line appearing in hr footer image
    By webpath in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 08 Aug 2010, 08:05 AM
  3. Css IE problem line appearing in hr
    By webpath in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 07 Aug 2010, 11:59 PM
  4. JavaScript innerHTML creates line break [problem]
    By Amoguai in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 04 Feb 2010, 03:11 PM
  5. ie problem on line 293 char 2
    By xsbucks in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 01 Sep 2009, 05:08 AM

Posting Permissions

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