Reply
Possible to say "width:65characters;"?
Old 03-25-2007, 11:16 AM Possible to say "width:65characters;"?
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 200
Hi,

I know it is not possible to make a CSS statment saying max-width: 65characters;. Non the less this is what I am trying to attcheive!

HTML Code:
p { font-family: Arial, Sans-Serif; font-size: 90%; line-height: 1.225; width: PROBLEM; }
This makes a really easy to read text block, the problem however is that I am trying to limit it to display around 65 characters per line only. Is this possible, and how?
__________________
I do not share ad revenue.
Moldarin is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-25-2007, 11:25 AM Re: Possible to say "width:65characters;"?
LadynRed's Avatar
Super Moderator

Posts: 6,562
Location: Tennessee
You have to define a unit measurement. I line-height of 1.225 WHAT exactly ?
"characters' is NOT a valid unit.

http://www.w3schools.com/css/css_units.asp
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-25-2007, 12:07 PM Re: Possible to say "width:65characters;"?
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 200
You are wrong. Line-height is value times the value of font-size. In my example it would be 1.225*90%. = line-height: 110%;

However, the point here where the line-width...
__________________
I do not share ad revenue.
Moldarin is offline
Reply With Quote
View Public Profile
 
Old 03-25-2007, 01:49 PM Re: Possible to say "width:65characters;"?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
You might want to define it in terms of em. Not sure if that would work though...I've never tried it.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-25-2007, 04:09 PM Re: Possible to say "width:65characters;"?
JoeDavola's Avatar
Average Talker

Posts: 15
Quote:
Originally Posted by Moldarin View Post
Is this possible, and how?
It's not possible.
JoeDavola is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Possible to say "width:65characters;"?
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14070 seconds with 12 queries