HighDots Forums  

text becomes crowed with sub/superscripts

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss text becomes crowed with sub/superscripts in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
1new user
 
Posts: n/a

Default text becomes crowed with sub/superscripts - 11-25-2004 , 12:57 PM






Our web page has math formulas that contain subscripts, superscripts, square
brackets etc.
We copied these formulas from a word html file and pasted them in macromedia
dreamweaver MX to upload onto the web page.
Everything looks good expect for where there are subscripts and superscripts.
That is where the spacing between the lines gets crowed and reading beomes
difficult.

How can I control the spacing between lines in a text document?
Is there a better fix?

Thx.


Reply With Quote
  #2  
Old   
jojo
 
Posts: n/a

Default Re: text becomes crowed with sub/superscripts - 11-25-2004 , 01:02 PM






use the line-height property to space the lines out.

p{
line-height: 140%;
}

That should give you plenty of room.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------

Reply With Quote
  #3  
Old   
jojo
 
Posts: n/a

Default Re: text becomes crowed with sub/superscripts - 11-25-2004 , 01:06 PM



<style type="text/css">
p{
line-height:140%;
}

sup{
vertical-align: 3px;
}

sub{
vertical-align: -1px;
}
</style>

works fine in ff, but not IE, you could possibly hack it with a little
effort. Maybe using a span or similar, might be to much to bother with
if you have a lot of them on the page.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------

Reply With Quote
  #4  
Old   
1new user
 
Posts: n/a

Default Re: text becomes crowed with sub/superscripts - 11-25-2004 , 02:37 PM



Forgive me but I am quite new to dreamweaver.

Is this correct?

I highlight the "crowed" lines in design mode,
I hit quick tag editor
I type: <style type="text/css"> p{line-height:140%;} </style>
i know I am doing something wrong because i get an error about invalid HTML

Thanks for the prompt response. most apprecieted.



Reply With Quote
  #5  
Old   
jojo
 
Posts: n/a

Default Re: text becomes crowed with sub/superscripts - 11-25-2004 , 03:05 PM



1new user wrote:
Quote:
Forgive me but I am quite new to dreamweaver.

Is this correct?

I highlight the "crowed" lines in design mode,
I hit quick tag editor
I type: <style type="text/css"> p{line-height:140%;} </style
i know I am doing something wrong because i get an error about invalid HTML

Thanks for the prompt response. most apprecieted.


Hi

Just copy and paste the code I posted into the head of your page.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------


Reply With Quote
  #6  
Old   
.: Nadia :. *TMM*
 
Posts: n/a

Default Re: text becomes crowed with sub/superscripts - 11-26-2004 , 03:54 AM




"jojo" <jojo (AT) zoot3 (DOT) com> wrote

Quote:
1new user wrote:
Forgive me but I am quite new to dreamweaver.>> Is this correct?>> I
highlight the "crowed" lines in design mode,
I hit quick tag editor
I type: <style type="text/css"> p{line-height:140%;} </style
i know I am doing something wrong because i get an error about invalid
HTML

Thanks for the prompt response. most apprecieted.

Hi

Just copy and paste the code I posted into the head of your page.


To be a bit more precise just in case you don't understand Jojos'
explanation of where to paste it,
it gets pasted just before the closing head tag </head>

--
Nadia

Team Macromedia Volunteer for Dreamweaver
--------------------------------------------
Free Templates | Free Nav Bar Sets
http://www.DreamweaverResources.com
Dropdown/Flyout Menu Designs | CSS Layouts
Ecommerce - YVStore | SEO Articles |Tutorials
---------------------------------------------
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
---------------------------------------------
Email: nperre at gmail dot com
---------------------------------------------







Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.