467,155 Members | 954 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,155 developers. It's quick & easy.

css em include

tenho um index onde tenho o link pro arq css, como sao visualizados pelo
include todas as paginas aderem ao css linkado no index. so q eu preciso de
alguns links com outras cores no css, o q devo fazer?

Jul 16 '05 #1
  • viewed: 3474
Share:
1 Reply
Clarice Almeida Hughes wrote:
tenho um index onde tenho o link pro arq css, como sao visualizados pelo
include todas as paginas aderem ao css linkado no index. so q eu preciso de
alguns links com outras cores no css, o q devo fazer?


Ola Clarice,

Por favor escreve as tuas mensagens em ingles.
Wrong group, but you're portuguese just like me :)

Your css should have the attributes defined in different classes,
which you then use as needed.
index.css
---------
b { color: black; }
b.red { color: red; }
b.green { color: green; }
index.html
----------
<html>
<head>
<link rel="stylesheet" type="text/css" href="index.css" />
<title>css</title>
</head>
<body>
<b>black</b><br />
<b class="red">red</b><br />
<b class="green">green</b>
</body>
</html>

--
"Yes, I'm positive."
"Are you sure?"
"Help, somebody has stolen one of my electrons!"
Two atoms are talking:
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by steve | last post: by
60 posts views Thread by Derrick Coetzee | last post: by
9 posts views Thread by zolli | last post: by
5 posts views Thread by David Mathog | last post: by
1 post views Thread by ya man | last post: by
14 posts views Thread by Jon Rea | last post: by
7 posts views Thread by Giancarlo Bassi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.