|
| |
have an external css file and I want to add styles in it for link colors...
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
|
lsfphelpls
Posts: 443 Joined: 3/16/2005 Status: offline
|
have an external css file and I want to add styles in i... - 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.
|
|
|
|
lsfphelpls
Posts: 443 Joined: 3/16/2005 Status: offline
|
RE: have an external css file and I want to add styles ... - 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 ?
|
|
|
|
lsfphelpls
Posts: 443 Joined: 3/16/2005 Status: offline
|
RE: have an external css file and I want to add styles ... - 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
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: have an external css file and I want to add styles ... - 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.
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
Tailslide
Posts: 5915 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: have an external css file and I want to add styles ... - 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;}
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|