iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2004, 07:13 PM
pne's Avatar
pne pne is offline
WebProWorld Pro
 
Join Date: May 2004
Location: UK
Posts: 292
pne RepRank 0
Default text justify in Dreamweaver

I'm using Dreamweaver 3 and having problems with text justification. It will justify left, right and centre but not justify exactly to fit. Any ideas apart from manually adjusting each.

Many thanks,

pne
__________________
<a href="http://www.sochoose.com/" target="_blank">Employee Assistance Programme
<a href="http://www.sochoose.com/employee_wellness_programme.php"/target="_blank">Employee Wellness Programme
Reply With Quote
  #2 (permalink)  
Old 07-27-2004, 12:19 AM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 447
HardCoded RepRank 0
Default

Code:
p.j{ text-align:justify; }
...
...
<p class="j">I want to be justified.</p>
Reply With Quote
  #3 (permalink)  
Old 07-27-2004, 06:00 AM
WebProWorld Pro
 
Join Date: Apr 2004
Location: Finland
Posts: 147
Niko Holopainen RepRank 0
Default

Just to add, there are compatibility issues with justify, but the code above is fine with those that it works with.

Regards,
__________________
Lomaosake.fi, Duelta.com, Duelta.net
Reply With Quote
  #4 (permalink)  
Old 07-27-2004, 07:33 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

I'll also add my two pence worth... justifying narrow columns of text can result in rather odd looking lines appearing with say three words s p r e a d out along one line, and the following line having five or six normally spaced. IMO this looks ugly, and would have most layout or graphic designers wincing and screwing up their noses! :o)

Take a look at the following thread, posted recently by kingsman.
What constitutes good text layout?
Reply With Quote
  #5 (permalink)  
Old 07-27-2004, 08:04 AM
pne's Avatar
pne pne is offline
WebProWorld Pro
 
Join Date: May 2004
Location: UK
Posts: 292
pne RepRank 0
Default

Paul,

Understand the potential problem clearly. Difficulty is that Dreamweaver 3 doesn't give the option to justify and was looking for clear, clean and simple solution which doesn't involve manually changing code. Any ideas?

pne
__________________
<a href="http://www.sochoose.com/" target="_blank">Employee Assistance Programme
<a href="http://www.sochoose.com/employee_wellness_programme.php"/target="_blank">Employee Wellness Programme
Reply With Quote
  #6 (permalink)  
Old 07-27-2004, 08:11 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

How about creating a class in your stylesheet that would justify the text?

.justified {text-align: justify;}

You could then apply it to paragraphs / blocks of text wherever you see fit (as below)

<p class="justified">justified text in here</p>

PS. Just noticed this is almost the same solution as HardCoded!
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:41 AM.



Search Engine Optimization by vBSEO 3.3.0