Exforsys
+ Reply to Thread
Results 1 to 3 of 3

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 ...

  1. #1
    nairod09 is offline Junior Member Array
    Join Date
    May 2011
    Answers
    1

    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.


  2. #2
    lokeshm is offline Member Array
    Join Date
    Apr 2005
    Answers
    83
    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.


  3. #3
    poojadreams is offline Junior Member Array
    Join Date
    Aug 2011
    Location
    Hyderabad
    Answers
    22
    Code:
    
    
    
    
    
    
    

    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.

    What ever you want. You can place as many classes as you want. Or you can use style for individual paragraphs

    Last edited by poojadreams; 08-23-2011 at 03:29 AM.

    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...