www.webdeveloper.com
Results 1 to 8 of 8

Thread: adding space without <br> tag?

  1. #1
    Join Date
    Dec 2013
    Posts
    57

    adding space without <br> tag?

    I am trying to add a space but when I use the <br> tag the space is too big. I want to know how I can decrease the space with html or css.

  2. #2
    Join Date
    Oct 2013
    Posts
    397
    Please define "space". Space between words? Space between lines? <br> should be used within a block level element such as <p> or <div> to indicate a line break, not between block level elements.

  3. #3
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,458
    Hi there ytesfay80,

    CSS "padding" and "margin" attributes are used to control space between HTML elements.

    A "Google" search will provide plenty of examples of their implementation.

    coothead

  4. #4
    Join Date
    Oct 2013
    Location
    3rd planet from the sun
    Posts
    163
    Code:
    &nbsp;  that is your space

  5. #5
    Join Date
    Dec 2013
    Posts
    57
    Quote Originally Posted by kralcx View Post
    Code:
    *  that is your space
    not space between text.

    the <br> causes a line break I want to be able to skip multiple lines without having to use a lot of <br> tags.

  6. #6
    Join Date
    Oct 2013
    Posts
    397
    Quote Originally Posted by ytesfay80 View Post
    I want to be able to skip multiple lines without having to use a lot of <br> tags.
    Answer

  7. #7
    Join Date
    Oct 2013
    Posts
    29
    you can adjust it by adding negative margins..

  8. #8
    Join Date
    Oct 2013
    Location
    3rd planet from the sun
    Posts
    163
    Quote Originally Posted by ytesfay80 View Post
    not space between text.

    the <br> causes a line break I want to be able to skip multiple lines without having to use a lot of <br> tags.
    then use separate divs, and control the space between divs with your css

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