specifying the width, in pixels, of a line of text with CSS

John Fitzgibbon jfitzgibbon at Galwaylibrary.ie
Fri Jan 7 12:10:09 EST 2005


Hi,

Is it possible to specify, in pixels, the width of a line of text? The
text is between two small images.

I wish to accurately calculate the width of the two images plus the
text.

I could set a value for the width property of the span containing the
text and set overflow to clip but this may cause me to lose some of the
text which I am hoping to avoid. I really need to be able to specify the
width of the font or the width of each letter.

The width of the images, I already know. If I could specify the width of
the font or the width of each letter I can reckon the total width.

Any ideas would be welcome.

Regards
John

John Fitzgibbon

Galway Public Library
Island House
Cathedral Square
Galway
Ireland

p: 00 353 91 562471
f: 00 353 91 565039
w: http://www.galwaylibrary.ie 

******************************************************************* 
Tá eolas atá príobháideach agus rúnda sa ríomhphost seo 
agus aon iatán a ghabhann leis agus is leis an duine/na daoine
sin amháin a bhfuil siad seolta chucu a bhaineann siad. 
Mura seolaí thú, níl tú údaraithe an ríomhphost nó aon iatán 
a ghabhann leis a léamh, a chóipáil ná a úsáid. 
Má tá an ríomhphost seo faighte agat trí dhearmad, 
cuir an seoltóir ar an eolas thrí aischur ríomhphoist 
agus scrios ansin é le do thoil. 

This e-mail and any attachment contains information which is 
private and confidential and is intended for the addressee 
only. If you are not an addressee, you are not authorised 
to read, copy or use the e-mail or any attachment. 
If you have received this e-mail in error, please notify 
the sender by return e-mail and then destroy it. 
*********************************************************************




More information about the Web4lib mailing list