SEO Services
Home >>
Webmaster Forums >>
how do you indent a paragraph ??how do you indent a paragraph ??
Carpetpaul said: "I'd like an easy way to make the indent of 5 spaces that I would normally use to start a new paragraph, can anyone please suggest how to do this ??
Thanks - Paul"
edwin said: "this should work:
[code]
[/code]"
Carpetpaul said: ".....oh my god !!!!!!! :eek:
ok, I can see, this is powerfull stuff, I certainly have an 'effect' going on here ! -- is there any way that I can stop the closing paragraph from leaving the blank line ?
could I use
to drop the line, and then some other tag to induce the indent ? --- any ideas
might be totally wrong here, but can I assign my own tag....maybe so if I could go
, and it put the indent in ?
then I could use
to drop a line, and for the indent, (and avoid the from shoving a blank line in ?
thankyou - Paul"
edwin said: "yep. you can assign as many tags as you want. that's the beauty of it.
and each div defines an area exactly like you want it. you should be able to use
use the trailing slash because it validates strict in xhtml"
Carpetpaul said: "forgive me...... I've seen this
before
does it have to be
and not
????
should this be used ALWAYS, and in every situation that I would normally have used
before ?
can you explain why the " / " is in there ?
thanks -Paul ;)"
edwin said: "yes, its
here's information on the [url=http://www.w3schools.com/tags/tag_br.asp]differences of br[/url]
this way, your page will [url=http://www.w3schools.com/xhtml/xhtml_validate.asp]validate xhtml strict[/url]
this will mean your site can be displayed in any browser."
<h1> said: "from what i've larnt it's basically it's a way of closing the tag. Every html tag needs to closed to be valid.
This can be seen in the php function nl2br(); which converts new line elements to
peace"
<h1> said: "[QUOTE=Carpetpaul].....oh my god !!!!!!! :eek:
is there any way that I can stop the closing paragraph from leaving the blank line ?
could I use
to drop the line, and then some other tag to induce the indent ? --- any ideas
might be totally wrong here, but can I assign my own tag....maybe so if I could go , and it put the indent in ?
[/QUOTE]
I see what you're saying now. You cannot prevent a line being created after the closing tag. You could do it like this:
paragraph text
and define the in the style.
You cannot asign your own tag, but you can change the styles of most tags. So you define a style class as so:
edited text
or to change all tags:
edited text
"
Carpetpaul said: "In your example above, does the style instruction mean that each time I put edited text
in the body of my page, that the text would be of a certain size and colour ? - surely this does not affect the fact that the closing would still add another blank line ?
please have a look at
[url]http://www.cleveleyscarpetcentre.co.uk/laminate_flooring_information.html[/url]
can you see how within each section, where I've added the , I have an unwanted blank line, it is this that I am trying to avoid !
thanks - Paul"
jancker said: "[QUOTE=edwin]this should work:
[code]
[/code][/QUOTE]
2cm?
I don't think so :)"
<h1> said: "[QUOTE=Carpetpaul]In your example above, does the style instruction mean that each time I put edited text
in the body of my page, that the text would be of a certain size and colour ? - surely this does not affect the fact that the closing would still add another blank line ?
[/quote]
The text would be of a certain size and colour depending on the style attributes you defined for the "mystyle" class.
This does not affect the leaving a blank line. Think of using the tag as a paragraph. So whenever you need to end the paragraph and start a new one you would use
You understand?
Now this is important: How to avoid line breaks?
Do not use the tags.
In my previous post I suggested using the tag.
For example: font text bla bla and you wont have any unwanted line breaks.
Personally I just assign the attributes in the style sheet, and then basically any text written within a table (which is all text) is assigned with those attributes defined, and so there is no need to add further tags, such as , or .
In your case you have no tables which is ok, so I suggest either editing the tag in the style sheet to change the font attributes, or to wrap the text in a tag and change the attributes.
I hope this finally helps you man, I fear I might have made my explanation I bit complicated though. Anyways if you don't understand i'll keep trying to help until you do.
PeAcE"
|