Text Background color not covering

Discussion in 'Web Design and Development' started by JackT06, Feb 21, 2011.

  1. JackT06 macrumors 6502

    JackT06

    Joined:
    Jul 24, 2009
    #1
    How do i get the background color to fully cover the text... It don't fully cover the text (see attachment).

    Code:
    #rightnav h1
    {
    text-transform: uppercase; 
    color: #84A40B;
    font: Serif Semi Bold;
    background-color:#000;
    }
    
     

    Attached Files:

  2. JohnJ. macrumors newbie

    Joined:
    Feb 21, 2011
    #2
    Add padding around the text (eg: padding:5px 10px ) .
     

Share This Page