/    Sign up×
Community /Pin to ProfileBookmark

Dreamweaver, ems and everything

Not sure if this is the right place to post this but where I work we use ems instead of pixels. When I am working on my CSS in Dreamweaver (using Photoshop to get the designers font-size for the text)and I get the code hints menu, everything is in pixels. To get the correct pixel to em conversion I have to use a calculator and the pixel/11 formula to get the em size.

Is there anyway to set Dreamweaver to display pixels with their ems conversion? Any Dreamweaver extensions out there anyone know of that I can install that’ll do this?

Enquiring minds want to know. Thanks for any help you can give me.

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@KDLAJun 12.2009 — I set the body to base 10 when I code, then the em calculation is only adding a decimal.
body {font-size: 10px;}
p {font-size: 1.2em;} /*equals 12px*/

From my testing, this does not impact text resize abilities.

Also, it helps when using em to establish widths.
Copy linkTweet thisAlerts:
@stephenScudauthorJun 12.2009 — Interesting. I'll give that a go and see how it works out.
Copy linkTweet thisAlerts:
@KDLAJun 12.2009 — It's very helpful, given that there is a slight difference in the default for "em" between IE and Firefox.
×

Success!

Help @stephenScud spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...