Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

jagatuba

In HTML, I want to print something on a new line without any extra space between lines. How?

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 1

    For example: <p>This stuff</p><p>That stuff</p> displays like this (roughly): This stuff That stuff I want it to display like this (roughly): This stuff That stuff Is this even possible using HTML?

    • 2 years ago
  2. Samira
    Best Response
    You've already chosen the best response.
    Medals 0

    of couse, <p></p> or just <br/> tag . it means "break" or '\n' character. it is a symbol of new line also you can use <div></div> without any styles every new <div> begins in a new line. and many other ways to do what you want...it depends on your additional requirements. just visit http://www.w3schools.com/ you can find many useful information about html, javascript, php, etc.

    • 2 years ago
  3. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 1

    Yeah I love that site. So you are saying the <div> tags will give me a line break without the extra padding that is in <p> and <br />?

    • 2 years ago
  4. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 1

    I'm gonna go try it.

    • 2 years ago
  5. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 1

    Nope. Still gives you that extra padding.

    • 2 years ago
  6. DarkSign
    Best Response
    You've already chosen the best response.
    Medals 0

    You can use CSS to fix that padding, if you want. <br> is semantically used to just do a "Return" on the page.

    • 2 years ago
  7. polpak
    Best Response
    You've already chosen the best response.
    Medals 2

    The problem isn't one of html which describes what the elements of your document are. The problem is one of css which describes how the page should look. You want to adjust the margin or padding (or both) using css. You don't have to do anything to your html.

    • 2 years ago
  8. anstia
    Best Response
    You've already chosen the best response.
    Medals 0

    If you are using Firefox, I can recommend installing FireBug, if you have further formatting issues. You can use FireBug to check how much padding you have, or any other part of the box layout, to see why your elements look like they do.

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.