PDA

View Full Version : Links and CSS


bobrugh
03-09-2010, 03:44 AM
I have the links on my page set up as styles, a:link, a:visited, a:hover, a:active. But that limits my links to be at one point size type. Is there a way to have two distinct CSS styles for separate links at different point sizes?

edbr
03-09-2010, 05:22 AM
see the link in my sig for different links

bobrugh
03-10-2010, 02:48 AM
Thanks, that worked out well. Can you help me with something else? How do I set up the link to open a new browser window, if the links are styled as such? If I use the built in java behavior, the linked website opens in the current window AND the new browser window.

DWcourse
03-10-2010, 04:03 AM
<a href="link.html" target="_blank">link</a>

bobrugh
03-11-2010, 03:53 AM
Thanks, that worked!

d a v e
03-11-2010, 06:04 AM
don't forget though that you shouldn't use pts for the web (except for a print style sheet) use percentages, ems or pixels (with the caveat that px don't resize in ie6) *if* that's what you mean by 'point sizes' ;)

bobrugh
03-11-2010, 12:56 PM
I was mistaken about point size, been too long working in print. I was using what ever the unit was in the drop down CSS menus in Dreamweaver which is px. (I just checked) So from what you've said I should change that to em.