Possible to make default CSS units em rather than px?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Phlawm53
Sr. Propeller Head
Posts: 442
Joined: Tue Mar 16, 2010 10:58 am
Location: San Francisco, CA
Contact:

Possible to make default CSS units em rather than px?

Post by Phlawm53 »

Hi:

It's a small annoyance and nothing more, but might it be possible to tell Flare 6 to by default use em units of measure rather than px (pixels)?

As I tweak my layouts, I always need to perform the multi-click dance required to change any measurement I haven't previously configured from px to em. It'd be nice if I could eliminate that little extra step from my workflow by having Flare use em by default unless directed otherwise (which would be almost never…)

Cheers & thanks,
Riley
Last edited by Phlawm53 on Fri Mar 26, 2010 8:30 am, edited 1 time in total.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Possible to make default CSS units em rather than px?

Post by LTinker68 »

When you create a new project, Flare pre-populates the stylesheet file with a few styles, specifically the heading tags, paragraph tag, and a few others. If you modify the unit of measure for the body tag, then your entire stylesheet will inherit from that. However, since Flare predefined some tags, you'll have to modify them yourself.

Beyond that, if you're talking about when you're using the Stylesheet Editor and set a font size for a tag or using positioning elements (margins and padding), you want it to automatically select ems, then no, there's no way to force Flare to do that. Not that I'm aware of, anyway.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Phlawm53
Sr. Propeller Head
Posts: 442
Joined: Tue Mar 16, 2010 10:58 am
Location: San Francisco, CA
Contact:

Re: Possible to make default CSS units em rather than px?

Post by Phlawm53 »

Lisa:

That's a great tip. Too late for my current project, but one to keep in mind going forward.

Cheers, thanks, & have a GREAT weekend,
R
Post Reply