This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2004 > Justify text DW4





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Justify text DW4
simon

2004-03-01, 4:28 am

Does anyone know if there is an extension that will allow you to justify
text in DW4?

Thanks

Simon


Dan Vendel *GOF*

2004-03-01, 5:28 am

simon wrote:

> Does anyone know if there is an extension that will allow you to justify
> text in DW4?


You need to use CSS (Cascading Style Sheet).

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html
Mark Fletcher

2004-03-01, 5:28 am

No need to use an extension, CSS gives you the ability to justify text. For
example the following rule will justify the text in DIV that has class
selector "main" applied.

..main {text-align: justify}

<div class="main">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Duis massa enim, laoreet vel, dignissim eget, nonummy id, lacus. Morbi ut
purus. Sed egestas. Mauris cursus. Nam sit amet neque. Donec cursus
tincidunt eros. Ut vestibulum dolor sed mi. Vivamus bibendum lectus a nulla.
Donec semper velit sit amet magna. Sed vitae lorem. Sed bibendum massa vitae
urna.</div>

To learn more basic CSS techniques, check out:
http://www.mako4css.com/


Regards
Mark
------------------------------------------------------------
Mark Fletcher
Team Macromedia Volunteer for Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia
------------------------------------------------------------


"simon" <sijapan@hotmail.com> wrote in message
news:c1us7l$eeg$1@forums.macromedia.com...
> Does anyone know if there is an extension that will allow you to justify
> text in DW4?
>
> Thanks
>
> Simon
>
>



simon

2004-03-01, 5:28 am

Thanks Dan

This is the page I would like to change which has a style sheet attached to
it already because it uses Tree menu magic navigation.

http://www.unafei.or.jp/tmp/simon/testindex1.htm

Do you think you could tell me which part of code I would need to change- as
I don't want to mess anything else up.

Thanks again
Simon



"Dan Vendel *GOF*" <see_my_signature_@_bottom_of_the_post.com> wrote in
message news:c1usgm$a5s$2@forums.macromedia.com...
> simon wrote:
>
>
> You need to use CSS (Cascading Style Sheet).
>
> --
> Dan Vendel - *GOF*
> Contact me directly at http://contact.vendel.info
> Formmail tutorial at http://www.vendel.info/tut/formmail.html
> Nested table demonstration at http://www.vendel.info/tabletut/
> Search Engine Optimization & Rank Control Utility at

http://awr.vendel.info
> Search Dreamweaver newsgroup at http://www.vendel.info/google.html



Dan Vendel *GOF*

2004-03-01, 5:28 am

simon wrote:

> Thanks Dan
>
> This is the page I would like to change which has a style sheet attached to
> it already because it uses Tree menu magic navigation.
>
> http://www.unafei.or.jp/tmp/simon/testindex1.htm
>
> Do you think you could tell me which part of code I would need to change- as
> I don't want to mess anything else up.


I assume you're talking about the "main" text?
If so, it's preceeded in the code by this:

<div align="left" class="style21">
<p><font face="Verdana, Arial, Helvetica, sans-serif"
size="3"><strong><font size="2"><font size="3">Welcome
to the new site of the United Nations Asia and Far East
Institute.......etc...

But I can't see any "style21" in your style sheet.
I suggest you *either*:

Take away the <div align="left" class="style21"> ,the </div> that's
closing the chunk of text, plus the opening and closing <font> tags.
Then open the CSS palette, re-define the <p> tag and set the parameters
you want.

*or*

Create a custom style named "style21" since that's the name you already
have ssigned to the text. I think that will work, but you might also
need to take out the "align="left"" in the div-tag.

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html
Osgood

2004-03-01, 5:28 am

simon wrote:

> Thanks Dan
>
> This is the page I would like to change which has a style sheet attached to
> it already because it uses Tree menu magic navigation.
>
> http://www.unafei.or.jp/tmp/simon/testindex1.htm
>
> Do you think you could tell me which part of code I would need to change- as
> I don't want to mess anything else up.


Further to the information supplied by the previous posts you could also
copy the code below and paste it into your pages code directly before
the closing </head> tag, its near the to pf the page.

Or you could paste it into the existing styleshee minus the bits <style
type="text/css"> and </style>

Osgood

2004-03-01, 5:28 am

Osgood wrote:

> Further to the information supplied by the previous posts you could also
> copy the code below and paste it into your pages code directly before
> the closing </head> tag, its near the to pf the page.
>
> Or you could paste it into the existing styleshee minus the bits <style
> type="text/css"> and </style>


Ill try and paste the rest of my reply again, this follows on from my
previous post.

<style type="text/css">
..textjustify {
text-align: justify;
}
</style>

Osgood

2004-03-01, 5:28 am

Osgood wrote:

> heres another bit, follows on from previous post:
>
> Go back to design view, insert your cursor directly before the opening
> paragraph, switch back to code view and change this piece of code
>
> <div align="left" class="style21">
>


heres the last bit, follows on from previous post

As Dan said you would actually be better off doing it his way. You dont
need this <div class="style21"> at all but I think you have probably
become confused when using the Tree Menu.

Osgood

2004-03-01, 5:28 am

Osgood wrote:


> Ill try and paste the rest of my reply again, this follows on from my
> previous post.
>
> <style type="text/css">
> .textjustify {
> text-align: justify;
> }
> </style>
>


heres another bit, follows on from previous post:

Go back to design view, insert your cursor directly before the opening
paragraph, switch back to code view and change this piece of code

<div align="left" class="style21">

Osgood

2004-03-01, 5:28 am

Osgood wrote:

> heres the last bit, follows on from previous post
>
> As Dan said you would actually be better off doing it his way. You dont
> need this <div class="style21"> at all but I think you have probably
> become confused when using the Tree Menu.
>




Hehehe it all gone through now, dont ever say I f-uk--g give up that easily.

Osgood

2004-03-01, 5:28 am

Osgood wrote:

> heres another bit, follows on from previous post:
>
> Go back to design view, insert your cursor directly before the opening
> paragraph, switch back to code view and change this piece of code
>
> <div align="left" class="style21">


follows on

to

<div align="left" class="textjustify">




simon

2004-03-02, 12:28 am

Hi Osgood

I changed <div align="left" class="style21">

to

<div align="left" class="textjustify">


But it doesn't seem to have made any difference- maybe something to do with
the navigation having its own CSS.


Thanks

Simon
"Osgood" <notavailable@thisaddress.com> wrote in message
news:c1uv8u$k36$6@forums.macromedia.com...
> Osgood wrote:
>
>
> follows on
>
> to
>
> <div align="left" class="textjustify">
>
>
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews