You are viewing our Forum Archives. To view or take place in current topics click here.
CSS | adding more attributes HELP
Posted:
CSS | adding more attributes HELPPosted:
Status: Offline
Joined: Jul 21, 201211Year Member
Posts: 248
Reputation Power: 460
Status: Offline
Joined: Jul 21, 201211Year Member
Posts: 248
Reputation Power: 460
Hello I am trying to learn CSS. In my body I have <p> text </p>.
In my style I have defined p and put attributes to it.
I want to make another p and define other attributes.
How do I do it?
In my style I have defined p and put attributes to it.
I want to make another p and define other attributes.
How do I do it?
#2. Posted:
Status: Offline
Joined: Apr 16, 201113Year Member
Posts: 570
Reputation Power: 48
#3. Posted:
Status: Offline
Joined: Jul 21, 201211Year Member
Posts: 248
Reputation Power: 460
Status: Offline
Joined: Jul 21, 201211Year Member
Posts: 248
Reputation Power: 460
OMG thank you sooo much! Been waiting all day for this. Thanks man!
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Mar 28, 201410Year Member
Posts: 2
Reputation Power: 0
Status: Offline
Joined: Mar 28, 201410Year Member
Posts: 2
Reputation Power: 0
You should only use classes in CSS if you plan on using the class more than once. If not, use an id selector
#myDiv p
{
color: red; /* This makes all paragraphs in #myDiv red */
}
- 1useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.