Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

jagatuba

  • 3 years ago

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

  • This Question is Closed
  1. jagatuba
    • 3 years ago
    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. Samira
    • 3 years ago
    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.

  3. jagatuba
    • 3 years ago
    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 />?

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

    I'm gonna go try it.

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

    Nope. Still gives you that extra padding.

  6. DarkSign
    • 3 years ago
    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.

  7. polpak
    • 3 years ago
    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.

  8. anstia
    • 3 years ago
    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.

  9. Not the answer you are looking for?
    Search for more explanations.

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

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.