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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    CANADA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question CSS Paragraph styles...is it possible?

    Hey...

    I am relearning HTML and building a site with my wife. We are using an external CSS and using that to set our header <hx> styles etc.

    I was wondering, I found mention of setting paragraph styles...and how would I do it?

    Here is an example of what I am trying to do.


    This on works:
    h1 {font-weight: bolder;
    font-size: 40pt;
    color: #115ffd;
    }

    This one doesn't:
    p1 {color: #115ffd;
    text-align: justify;
    font-size: 13pt;
    }

    Can it even be done? Am I repeating a post from earlier...I browsed them all, but couldn't find anything regarding this.

  • #2
    New Coder
    Join Date
    Jun 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Either get rid of the "1" after the p, or set up a class system and put a period between the p and the 1. I think that should work...

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Location
    CANADA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    p.1 {color: #115ffd;
    text-align: justify;
    font-size: 13pt;
    }

    So something like the above would work? How would I use it in the HTML...

    <P.1>
    <P1>

    Or something else entirely. Does anyone know a tutorial I can find on this so that I don't have to keep asking lots of silly questions????

    PS..thanks for the quick reply.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The "1" is the name of the class you specified for the P elements; using it goes like:

    <p class="1"> ...

    (although i could thing of better names... )

    Tutorials on CSS can, among others, be found here:

    http://www.w3schools.com/css/default.asp

    and here:

    http://hotwired.lycos.com/webmonkey/...g/stylesheets/
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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