PDA

View Full Version : wierd text thing on my site... any direction????



peck
02 May 2009, 02:04 PM
If you look at the address on my website under the properties link.....

the Austin, Texas line juts out to the left of all the other text on the page.

Is it doing the same on your browser when you look at it?

Could you tell me what is wrong in the code, that is making it do this?


Bear in mind, that I am still teaching myself css and html on the fly... so you may see some caveman like code in there. :) If there's anything that is obviously wrong, feel free to let me know.

Wickham
02 May 2009, 03:20 PM
It's because of the text-indent: 20px; in the body style; it only works for the first line and you have a <br /> tag before the "Austin, Texas 78751" on a second line.

You can cure the problem by deleting the <br /> tag so that it's all on one line or somehow getting rid of the text-indent for that line, perhaps a class with text-indent: 0px;

It's always a risk putting styles like that in the body style because they will apply everywhere, which may not be what you want. The alternative is to make a class for text-indent and use the class for a div or p tags where you want it.