Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-03-16 12:34:26

deexee
New member
From: Romania
Registered: 2006-03-16
Posts: 3
Website

Font sizes in pixels

Hi, I'm having a problem with font sizes. I need to have them in pixels, and have the <font [...]> tag use something like:

size="13px"

Is there any way that this can be done? Or is there any other way to input an exact size by hand ? If I try to edit it in html mode, it deletes the px when I switch back to richedit mode.

Offline

#2 2006-03-16 15:46:48

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Font sizes in pixels

You have to use CSS to set the font size if you want to use px.

<p style="font-size:13px">...</p>

Just an example, if you don't know how CSS works, google for a tutorial. It´s worth it!

Offline

#3 2006-03-16 16:47:42

deexee
New member
From: Romania
Registered: 2006-03-16
Posts: 3
Website

Re: Font sizes in pixels

i know about CSS and am quite comfortable with it.
I was trying to find out, if it`s somehow possible to put some custom font sizes in the the toolbar combo box that apply a certain pixel size for the selected text.

Offline

#4 2006-03-16 19:14:56

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Font sizes in pixels

If you, as you said, want to edit the HTML by hand you have to do it like said, because there is no option in HTML to set font-size in pixels via the <font> tag (i.e. there is no size="13px"). It's only the 1 to 7 range (of relative values) you have in the select box.
The problem is that the combo box we have in the editor only triggers the browser's built in function which (unfortunately) works with the double plus ungood font-tag.
You could submit a feature request ticket that this be changed or otherwise write a plugin youself.

Offline

#5 2006-03-16 21:51:51

deexee
New member
From: Romania
Registered: 2006-03-16
Posts: 3
Website

Re: Font sizes in pixels

ok. thanks.

Offline

Board footer

Powered by FluxBB