- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
October 3, 2013 at 2:27 am #10085romainParticipant
For a project, I have to use many style off a font.
Here is the link of the google fontHere is my css import
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,300,400,700);
What I would like to know is how can I define the font-family to display for example the “Open Sans Light 300 Italic”
Thanks
October 3, 2013 at 2:40 am #10087jonsuhParticipantI think this is what you’re looking for.
body { font-family: "Open Sans"; font-weight: 300; font-style: italic; }
October 3, 2013 at 2:41 am #10088user2578173ParticipantCSS
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,300,400,700); body { font-family: 'Open Sans', sans-serif; } body p { font-style: italic; font-weight: 300; /* You specify the number you see next to the fonts to change from light to bold ie you would put 700 etc. etc. */ }
October 3, 2013 at 2:41 am #10086anonParticipant300/400/700 is font-weight. If you want bold font use
font:bold(or 700) 12px/15px "Open Sans", sans-serif
if you want light italic use
font:300 italic 12px/15px "Open Sans", sans-serif
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.