How do I get rid of the underline link in my main content?

Discussion in 'CSS' started by CalGuy, Aug 8, 2006.

  1. #1
    I want to link to specific but I don't want the underline to show up. I've tried everything that I know how to do

    Here's my site: http://www.celebslam.com

    Here's my stylesheet:

    Thanks in advance for any help you can give!

    /**************** Body and tag styles ****************/

    *{margin:0; padding:0;}

    body{
    font:76% Verdana,Tahoma,Arial,sans-serif;
    line-height:1.4em;
    text-align:center;
    background-color: #202020;
    background : #ffffff url(images/background.jpg) repeat fixed;
    }

    blockquote {
    margin-left: 1.5em;
    padding-left: 23px;
    font-family: Arial;
    text-align: justify;
    background: transparent url(images/quotemark_begin.jpg)no-repeat;
    background-position: top left;
    }

    a:link {
    text-decoration: none;
    font-weight: bold;
    }

    a{
    color:#424E58;
    background-color:inherit;
    }

    a:hover {
    text-decoration:none;
    color:#0082C6;
    }

    a img {
    border:none;
    }

    p{padding:0 0 1.6em 0;}
    p form{margin-top:0; margin-bottom:20px;}

    img.left,img.center,img.right{padding:4px; border:1px solid #a0a0a0;}
    img.left{float:left; margin:0 12px 5px 0;}
    img.center{display:block; margin:0 auto 5px auto;}
    img.right{float:right; margin:0 0 5px 12px;}


    /**************** Header and navigation styles ****************/

    #container{
    width:780px;
    margin:20px auto;
    text-align:left;
    border:1px solid #000000;
    }

    #header{
    height:150px;
    width:780px;
    margin:0 1px 1px 1px;
    background:url(images/CelebslamBanner.jpg);
    }

    #navigation{
    height:2.2em;
    line-height:2.2em;
    width:780px;
    margin:0 1px;
    background:#1E4A7E;
    color:#ffffff;
    }

    #navigation li{
    float:left;
    list-style-type:none;
    border-right:1px solid #ffffff;
    white-space:nowrap;
    }

    #navigation li a{
    display:block;
    padding:0 10px;
    font-size:0.8em;
    font-weight:normal;
    text-transform:uppercase;
    text-decoration:none;
    background-color:inherit;
    color: #ffffff;
    }

    * html #navigation a {width:1%;}

    #navigation .selected,#navigation a:hover{
    background:#6699FF;
    color:#ffffff;
    text-decoration:none;
    }

    /**************** Content styles ****************/

    #content{
    float:left;
    width:450px;
    font-size:0.9em;
    padding:20px 0 0 20px;
    }

    #content h2{
    display:block;
    margin:0 0 16px 0;
    font-size:2em;
    font-weight:normal;
    letter-spacing:-1px;
    color:#424E58;
    background-color:inherit;
    text-decoration:none;
    }

    #content h2 a{font-weight:normal;text-decoration:none;}
    #content h3{margin:0 0 5px 0; font-size:1.4em; letter-spacing:-1px;}
    #content a:hover,#subcontent a:hover{text-decoration:underline;}
    #content ul,#content ol{margin:0 5px 16px 35px;}
    #content dl{margin:0 5px 10px 25px;}
    #content dt{font-weight:bold; margin-bottom:5px;}
    #content dd{margin:0 0 10px 15px;}
    #content p{font-size:1.2em;}


    /* Sidebar */

    #sidebar {
    width: 280px;
    margin: 0px;
    padding: 0px;
    float: right;
    }

    #left, #right {
    padding: 5px 0 15px 0;
    }

    #left {
    float: left;
    margin: 0 0 0 10px;
    width: 120px;
    }

    #right {
    margin: 0 0 0 10px;
    float: right;
    width: 130px;
    }

    #sidebar h2 {
    color: #424E58;
    font-size: 0.9em;
    margin: 0 0 10px 0;
    padding: 10px 0 2px 0;
    width: 93%;
    border-bottom: 1px solid #000;
    }

    #sidebar p {
    margin: 5px 0 5px 0;
    padding: 0px;
    }

    #sidebar ul {
    margin: 0px;
    padding: 0px;
    }

    #sidebar li {
    list-style: none;
    margin: 0px;
    padding: 0 5px 0px 10px;
    }

    #sidebar li a, #sidebartop a {
    font-size: 11px;
    }

    #sidebartop a:hover {
    }

    #sidebar a img {
    border: 0px;
    }

    #sidebar a:hover img {
    border: 0px;
    }

    #sidebar a:hover {
    color: #3f3f3f;
    font-weight: bold;
    }

    /**************** Menublock styles ****************/

    .menublock{margin:0 0 5px 8px; font-size:0.9em;}
    .menublock, .tile ul{margin:0 0 20px 8px; font-size:0.9em;}
    .menublock li{list-style:none; display:block; padding:2px; margin-bottom:2px;}
    .menublock li a{text-decoration:none;}
    .menublock li a:hover{text-decoration:none;}
    .menublock li ul{margin:3px 0 3px 15px; font-size:1em; font-weight:normal;}
    .menublock li ul li{margin-bottom:0;}
    .menublock li ul a{font-weight:normal;}

    /**************** Searchbar styles ****************/

    #searchbar{margin:0 0 20px 0;}
    #searchbar form fieldset{margin-left:10px; border:0 solid;}

    #searchbar #s{
    height:1.0em;
    width:50px;
    margin:0 5px 0 0;
    border:1px solid #a0a0a0;
    }

    #searchbar #searchbutton{
    width:50px;
    padding:0 1px;
    border:1px solid #808080;
    font-size:0.9em;
    text-align:center;
    }

    /**************** Footer styles ****************/

    #footer{
    clear:both;
    width:780px;
    padding:5px 0;
    margin:0 1px;
    font-size:0.9em;
    color:#f0f0f0;
    background:#1E4A7E;
    }

    #footer p{padding:0; margin:0; text-align:center;}
    #footer a{color:#f0f0f0; background-color:inherit; font-weight:bold;}
    #footer a:hover{color:#ffffff; background-color:inherit; text-decoration: underline;}

    /**************** Misc classes and styles ****************/

    .splitcontentleft{float:left; width:48%;}
    .splitcontentright{float:right; width:48%;}
    .clear{clear:both;}
    .small{font-size:0.8em;}
    .hide{display:none;}
    .textcenter{text-align:center;}
    .textright{text-align:right;}
    .important{color:#f02025; background-color:inherit; font-weight:bold;}

    .box{
    margin:0 0 20px 0;
    padding:10px;
    background-color:inherit;
    color:#505050;
    line-height:1.5em;
    }

    /**************** Entry ****************/

    .entry { margin:0 0 20px 0; padding:4px 2px 2px; color:#666; font-size:10px; text-align:left; background:url(images/entry.png) no-repeat top left; }
    p img { margin:0; padding:2px; border:none; max-width:100%; }



    /****************SEARCH FORM****************/

    #searchform, #searchform p
    {
    font-size: 1.0em;
    margin: 0;
    }

    /*#searchform input
    {
    width: 50px;
    margin: .3em 0 1em 0;
    }
    */
    textarea, #author, #email, #url, #searchform input
    {
    font-size: 1.1em;
    background: #fff;
    color: #333;
    padding: 1px 2px;
    border: 1px solid #d9d9d9;
    }
    textarea:focus, #author:focus, #email:focus, #url:focus, #searchform input:focus { border-color: #36d; }


    /****************ICONS****************/

    .metalinks {
    margin-top: 3px;
    }

    .trackbacklink {
    background: url('images/trackback.png') left top no-repeat;
    padding: 2px 0 2px 20px;
    height: 16px;
    }

    .deliciouslink {
    background: url('images/delicious.png') left top no-repeat;
    padding: 2px 0 2px 20px;
    height: 16px;
    }

    .commentslink {
    background: url('images/comment.png') left top no-repeat;
    padding: 2px 0 2px 20px;
    height: 16px;
    }
     
    CalGuy, Aug 8, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Are you talking about the anchors in #content a:hover,#subcontent a:hover{text-decoration:underline;}? I see no underline except for :hover.

    cheers,

    gary
     
    kk5st, Aug 9, 2006 IP
  3. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Guessing that you might mean the H2 header

    If so:
    #content h2 a {text-decoration:none;}
    Code (markup):
     
    AdamSee, Aug 9, 2006 IP
  4. CalGuy

    CalGuy Peon

    Messages:
    208
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It was an issue with my browser. The links were showing up as being underlined. Everything seems to be fine now. Thanks!
     
    CalGuy, Aug 9, 2006 IP