HighDots Forums  

CSS ID question: Text seems justified

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS ID question: Text seems justified in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bill Marshall
 
Posts: n/a

Default CSS ID question: Text seems justified - 08-03-2003 , 08:21 AM






Good Morning,

I am using the following ID with a layer (below) but when I enter text it
seems to try and justify the copy which in turn is causing larger than usual
space between words. Does this ID look correct to you? Is there something I
am missing? By the way I am using pure layers and CSS - no tables.

#links {
background: #666666;
color: #666666;
font-family: Verdana;
font-size: 9px;
font-weight: bold;
height: 400px;
left: 609px;
padding-bottom: 12px;
padding-left: 12px;
padding-right: 12px;
padding-top: 12px;
border-top: 1px solid #123456;
border-bottom: 1px solid #123456;
border-right: 1px solid #123456;
border-left: 1px solid #123456;
position: absolute;
top: 295px;
width: 138px;
background-color: #EEEEEE;
}

Thanks in advance



Reply With Quote
  #2  
Old   
David Powers
 
Posts: n/a

Default Re: CSS ID question: Text seems justified - 08-03-2003 , 09:21 AM






Bill Marshall wrote:
Quote:
Good Morning,

I am using the following ID with a layer (below) but when I enter
text it seems to try and justify the copy which in turn is causing
larger than usual space between words. Does this ID look correct to
you? Is there something I am missing? By the way I am using pure
layers and CSS - no tables.
You don't say which browser is giving you this problem, or whether you're
using a Doctype, but in IE6 with a Doctype, the text does not appear
justified. It's quite possible the effect is coming from elsewhere in your
stylesheet.

A couple of points about your style, though:

"links" is not a good name to use for an ID. Ken Ford of PVII sorted out a
problem a few days ago for a German who was finding it caused conflicts with
JavaScript in his page (he'd used it because "links" is German for left, but
it's also used by JavaScript to create an array of <a> tags on a page).

You start off with a definition for background, then override it later with
background-color. When setting a font-family, it's always advisable to use a
generic font (such as serif or sans-serif) at the end of the list, in case
your chosen font is not available on the visitor's computer.

--
David Powers
*******************************************
No-nonsense reviews of computer books
http://japan-interface.co.uk/webdesign/books.html
Save 10% on TopStyle CSS Editor
*******************************************




Reply With Quote
  #3  
Old   
Gary White
 
Posts: n/a

Default Re: CSS ID question: Text seems justified - 08-03-2003 , 10:00 AM



"Bill Marshall" <billall (AT) msn (DOT) com> wrote

Quote:
I am using the following ID with a layer (below) but when I enter text it
seems to try and justify the copy which in turn is causing larger than
usual
space between words. Does this ID look correct to you? Is there something
I
am missing? By the way I am using pure layers and CSS - no tables.
You have nothing in that particular style that should justify text, but if
you had a style for the body tag (or other parent of the #links) that
justified text, your #links would inherit it. Could that be the case?

Gary




Reply With Quote
  #4  
Old   
Bill Marshall
 
Posts: n/a

Default Re: CSS ID question: Text seems justified - 08-03-2003 , 10:23 AM



Hi Gary,

Yup you are right. I must have justifies the <P> tag without realising it.

Now the question is - do you live with the gaps in justified text or do you
left align?

Are there any thoughts on this?



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.