www.webdeveloper.com
Results 1 to 5 of 5

Thread: <p> Problem

  1. #1
    Join Date
    Jul 2003
    Posts
    138

    <p> Problem

    Trying to learn CSS and cannot see how to stop the <p> from starting a new line every time I use it - I need to change the font values several times on one line of text, how do I do that using the <p class...>

    or do I have to revert to HTML's <font>

    Thanx for any help..

  2. #2
    Join Date
    Jun 2004
    Location
    4846′36″ N 910′48″ E
    Posts
    3,747
    well, that's what a paragraph is for!
    Don't use the <font> tag, but the <span> tag instead

  3. #3
    Join Date
    Jul 2003
    Posts
    138
    Thank very much that is perfect (why didn't I know that)...

  4. #4
    Join Date
    Jun 2004
    Location
    4846′36″ N 910′48″ E
    Posts
    3,747
    hehe, well now you know!

  5. #5
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    You also need to think about why you need to change fonts. Is there a semantic reason? If so (and that's generally the case) you probably need to select the appropriate tags to identify the content then style it accordingly.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles