Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-26-2003, 02:05 AM   PM User | #1
Jinnifah
New to the CF scene

 
Join Date: Apr 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Jinnifah is an unknown quantity at this point
is justification of text possible?

Hi all
I have another dumb question

is it possible to justify text?
If so, how?
Jinnifah is offline   Reply With Quote
Old 04-26-2003, 02:24 AM   PM User | #2
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
Quote:
originally from [CSS1]:

5.4.6 'text-align'

Value: left | right | center | justify
Initial: UA specific
Applies to: block-level elements
Inherited: yes
Percentage values: N/A

This property describes how text is aligned within the element. The actual justification algorithm used is UA and human language dependent.

Example:

DIV.center { text-align: center }

Since 'text-align' inherits, all block-level elements inside the 'DIV' element with 'CLASS=center' will be centered. Note that alignments are relative to the width of the element, not the canvas. If 'justify' is not supported, the UA will supply a replacement. Typically, this will be 'left' for western languages.

CSS1 core: UAs may treat 'justify' as 'left' or 'right', depending on whether the element's default writing direction is left-to-right or right-to-left, respectively.
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards
liorean is offline   Reply With Quote
Old 04-26-2003, 05:52 AM   PM User | #3
pardicity3
Regular Coder

 
Join Date: Jun 2002
Location: Iowa / Notre Dame
Posts: 538
Thanks: 0
Thanked 0 Times in 0 Posts
pardicity3 is an unknown quantity at this point
hmm, along this line: I have noticed in some cases that text-align: justify tends to make its containing box a little bit wider. I once had a site where if I changed the text to justify (and that's all I did mind you) it would give the page horizontal scroll bars. But if it was just plain left align there were no scroll bars. Very interesting indeed...Anyone else noticed this?
__________________
My Site {Mike's Adventures}

Yikes, forums are almost too much fun.
pardicity3 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:18 AM.


Advertisement
Log in to turn off these ads.