Results 1 to 3 of 3

Thread: Basic Help With <p>

  1. #1
    Join Date
    Jan 2006
    Location
    Stephen Island Australia (QLD)
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Basic Help With <p>

    Hey,
    i need some help with the space codes-

    i want something like this:

    Thanks,

    Hakopa
    test.net

    With html it makes it look like this:
    Thanks,

    Hakopa

    test.net

    I want to get rid of the space in between- <P>?
    How do i do this?
    Thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The <p> tag does that. There are ways of using complex styling that will change margins, but it's not worth it.

    Use the <br> tag instead.

    Note that it doesn't need a close tag. (Never use </br>)... it is simply a line break wherever you put it.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Don't over-use the <br> tag. In this case it's semantically acceptable to use it, but if you're starting a new paragraph, use <p> and style it with margin-bottom:0;.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •