logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-13-2005, 07:34 PM   #1
el pendejo
 
Join Date: Jul 2005
Posts: 2
Default



p.bla {

color: 333;

}

h2, p {

color: 666;

}

-----------------------------------------------------

<h2> blablabla bla<\h2>

<p class"bla">blabla bli blo blu<\p>


bli blu blablibla ba<\p>
<p class"bla">tadddaaammmm!<\p>






i m new let's see if i m right:

h2= will be 666 color
1st p= will be 333
2nd= will be 666
3rd= will be 333


If there 's more P with a class and less P with just a color will it make's it more specific and then becoming the winner?

take it easy on me!
thanks
el pendejo is offline   Reply With Quote
Old 07-13-2005, 10:23 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Yes this is right
Remember to use '#' ahead of colors in your style. (#333)

A class will override because it's more specific.
Quote:
h2= will be 666 color
1st p= will be 333
2nd= will be 666
3rd= will be 333
domedia is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com