Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a new comer in the field of CSS. But I have a confusion about CSS Classes.
For Example
CSS
#logo p {
    float: left;
    margin: 0;
    padding: 26px 0 0 10px;
    font: normal 14px Georgia, "Times New Roman", Times, serif;
    font-style: italic;
    color: #5E4E38;
}
#logo p a {
    color: #5E4E38;
}
#logo a {
    border: none;
    background: none;
    text-decoration: none;
    color: #A83A01;
}


Here I want to understand that Why #Logo p, #Logo p a, #Logo a and #Logo p etc has been used. We can use only #Logo but what are these (a, p, p a etc) with #Logo CSS Class. What is their functionality?
Posted
Updated 27-Nov-10 23:36pm
v3

1 solution

#logo is an id. p and a refer to html tags. See here[^]
 
Share this answer
 
Comments
TweakBird 27-Nov-10 14:20pm    
Good Link
raju melveetilpurayil 28-Nov-10 5:34am    
yes Walt Fair, you are right :) take my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900