the.shadw.dragn Posted January 11, 2009 Report Posted January 11, 2009 Hey, so with shorthand properties is their a certain order they must be in and if so, what is that certain order? Thanks
Bill Posted January 11, 2009 Report Posted January 11, 2009 For writing font properties the order is: style variant weight size family The order of style, variant, & weight is not critical, but it must end with size then family. For margins, padding, borders the order is: When using 4 values: top, right, bottom, left When using 3 values: top, left & right, bottom When using 2 values: top & bottom, left & right 1 value will apply to all 4 sides For background properties the only thing that matters as far as order is the left and right position. The first value is the left position and the second value is the top position. If only one value is declared for position then the 2nd value defaults to center.
Andrea Posted January 11, 2009 Report Posted January 11, 2009 I always had trouble with the 3 values - could never remember what's what - until I looked at it this way: My top and bottom may be of 2 different sizes, but the girls (better) be about the same size. I know this is very corny, but it's worked for me, and now I know what the 3 values stand for. But please, feel free to use whomever's girls you want for this equation.
newseed Posted January 12, 2009 Report Posted January 12, 2009 CSS reference including shorthand: link
LSW Posted January 12, 2009 Report Posted January 12, 2009 But please, feel free to use whomever's girls you want for this equation. Is that an invite?
Andrea Posted January 12, 2009 Report Posted January 12, 2009 Is that an invite? The opposite - I was opening this up for the general public.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now