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 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2010
    Posts
    50
    Thanks
    31
    Thanked 1 Time in 1 Post

    How do I add a line break after label tag and before input tag in a form?

    I need to add a line break after a <label> tag and before an <input> tag in a form.
    How do I do this?

    Thanks

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,729
    Thanks
    6
    Thanked 1,016 Times in 989 Posts
    With CSS. There are several different ways to do this, depending on the mark-up but assuming the input follows the label directly in the code:
    Code:
    label + input {display: block;}

  • Users who have thanked VIPStephan for this post:

    Elbee (03-11-2014)


  •  

    Posting Permissions

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