...

View Full Version : what options are there for indentation?



mikehende
02-24-2011, 08:51 PM
besides   what other options are there? Sometimes depending on how far from the left I wish to start writing text on a line I would have to use too many   for this so I am seeking better options?

Excavator
02-24-2011, 08:58 PM
Hello mikehende,
CSS text-indent (http://www.w3schools.com/Css/pr_text_text-indent.asp) makes a more sense than using a non-breaking space.

What other situation are you needing to indent?

AndrewRyan
02-24-2011, 09:04 PM
If you want to apply the indent to the entire paragraph you could also use margin-left or padding-left of some pixel value... or possibly a left:value if you position:relative?

mikehende
03-16-2011, 06:02 PM
Hello mikehende,
CSS text-indent (http://www.w3schools.com/Css/pr_text_text-indent.asp) makes a more sense than using a non-breaking space.

What other situation are you needing to indent?

Wait a minute, think I jumped the gun here, please see the text below:

7pmHadron The Collider
8pm Sloppy & Choppy
9pm Witness A DownFall
10pm Daylighting
10:30pm BigMine
11pm Bull Mastiffs

I wish to indent the text [not the time] on each line so they look more uniformed, how can I best do this without CSS so it will look like this? I wish it could look better by having the text on each line look like they are starting from the same exact point or column?

teedoff
03-16-2011, 06:31 PM
Thats what CSS is designed and used for. Styling your page content.

Now, you could put that text in a table since it is columnar data. That was everything is line up nice and neat.


<table>
<tr>
<td>7pm</td>
<td>Some Event</td>
</tr>
<tr>
<td>8pm</td>
<td>Some Other Event</td>
</tr>
<tr>
<td>9pm</td>
<td>One More Event</td>
</tr>

</table>

Then align each column like you want.

mikehende
03-16-2011, 06:38 PM
I know but I was searching for some easy way to use inline like another option for &nbsp;.

Excavator
03-16-2011, 07:24 PM
Wait a minute, think I jumped the gun here, please see the text below:

7pmHadron The Collider
8pm Sloppy & Choppy
9pm Witness A DownFall
10pm Daylighting
10:30pm BigMine
11pm Bull Mastiffs

I wish to indent the text [not the time] on each line so they look more uniformed, how can I best do this without CSS so it will look like this? I wish it could look better by having the text on each line look like they are starting from the same exact point or column?

You'll need to do a little extra work to format that the way you want. Have a look at how a list can do that for you -see the first example on this page (http://nopeople.com/CSS%20tips/dl/index.html).

Excavator
03-16-2011, 07:25 PM
I know but I was searching for some easy way to use inline like another option for &nbsp;.

"Inline" and "Easy" do not belong in the same sentence together.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum