PDA

View Full Version : Creating CSS Link Styles in Dreamweaver cs4


angelitzme
02-16-2009, 04:35 PM
hello, i started to make my own css stylesheet for my web site (mywebsite_styles.css).
what i want to do is add a link style, visited style and hover style.
i did well the body, p, h1, h2. but i'm stuck at making a style for the links.
i create a "new css rule", but then i don't know if i should choose Class, Id, Tag, or Compound, plus when i try to enter a Selector name, "a:link" doesn't work as it says "there should be no spaces or additionnal punctuation".
all the help i found on the net were for cd3 or before and it doesn't apply.
please anyone can help me?

Corrosive
02-16-2009, 04:51 PM
hello, i started to make my own css stylesheet for my web site (mywebsite_styles.css).
what i want to do is add a link style, visited style and hover style.
i did well the body, p, h1, h2. but i'm stuck at making a style for the links.
i create a "new css rule", but then i don't know if i should choose Class, Id, Tag, or Compound, plus when i try to enter a Selector name, "a:link" doesn't work as it says "there should be no spaces or additionnal punctuation".
all the help i found on the net were for cd3 or before and it doesn't apply.
please anyone can help me?

Either set link styles through Page Properties and then copy the code DW produces into your stylesheet (bear in mind that setting page properties usually puts the styles in your <head> tags so delete this). Or, you could just manually enter them onto the stylesheet in code view.

angelitzme
02-16-2009, 05:08 PM
thank you, i'll try this