Web Analytics Made Easy -
StatCounter CSS Paragraph styles...is it possible? - CodingForum


No announcement yet.

CSS Paragraph styles...is it possible?

  • Filter
  • Time
  • Show
Clear All
new posts

  • CSS Paragraph styles...is it possible?


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


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

        W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

        and here:

        Lycos, Inc., is a web search engine and web portal established in 1994, spun out of Carnegie Mellon University. Lycos also encompasses a network of email, webhosting, social networking, and entertainment websites.