1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Question about CSS and A{ Style/Color

Discussion in 'Web Design & Development' started by Talismanic, Feb 16, 2005.

Thread Status:
Not open for further replies.
  1. Talismanic

    Talismanic Thread Starter

    Joined:
    May 25, 2000
    Messages:
    409
    I don't know much about CSS but can usualy alter existing sheets to suit my needs. However I have a problem I cannot figure out. I want to change the link colors for a the "sidetitle."

    <h2 align="center" class="sidetitle">Search</h2>

    The links in the rest of the page are colored and styled how I want them but for this section I want to make them white. I thought I could do it with the following but it didn't work.
    Code:
    .sidetitle {
    	font-family:verdana, arial, sans-serif;
    	color:#FFF;
    	font-size:11px;
    	font-weight:normal;
    	line-height:14px;
    	padding:2px;
     	margin-top:10px;
    	letter-spacing: .1em;
    	border-bottom:1px dotted #FFF;
    	text-align:center;		  					
     	/* 	background:#FF9933;		*/
    }
    
    a.sidetitle:link{
        color: White;
        text-decoration: none
    }  
    a.sidetitle:visited{
        color: White;
        text-decoration: none
    }
    a.sidetitle:hover{
    	color: Red;
    	text-decoration: underline;
    }
    
     
  2. Shadow2531

    Shadow2531

    Joined:
    Apr 30, 2001
    Messages:
    2,636
    Code:
    h2.sidetitle a:link, h2.sidetitle a:visited {
        text-decoration: none;
        color: #fff;
    }
    h2.sidetitle a:hover {
        text-decoration: underline;
        color: #f00;
    }
    
    The h2 part should be optional.
     
  3. Talismanic

    Talismanic Thread Starter

    Joined:
    May 25, 2000
    Messages:
    409
    Thank you very much. That fixed it.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Question Style Color
  1. shoff
    Replies:
    10
    Views:
    541
  2. corgwork
    Replies:
    2
    Views:
    374
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/331438

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice