SitePoint Sponsor

User Tag List

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

    changing css from having a line to no line

    I'm a newbie and would appreciate some help. I've set my h1 with the following css

    #mainbody h1 {
    color: #990000; /*dark faded red*/ background-color: #FFFFFF; /*white*/
    font-weight: bold; font-size: 120%;
    text-decoration: none;
    border-bottom: 1px solid #990000; /*dark faded red*/
    padding-bottom: 1px;
    margin-bottom: 0.8em;
    }

    but in
    http://www.fas.harvard.edu/~aaass/ab...ees/bdcom.html

    I'd like h1 to have no line on the bottom.

    I'm just not sure how to do it, except not calling it h1. Is there a way?

    thanks

    damajo

  2. #2
    SitePoint Wizard bronze trophy conradical's Avatar
    Join Date
    Jan 2005
    Location
    Atlanta
    Posts
    2,355
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Add the class (name it whatever you want) .noBorder to your h1 tag that you'd like to not have the border.

    #mainbody h1 .noBorder {
    border:none;
    }

    Your HTML would be <h1 class="noBorder">Heading without border</h1>

  3. #3
    SitePoint Zealot soezzy's Avatar
    Join Date
    Jul 2005
    Location
    The other side of the keyboard.
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by damajo
    #mainbody h1 {
    color: #990000; /*dark faded red*/ background-color: #FFFFFF; /*white*/
    font-weight: bold; font-size: 120%;
    text-decoration: none;
    border-bottom: 1px solid #990000; /*dark faded red*/
    padding-bottom: 1px;
    margin-bottom: 0.8em;
    }

    damajo
    Or you could just remove the border determinant.

    #mainbody h1 {
    color: #990000; /*dark faded red*/ background-color: #FFFFFF; /*white*/
    font-weight: bold; font-size: 120%;
    text-decoration: none;

    padding-bottom: 1px;
    margin-bottom: 0.8em;
    }

    Its just my 2.
    Don't pay any attention to me!
    What the heck do I know anyway?


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
  •