Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I justify text both sides?

Status
Not open for further replies.

silverswim

Programmer
Joined
Oct 17, 2001
Messages
50
Location
GB
Hi;
I am having to redo the firms homepage because the text is justified on left side only. I must be missing something; does anyone know how to justify it both sides so it looks like the newspapers do it?
I hope someone does!
Thanks in anticipation, Silverswim
 
From what I can see, there are only the 3 options Left/Right or Centre alignment.

Maybe try putting all the text in a single table cell, centre aligning and adjusting the width might get the result you require.

Or is there an extension Macromedia?? Live long and make your kids suffer..
 
You need to use CSS. <p style=&quot;text-align:justify&quot;>.

Easier to hand code but if you are using dreamweaver you need to bring up the CSS window, select new style, and in the category window select block. There is an option for text align, select justify from the drop down. Apply your new style to the text.

Cheers,

Tom
 
Thanks Tom, for it worked and the swift response.
Cheers,Silverswim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top