473,714 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

change link colors in p class

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.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Lippel t-B&auml;ckereima schinen</title>
</head>
<body>
<!-- ###DOCUMENT_BOD Y### 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">###ROO TLINE###</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_BOD Y### 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
Jul 23 '05 #1
18 10283
Denny Schierz wrote:
i tested different options, but i was not able to change only the link
colors in the p class="suchen".


p.suchen a:link { color: ...; }
p.suchen a:visited { color: ...; }
p.suchen a:hover { color: ...; }
p.suchen a:active { color: ...; }

--
Mark.
http://tranchant.plus.com/
Jul 23 '05 #2
On Thu, 30 Sep 2004 17:18:16 +0200, Denny Schierz <cu***@gmx.de > wrote:
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;}

Jul 23 '05 #3

"Denny Schierz" <cu***@gmx.de > wrote in message
news:cj******** *****@news.t-online.com...
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.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Lippel t-B&auml;ckereima schinen</title>
</head>
<body>
<!-- ###DOCUMENT_BOD Y### 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">###ROO TLINE###</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_BOD Y### 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?

Jul 23 '05 #4
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
Jul 23 '05 #5
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 :-)
Jul 23 '05 #6
hi,

Mark Tranchant schrieb:
p.suchen a:link { color: ...; }
p.suchen a:visited { color: ...; }
p.suchen a:hover { color: ...; }
p.suchen a:active { color: ...; }


also for you, a big thank :-)

cu denny
Jul 23 '05 #7
On Thu, 30 Sep 2004 18:32:14 +0200, Denny Schierz <cu***@gmx.de > wrote:
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;
}


Problem: How will this be recognized as a link? Recommend leaving
underline in, unless you otherwise make it painfully obvious these are
links.
Jul 23 '05 #8
hi,

Neal wrote:
Problem: How will this be recognized as a link? Recommend leaving
underline in, unless you otherwise make it painfully obvious these are
links.


you can see, how it looks:

http://www.lippelt-back.com/

you find it under the main menu on the right side. I change the colors so
everybody can see this links, without a underline. I use underline for
hover :-)

Did you find it painfull? but thanks for this hint :-)

cu denny
Jul 23 '05 #9
Denny Schierz <cu***@gmx.de > writes:
p suchen a:link {
color : #fd1613;
background : transparent;
text-decoration : none;
}

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


Apart from that, there's another problem.

You've specified a colour, but not a background colour [1] - so
there's a chance that there'll be problems with user colour settings.

[1] Transparent doesn't count, because that's the default anyway. I
*think* 'inherit' would work (and still do what you want), provided
there's a background colour set for something nearer the root element,
but I can't be certain - has anyone else tested inherit in these
conditions?

--
Chris
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2417
by: Dan Jacobson | last post by:
What's Nielsen talking about in http://www.useit.com/alertbox/20040503.html http://www.useit.com/alertbox/20040510.html Can't a good browser keep track of visited vs. unvisited link colors? Is my site deficient as I have not messed with link colors? Does Nielsen address why all this can't be left up to the browser? Are link colors supposed to be special, like background images, to make a big impression?
12
15317
by: jfburr | last post by:
very simple thing (I hope) I've got a css style sheet that starts like this: ______________ A:link { color: cc9933; }
18
10743
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand where they have been. I also agree to the background: Too many web authors keep uniform link colors or their pages, thereby confusing the users. What I have a hard time agreeing to is his conclusion that web authors should deliberately change the...
9
3923
by: michael | last post by:
I have many links on a page, but for example sake, these two: <a href="bla1.html" id="link1">bla1</a> <a href="bla1.html" id="link2">bla1</a> I use a Javascript function to change the link colors: document.getElementById("link1").style.color='lime' document.getElementById("link2").style.color='lime'
3
3388
by: Mike Barnard | last post by:
Hi all, newbie here. Odd sounding subject but I can't describe it any better. I'm trying to teach myself a little about CSS. In a test site (not published) I am trying to use CSS to make navigation buttons. I'm using the tutorial I found at this site as a basis for it. http://www.mako4css.com/TFonts.htm
4
4096
by: Franklin | last post by:
WITHOUT KNOWING ANYTHING ABOUT THE CURRENT COLORS, I want to swap the foreground/background colors of a link when someone hovers over it. Is this possible with HTML, CSS, DOM, & JavaScript? If so, how? See my HTML below (or go to my test page at http://fmbbowen.com:39353/misc/Misc.html). I also tried treating ..color as a number and subtracting the current color from 0xFFFFFF but that did not work either. The numerous examples I...
4
7335
by: news.internode.on.net | last post by:
Is there any way that a STYLE attribute can be used to control the color of hyperlinks. We have a tabular output generator written in C#. Each column of the table is defined by a column, and each column can have what is called a "styler". The styler is evaluated once for each cell, for every row emitted. The idea behind the styler is that it can dynamically make decisions on colors to apply. For example a list of Actions could change...
5
40961
by: Bubba | last post by:
I need to use an inline css tag for a few links that will not behave like the a:link and a:hover attributes in my stylesheet. I want to add a special link color with underline and a mouseover a:hover attribute to eliminate an underline when underlined to a series of links . Wondering how possible putting an inline style such as this to <a hreftag thanks
4
5359
torquehero
by: torquehero | last post by:
hi, I am working with dreamweaver MX 2004. The problem is with Link colors (text). In page properties I have specified the link color, visited links, active links as #000000 and rollover links as #0066cc. Now I click on apply, OK and then I save the file. When I preview it in the browser (IE6), the links are gray..i.e, #666666. The text which does not contain a hyperlink accepts whichever color I set it to. But "the links" are really...
0
8817
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9189
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9086
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9037
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7963
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6641
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4470
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4734
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3170
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.