Author Topic: Indenting Reliably In html  (Read 423 times)

0 Members and 1 Guest are viewing this topic.

Offline Raymond_Yvon_Herbert

  • /dev/null
  • *
  • Posts: 8
  • Cookies: -4
    • View Profile
Indenting Reliably In html
« on: April 01, 2015, 08:59:49 pm »
I was recently making an edit to an old webpage I made. I wanted to improve it somehow and thought I could do with making the first line of my paragraphs indented. I managed to make the first line on my paragraphs indented afterwards but I prefer to use breaks instead of starting new paragraphs, a habit I will promptly stop, I might even get rid of all the breaks in the file after this.

How might I make the breaks in my paragraphs indent also?

My code looks like:

<div class="content">
<p>Remember, remember the fifth of November<br>The gunpowder treason and plot...</p>
</div>

And the css that already indents the first line of paragraphs is:

.content {
text-indent:40px;
}

Help would be greatly appreciated.  :)
« Last Edit: April 01, 2015, 09:01:14 pm by Raymond_Yvon_Herbert »

Offline rincewind

  • Peasant
  • *
  • Posts: 59
  • Cookies: 17
  • Hello
    • View Profile
Re: Indenting Reliably In html
« Reply #1 on: April 02, 2015, 01:00:06 am »
For breaks instead of p tags, I really think you should not do it if it is intended to another paragraph, just use p tags normaly. For indentation I would use padding of 40px. But you might go on #css on freenode and ask them, they are very helpful. And one more thing use code tags here on forum.
« Last Edit: April 02, 2015, 08:00:24 am by Kulverstukas »
asdf