PDA

View Full Version : Center article & Justify text


Tobes
09-19-2007, 03:03 PM
Hi,

Thanks for everyones patience with me, Im a novice at all this as Im sure you can tell, my sites starting to look real good, but Im a perfectionist so I still have a few questions :rolleyes:

Can some one tell me how to center the article on this page, its slightly shifted to the right, also is it possible to justify the text?

Many many thanks for all your help.

T

http://www.itstooloud.com/center_content.jpg

Tobes
09-20-2007, 09:33 PM
i have found out the text align button doesnt work with safari, bu Ive tried it on firefox and its working fine there, so thats one thing sorted, v=can any one advise me about this cell alignment.

Thanks

zwenthe
09-21-2007, 06:09 AM
It probably has to do with your margins in your CSS. You could look at how they are setup.


A great tool is firebug for Firefox. It will speed up the process.

Z

Micha
09-21-2007, 09:33 AM
Ok, you need to do next:

Go to your style.css file and edit this ID #article_body.

What you have there is 12px padding applied to entire block, and you need only top and bottom padding.

Just edit this property padding: 12px; and add 0px right after 12px, so you'll get padding: 12px 0px;.

First value (12px) is top and bottom padding and second (0px) is left and right.

I just looked at your Demo site in IE6, and this article breaks layout there.

It seems that image is causing problems, because you align it left.

You need to remove align="left" from your <img> tag, because with alignment your image will behave like it is floated left.

My suggestion:

If you are going to use similar image size in all articles, avoid image alignment by all means :)

Hope it helps :)

Tobes
09-21-2007, 10:10 AM
You guys are bloody brilliant, thanks so much, I think Im nearly there, sites looking great.

Cheers for your patience, its really appreciated, as you can tell, im no pro at this :)

T