SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Question about p1 in css

    In Dan Shafer's book, " HTML Utopia: Designing Without Tables Using CSS", page 52 inheritance diagram he shows several p elements ie p1, p2 etc. I have not seen this before but then again I'm new. I tried using p1 as an alternate p tag. My purpose was to change the text within a paragraph to highlight a quote. In this case the quote was from the bible. it worked well. Here is the css I used:

    p {
    font-size: large;
    font-family: Times New Roman, Times, Serif;
    text-indent: 2em
    }
    p1 {
    font-size: large;
    font-family: helvectia, geneva, arial, sun-sans, sans serif;
    color: black
    }

    The xhtml was like this <p>regular text<p1>highlighted text</p1>regular text</p>. The resut works quite well. The css validated no problem but the xhtml won't validate. The Validator sees the <p1> as an error. What am I doing wrong?

  2. #2
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    581
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is no such as <p1>. In your CSS change p1 to .p1 and in your HTML change <p1> to <p class="p1">.
    I will not flame the newbies,
    I will not flame the newbies,
    I will flame the newbies...
    Table free is the way to be!

  3. #3
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thread moved to "CSS" forum...


Bookmarks

Posting Permissions

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