have an external css file and I want to add styles in it for link colors... (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


lsfphelpls -> have an external css file and I want to add styles in it for link colors... (11/30/2007 4:00:39)

I have an external css file and I want to add styles in it for link colors[a:link, a:visited...], what to do ? I use dreamweaver mx 2004.




jaybee -> RE: have an external css file and I want to add styles in it for link colors... (11/30/2007 7:53:13)

Open the css file and add the changes?




lsfphelpls -> RE: have an external css file and I want to add styles in it for link colors... (11/30/2007 9:48:52)

I want to add new css , these types i refer do not yet exist ? How to add them automatically via dreamweaver mx 2004 menus ?




coreybryant -> RE: have an external css file and I want to add styles in it for link colors... (11/30/2007 10:36:56)

CSS Pseudo Classes might help understand how to add them.




jaybee -> RE: have an external css file and I want to add styles in it for link colors... (11/30/2007 10:53:36)

quote:

I want to add new css , these types i refer do not yet exist ? How to add them automatically via dreamweaver mx 2004 menus ?


As Corey indicates, if you want to use complex css then you need to learn css and not rely on DW or any of the other automated software to do it for you. When you need to change something in a few months time you'll be glad you did.




lsfphelpls -> RE: have an external css file and I want to add styles in it for link colors... (11/30/2007 12:42:56)

this is excatly correct syntax to be used ?
 link {
a:link {color: #FF0000}     /* unvisited link */
a:visited {color: #00FF00}  /* visited link */
a:hover {color: #FF00FF}   /* mouse over link */
a:active {color: #0000FF}   /* selected link */ 
}




coreybryant -> RE: have an external css file and I want to add styles in it for link colors... (11/30/2007 13:01:41)

You don't need the link { and the last } in there sp that it would be
a:link {color: #FF0000}     /* unvisited link */
a:visited {color: #00FF00}  /* visited link */
a:hover {color: #FF00FF}   /* mouse over link */
a:active {color: #0000FF}   /* selected link */
. The things between / can be removed because they are just comments.




Tailslide -> RE: have an external css file and I want to add styles in it for link colors... (11/30/2007 14:20:30)

You also need :

a:focus {color:#FF00FF;}


Between a:visited and a:hover. To be honest i tend to have the focus, hover and active rules the same so I'd have:

a:focus, a:hover, a:active {color:#FF00FF;}




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875