Click here to get back home

change link colors in p class

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
change link colors in p class Denny Schierz 09-30-2004
Posted by Denny Schierz on September 30, 2004, 6:18 pm
Please log in for more thread options
hi,

i want to change my link colors in the p class="suchen":

That is my html:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//DE"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Lippelt-B&auml;ckereimaschinen</title>
</head>
<body>
<!-- ###DOCUMENT_BODY### START-->
<div id="logo"><div align="right"><a href="http://www.lippelt-back.com"
target="_self"><img src="http://lippelt-back.com/file$
<div id="container"><div id="top">###ROOTLINE###</div></div>
<div id="leftnav">###CONTENT-LINKS###</div>
<div id="rightnav">###NAVI_LINKS###<p class="happy"></p><p
class="suchen">###INFO###</p></div>
<div id="content">###CONTENT-RECHTS###</div>
<div id="footer">###copyright### ###LAST###</div>
<div id="counter"></div>
<!-- ###DOCUMENT_BODY### STOP-->
</body>
</html>


i tested different options, but i was not able to change only the link
colors in the p class="suchen".

any hints?

cu denny


Posted by Neal on September 30, 2004, 12:37 pm
Please log in for more thread options

> hi,
>
> i want to change my link colors in the p class="suchen":
>
> That is my html:

Don't post HTML, post a URL to a page showing the issue. Your code didn't
even have an anchor element in the classed p element.

> i tested different options, but i was not able to change only the link
> colors in the p class="suchen".
>
> any hints?

p.suchen a:link {color: blue;}
p.suchen a:visited {color: purple;}
p.suchen a:hover {color: green;}
p.suchen a:active {color: red;}



Posted by Denny Schierz on September 30, 2004, 7:33 pm
Please log in for more thread options
Neal schrieb:

> Don't post HTML, post a URL to a page showing the issue. Your code
> didn't even have an anchor element in the classed p element.

sorry, i will do it in the future

> p.suchen a:link {color: blue;}
> p.suchen a:visited {color: purple;}
> p.suchen a:hover {color: green;}
> p.suchen a:active {color: red;}

thanks, it helps :-)


Posted by Harlan Messinger on September 30, 2004, 12:59 pm
Please log in for more thread options

> hi,
>
> i want to change my link colors in the p class="suchen":
>
> That is my html:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//DE"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Lippelt-B&auml;ckereimaschinen</title>
> </head>
> <body>
> <!-- ###DOCUMENT_BODY### START-->
> <div id="logo"><div align="right"><a href="http://www.lippelt-back.com"
> target="_self"><img src="http://lippelt-back.com/file$
> <div id="container"><div id="top">###ROOTLINE###</div></div>
> <div id="leftnav">###CONTENT-LINKS###</div>
> <div id="rightnav">###NAVI_LINKS###<p class="happy"></p><p
> class="suchen">###INFO###</p></div>
> <div id="content">###CONTENT-RECHTS###</div>
> <div id="footer">###copyright### ###LAST###</div>
> <div id="counter"></div>
> <!-- ###DOCUMENT_BODY### STOP-->
> </body>
> </html>
>
>
> i tested different options, but i was not able to change only the link
> colors in the p class="suchen".

Would you like to tell us what you tried so we don't waste time duplicating
your own efforts?



Posted by Denny Schierz on September 30, 2004, 7:32 pm
Please log in for more thread options
hi,

Harlan Messinger schrieb:

> Would you like to tell us what you tried so we don't waste time duplicating
> your own efforts?

i tried somthing like that:

p suchen a:link {
color : #fd1613;
background : transparent;
text-decoration : none;
}

p suchen a:visited {
color : #fd1613;
text-decoration : none;
}

p suchen a:hover {
color : black;
text-decoration : underline;
}

p suchen a:active {
color : #e9e9e9;
text-decoration : none;
}

i've forgotten to set the point "." :-/

stupid error :-(

thanks a lot for helping

cu denny


Similar ThreadsPosted
How can I change the value in a css class? October 18, 2005, 9:04 am
class? underline link July 7, 2007, 8:53 pm
IE6 link colors & CSS override (vs. Firefox) October 20, 2005, 9:06 pm
How do you swap foreground & background colors for a link (or any element)? September 20, 2005, 1:41 pm
How can I change the Applet's parameters with HTML button or link? May 30, 2005, 1:49 am
Link in a one frame change content of another frame. October 7, 2005, 1:30 pm
class="" December 15, 2005, 10:13 am
CSS trouble - div.class div.class2 September 30, 2004, 1:03 pm
CSS pseudo class question July 5, 2005, 1:10 am
Class attribute values November 7, 2005, 7:27 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap