EvilZone

Programming and Scripting => Web Oriented Coding => Topic started by: Raymond_Yvon_Herbert on April 01, 2015, 08:59:49 PM

Title: Indenting Reliably In html
Post by: Raymond_Yvon_Herbert 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.  :)
Title: Re: Indenting Reliably In html
Post by: rincewind 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.