|
|
|
|
![]() ![]() |
Oct 19 2006, 11:13 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 246 Joined: 9-September 06 From: TX Member No.: 29,706 |
ok well i have been recently into. to css and i have a ? say i want to select a paragraph....but i dont want it to affect all ot the paragraphs...how do i do that?
|
|
|
|
Oct 19 2006, 11:34 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,002 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Give the paragraph a selector, either a class or an id. Then use the selector to 'select' that (those) paragraph(s).
If there is only one like it on the page, use an 'named selector. If there are going to be more than one of them on a page, use a (.class) selector. use this to select a named element in your css: (only one allowed per page) CODE #named p { font-weight:bold;} // for bold type face <p id="named"> ... stuff here ... </p> // a 'named' selector use this to select a class in your css: (allows several per page) CODE .class_name p { font-weight:bold;} // for bold type face for the class <p class="class_name"> ... stuff here ... </p> // a 'class' selector *not tested* |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 7th September 2008 - 01:24 PM |