View Full Version : Anylink CSS v2.2

11-12-2009, 06:09 PM
1) Script Title: Anylink CSS v2.2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm

3) Describe problem: Can you tell me how to change the font color of the anchor link to white? I would also like it to be non-underlined. Also, how would I change the non-highlighted links in the menu to be red? Thanks for any help!!

11-13-2009, 11:23 PM
To style the anchor links, you'd just add this bit of CSS inside its tag:

<a href="http://www.dynamicdrive.com" class="anchorclass" rel="submenu1" style="color:white">Default Example</a>

To style the links inside the drop down menus, you'd modify anylinkcss.css, such as:

.anylinkcss ul li a{
width: 100%;
color: red;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;

11-14-2009, 11:45 PM
Thanks!! It looks great now.

Any chance I can edit the anchor link so that it is not underlined?

btw, I am a novice at this. Any patience with dumb questions appreciated...

11-15-2009, 08:32 AM
Certainly, you'd add:

<a href="http://www.dynamicdrive.com" class="anchorclass" rel="submenu1" style="color:white; text-decoration:none">Default Example</a>