Jump to content

Recommended Posts

Posted

Hello, I want to indent the lines/paragraphs that also contain class. Plz see the following example:

 

2009

 

This is year 2009.hello hello hello hello hello hello hello hello

hello hello hello hello hello hello hello hello hello hello

 

But it appears like this:

 

2009

This is year 2009.hello hello hello hello hello hello hello hello

 

hello hello hello hello hello hello hello hello hello hello

 

The css and html I am using for this is as follows:

 

p.indent {

text-indent:-30px;

margin-left:35px;

}

 

span.text {

font-style: italic;

font-weight: bold;

}

 

 

2009

This is year 2009.hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello .

 

 

How can I make all the lines indent? Thanks!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...