SitePoint Sponsor |
|
User Tag List
Results 1 to 17 of 17
Thread: How do you do that???
-
Apr 23, 2002, 06:24 #1
- Join Date
- Sep 2001
- Location
- QLD, Australia
- Posts
- 666
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How do you do that???
I've seen a few sites now where the text in a paragraph makes a square. (ie; there are no lines longer then any other lines in the paragraph)
I'm guessing it's done with css but I haven't come across it in any tutorials. Anyone know?
ThankscoiL
"cradled in the learning curve"
-
Apr 23, 2002, 06:36 #2
- Join Date
- Jan 2002
- Posts
- 111
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Coil,
Post a link to the example and well try to show you how its done. ;-)
-
Apr 23, 2002, 06:46 #3
- Join Date
- Nov 2001
- Location
- Gods' Own Country
- Posts
- 890
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Re: How do you do that???
Originally posted by coiL
I've seen a few sites now where the text in a paragraph makes a square. (ie; there are no lines longer then any other lines in the paragraph)
I'm guessing it's done with css but I haven't come across it in any tutorials. Anyone know?
ThanksDeath --the last sleep? No, it is the final awakening.
TinyPlanet.org
Discuss and Debate World Events, Politics and Religion
-
Apr 23, 2002, 07:14 #4
- Join Date
- Sep 2001
- Location
- QLD, Australia
- Posts
- 666
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks for that
I have seen justify mentioned but I never got what it was for, now i do.
btw is that compatable with all browsers?coiL
"cradled in the learning curve"
-
Apr 23, 2002, 07:19 #5
- Join Date
- Dec 2000
- Location
- The Sea of Tranquility
- Posts
- 696
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yeah, justify is compatible with all browsers. Well all the browsers I have anyway (that's IE 6 and NS 6.2). It's just a style, so I should imaging it works with the older browsers too.
-
Apr 23, 2002, 08:45 #6
- Join Date
- Oct 2001
- Location
- Tucson, Arizona
- Posts
- 1,858
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You should really use this in favor of using the align attribute, however.
Code:p.this { text-align: justify; }
-
Apr 23, 2002, 10:54 #7
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Justify is a carry-over from newspapers. It's what papers use to get the text to fit completely in a news column.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Apr 23, 2002, 19:00 #8
- Join Date
- Sep 2001
- Location
- QLD, Australia
- Posts
- 666
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks for the replies everyone
Text looks a lot better now.coiL
"cradled in the learning curve"
-
Apr 23, 2002, 19:50 #9
- Join Date
- Aug 2001
- Location
- London
- Posts
- 2,475
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<p align="justify">should be this instead</p>
-
Apr 24, 2002, 00:26 #10
- Join Date
- Oct 2001
- Location
- Tucson, Arizona
- Posts
- 1,858
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by Andrew-J2000
<p align="justify">should be this instead</p>
-
Apr 24, 2002, 01:44 #11
- Join Date
- Dec 2001
- Location
- USA
- Posts
- 50
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yeah, what he said.
-
Apr 24, 2002, 01:59 #12
- Join Date
- Aug 2001
- Location
- London
- Posts
- 2,475
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thats if your using css, which is the correct way to do it then yes your right, but what Indian put was incorrect as the was no quotes around the align.
-
Apr 24, 2002, 02:12 #13
-
Apr 24, 2002, 02:40 #14
- Join Date
- Aug 2001
- Location
- London
- Posts
- 2,475
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
or layer/ilayer/../././././etc
used for loads of things
-
Apr 24, 2002, 03:53 #15
- Join Date
- Nov 2001
- Location
- Gods' Own Country
- Posts
- 890
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by Andrew-J2000
but what Indian put was incorrect as the was no quotes around the align.Death --the last sleep? No, it is the final awakening.
TinyPlanet.org
Discuss and Debate World Events, Politics and Religion
-
Apr 24, 2002, 04:48 #16
- Join Date
- Aug 2001
- Location
- London
- Posts
- 2,475
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hehe aint we all.
-
Apr 24, 2002, 05:13 #17
- Join Date
- Apr 2002
- Location
- A Maze of Twisty Little Passages
- Posts
- 6,316
- Mentioned
- 60 Post(s)
- Tagged
- 0 Thread(s)
For the older browsers you could try the following, so that if they couldn't interpret CSS then they would skip the code.
<style type="text/css">
<!--
p{ text-align : justify; }
-->
</style>
Or, alternatively you would link to an external style sheet, with a *.css extension, e.g. <link rel="stylesheet" href="somefile.css" type="text/css" /> and within the text file;
p{
text-align : justify;
}
The inline example has been covered already, similar to:
<p style="text-align:justify;">Hello</p>
I think now most of the three major angles have been covered for justify of a <p> element using CSS.
};-) http://www.xhtmlcoder.com/Last edited by xhtmlcoder; Apr 24, 2002 at 05:17.
Bookmarks