/    Sign up×
Community /Pin to ProfileBookmark

Hi guys. this is my first thread to this site, hoping i ll get solution.
well i want to write css for font , in a single line to save some bytes .
like…
font:11px/18px Arial, Helvetica, sans-serif;

but the problem is color value,alignment,txtdecoration and many others doesnt wrk .
is there any sequence to write?

to post a comment
CSS

8 Comments(s)

Copy linkTweet thisAlerts:
@beahawkSep 02.2006 — using css shorthand I think only these are possible in a single declaration:

font-style, font-variant, font-weight, font-size, line-height and font-family.

I don't think the order matters.
Copy linkTweet thisAlerts:
@lohumihemauthorSep 02.2006 — Thanks, but is there any sequence to write it
Copy linkTweet thisAlerts:
@beahawkSep 02.2006 — 
I don't think the order matters.[/QUOTE]


Give it a try and let everyone know! Good luck!
Copy linkTweet thisAlerts:
@WebJoelSep 02.2006 — using css shorthand I think only these are possible in a single declaration:

font-style, font-variant, font-weight, font-size, line-height and font-family.

...[/QUOTE]


(Jumping up & down, waving hand over head), -And there is "[B]letter-spacing:[/B][SIZE=2][I]number[/I][/SIZE][B]ex[/B];" (a very small number like 0.1 or 0.2 is probably all one would ever need, and that is "ex" for this declaration)
Copy linkTweet thisAlerts:
@seraph766Sep 02.2006 — I don't think the order of the attributes matters, as long as you spell them right.
Copy linkTweet thisAlerts:
@leaningSep 02.2006 — Here is a whole messload of CSS shorthand tricks (font, margin, border, etc.)

http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/

http://codex.wordpress.org/CSS_Shorthand

HTH

VR/

John
Copy linkTweet thisAlerts:
@NogDogSep 02.2006 — You can always go straight to the source: http://www.w3.org/TR/CSS21/fonts.html#font-shorthand . (There are quite a few things you can possibly set, but color, alignment, etc. are not among them, probably because they are not font-specific, but can also apply to other in-line elements that are not textual or that use other fonts, e.g. <strong> text.)
Copy linkTweet thisAlerts:
@lohumihemauthorSep 23.2006 — Thanx guys ! ?
×

Success!

Help @lohumihem 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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