| | 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? |
|
|
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* |
|
![]() Question About Css |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|