
- Forum
- Programming Talk
- Html
- CSS text size/color
CSS text size/color
This is a discussion on CSS text size/color within the Html forums, part of the Programming Talk category; HI there I used Dreamweaver to design my website. I like the font size on my website to be FIXED ...
-
CSS text size/color
HI there

I used Dreamweaver to design my website.
I like the font size on my website to be FIXED so people cannot adjust it....so I pasted the style type below on the HTML header of each page.
It works great, but this controls the text size and color of the whole page. My question is how can I manipulate the text size/color of each paragraph? I'm sure its very simple but I have googled this and I just can't seem to find the answer, maybe i'm doing it wrong.
Thanks so much.
-
nairod09
Either you assign distinct class name for each paragraph or you can make user of jQuery
Using jQuery you can select and loop through each paragraph and dynamically assign any kind of CSS,
I suggest you try jQuery, you will not look back....
Regards,
Lokesh M.
-
08-23-2011, 03:23 AM #3
- Join Date
- Aug 2011
- Location
- Hyderabad
- Answers
- 22
What ever you want. You can place as many classes as you want. Or you can use style for individual paragraphsCode:This is heading 1
This is an ordinary paragraph. Notice that this text is red. The default text-color for a page is defined in the body selector.
By checking the page source of this particular code you will understand it.This is a paragraph with class="ex". This text is blue.
Last edited by poojadreams; 08-23-2011 at 03:29 AM.
-
Sponsored Ads

Reply With Quote





