Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Aug 2011
    Location
    Bangladesh
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post

    How to change the font size

    I want to change my font size on my post pages but when I apply the setting my whole theme font size changes. I want that my home page font size stay at 12px and my post pages font size to stay at 14px so how I will do it please help I am using genesis theme.

  • #2
    New to the CF scene
    Join Date
    Aug 2011
    Location
    India
    Posts
    7
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Please go through the following tutorial which helps to change font size in divs.

    http://www.opensourcevarsity.com/jav...geparafontsize

  • #3
    New Coder
    Join Date
    Aug 2011
    Location
    Bangladesh
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post
    thanks for the reply I will check it out

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,642
    Thanks
    6
    Thanked 1,005 Times in 978 Posts
    Quote Originally Posted by bendania View Post
    To apply your selected font size, simply enter the attribute-value pair:

    size="font size"

    ...into your <font> tag where font size equals any number from 1 to 7.

    Example:

    <font size="4">Your visible text goes here and will look like this.</font>
    No, no, no! That’s wrong. That’s what CSS is there for.

  • #5
    New Coder
    Join Date
    Sep 2011
    Location
    Shanghai
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    depreciated tags

    Quote Originally Posted by bendania View Post
    To apply your selected font size, simply enter the attribute-value pair:

    size="font size"

    ...into your <font> tag where font size equals any number from 1 to 7.

    Example:

    <font size="4">Your visible text goes here and will look like this.</font>

    the <font> element has been made obsolete in html5 and will not be validated. additional obsolete elements are: <big> <blink> <center> & <marquee>.

    don't use them...

  • #6
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    create 2 classes, 1st is with font-size:12px and 2nd is with font-size:14px and assign to elements according to your code


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •