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

Thread: CSS Problem

  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Problem

    Hi there...again.

    I have a slight problem. I have 1 paragraph, indented 2cm, with 3 lines. the 1st line is supposed to be bold, and indented. the other 2 lines are supposed to be regular text, and also indented. Unfortunately, this is not the case. the 1st line is bold and indented, but the other 2 lines are not indented.

    Here is the CSS file:

    p.cap { font-weight="bold"; text-indent: 2cm; font-size: 18px}
    p.para1 { text-indent: 2cm; font-family: Arial; font-size: 10pt}

    Here is the HTML code:

    <p class="cap">Bold Text Goes Here
    <div class="para1">Regular text, but should still be indented
    <div class="para1">Regular text, but should still be indented</div>
    </div>

    </p>

    It was working before, but not now.

    Any suggestions would be GREATLY appreciated.

    thanks!!
    dan

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Louisville, KY
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    text-indent only indents the first line of the paragraph. to make the whole paragraph indented, use padding-left: 2cm or even padding: 2cm if you want it even on all sides (top, bottom, left, right)

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much. It worked!!
    dan

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Louisville, KY
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're welcome. Glad to be of service.


  •  

    Posting Permissions

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