text-indent

  • 19 years ago

    Hi


    I have this code


    H4 { font-family: arial; font-size: 10pt; color: black; text-indent: 0.5cm;}


    but it will only indent the first line of text which is within <H4> </H4>, so how do i make it move all the text within an H4 tag in 0.5cm from the side of my page?


    thanks

  • 19 years ago

    Uhm.. not sure if this helps but &nsbp gives you an indent

  • 19 years ago

    The best advice I can give you is to use the <BlockQuote> tag.

  • 19 years ago

    Well I should say it worked for me. I am using Internet Explorer 6, so I don't know how any other version might handle this.


    <h4>
    <div style="text-indent:0.5cm">This</div>
    <div style="text-indent:0.5cm">is</div>
    <div style="text-indent:0.5cm">some</div>
    <div style="text-indent:0.5cm">text</div>
    </h4>

  • 19 years ago

    I can't remember which is the correct one, but try using margin-left or padding-left instead of text-indent.


    you could also have a look at www.w3schools.com.  That where i look for all my html answers.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” - Dennis Ritchie