Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS I have a very stupid, easy question.

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #41539
    Magikarp
    Participant

    How do I insert automatic break lines for paragraphs without having to do `

    ` every time?

    For exmaple..

    Let’s say have this:

    Paragraph #1

    #2

    #3

    #4

    #5

    #6

    Is there a way to make it break a line each line without using `

    ` for each one?

    #118659
    stevencrader
    Member

    Are you wanting text to be double spaced or are you just looking to add extra space between paragraphs?

    #118663
    chrisburton
    Participant

    I recommend setting a margin-bottom on paragraph tags.

    Edit: I think @FragaGeddon has the correct answer. I couldn’t understand with the code above.

    #118666

    [Lowongan Kerja](http://www.benefitatwork.com “Lowongan Kerja”) : I use

    #118675
    sliver37
    Member

    I also couldn’t understand the question properly, but as Chrisburton mentioned margin-bottom was the first thing that came to mind.

    Basically if you just want space under every paragraph use margin-bottom on all your P tags. If you are formatting something inside a single P tag and you want line-breaks use BR tags.

    #120041
    Magikarp
    Participant

    I am not sure if anyone really understood what I am trying to do.

    I have a design doc for something and it was made in Word Pad, but I don’t want to go around and do

    everywhere, can I just do auto break lines with JS or CSS? That’s what I want.

    #120042
    Paulie_D
    Member

    The easy answer to your easy question is no. You will have to do it manually.

    #120045
    chrisburton
    Participant

    @Paulie_D You actually can with jQuery by appending a br tag after every p tag but I think a margin-bottom is the right way to go.

    #120051

    Maybe this tool can help ya out

    http://www.textfixer.com/html/convert-text-html.php

    #120073
    ooredroxoo
    Member

    you can place your copied text on a markdown software like iA Write and export the HTML, each breakline on iA Writer makes a paragraph (hint: you can use the markdown on github if you wanna do for free).

    #120833
    Magikarp
    Participant

    thanks guys!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.