Advanced Search

Results 1 to 2 of 2

Thread: Heading Links CSS

  1. #1
    Join Date
    Sep 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Heading Links CSS

    I'm trying to figure out how to add a link inside a Heading in CSS stylesheet. I want the heading anchor link to be in different size from the main body link. Can someone please let me know if possible can be done and also how to code it in a stylesheet ?

    This is part of my code right now

    H1 {
    font-family: Times New Roman;
    color: #000033;
    font-size : 15pt;
    text-decoration: none;


    }

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You would just add to your stylesheet the appropriate info for h1 a:link. For example,

    h1 a:link { color: green;
    font-size:40pt;}
    h1 a:visited {text-decoration: none;
    color: green;
    font-size:40pt;}
    h1 a:active {text-decoration: none;
    color: blue;
    font-size:40pt;}
    h1 a:hover {text-decoration: underline;
    color: red;
    font-size:40pt;}

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
  •