Making A Layout: Going Over Fonts
May. 19th, 2015 04:00 pmAccount Status: All
Theme: Flexible Squares
Actions: Creating Your Own Layout: Going Over Fonts
Links: Code Index // Embedding Google Fonts
As promised with the Body tutorial, let's go over changing fonts. I've already done a tutorial about how to use Google Fonts. I recommend going over that before continuing on.
So it is possible your Header Navbar looks like this:

But we want it to look like this:

The coding I would like to work with is from my layout Oxygen.
If you scroll nearly to the bottom (right before the MISC section which somehow got spelled MICS) there is a section called FONTS. What you'll see is this:
I put my FONTS section at the bottom of the coding so it is easy to find but you can put this anywhere you want.
You'll notice I have 5 font codes for this layout. That doesn't mean I've used them all. In fact, in this layout the only one of these fonts I used is Abel (the last one). Typically, I'd say remove coding you are not using but I left these fonts in because I wanted the options on some and I forgot on some others. I have recently discovered I'm rather messy when it comes to coding.
Once you've put one of these font section codings into your coding you can go through and change font-family's.
@font-face {
font-family: 'Abel';
font-style: normal;
font-weight: 400;
src: local('Abel'), local('Abel-Regular'), url(http://themes.googleusercontent.com/static/fonts/abel/v4/EAqh528fFdbUek8UOky4sA.woff) format('woff');
}
So going back to that header section we coded previously...
#header {
position: inherit;
width: 1000px;
height: 30px;
text-align: left;
color: #282828;
padding: 0px;
margin-bottom: 5px;
font-family: "Abel", georgia, arial;
font-size: 16px !important; line-height: 130%;
letter-spacing: 1px;
text-transform: lowercase;
font-weight: none;
z-index: 199;
}
Our font-family is now named what the font-family is called in the @font-face coding.
So if your line previously read:
font-family: "trebuchet ms", arial, verdana;
We will change it to:
font-family: "Abel", trebuchet ms, arial, verdana;
or
font-family: "Abel", arial, verdana;
Either option is fine. Now with Google Fonts they should show up in any browser you are using but should something go wrong and Abel not show up you coding is telling the browser to show the text in either Trebuchet MS or Arial depending on how you changed out the font.
So now here is what our coding has come to:
Theme: Flexible Squares
Actions: Creating Your Own Layout: Going Over Fonts
Links: Code Index // Embedding Google Fonts
As promised with the Body tutorial, let's go over changing fonts. I've already done a tutorial about how to use Google Fonts. I recommend going over that before continuing on.
So it is possible your Header Navbar looks like this:

But we want it to look like this:

The coding I would like to work with is from my layout Oxygen.
If you scroll nearly to the bottom (right before the MISC section which somehow got spelled MICS) there is a section called FONTS. What you'll see is this:
I put my FONTS section at the bottom of the coding so it is easy to find but you can put this anywhere you want.
You'll notice I have 5 font codes for this layout. That doesn't mean I've used them all. In fact, in this layout the only one of these fonts I used is Abel (the last one). Typically, I'd say remove coding you are not using but I left these fonts in because I wanted the options on some and I forgot on some others. I have recently discovered I'm rather messy when it comes to coding.
Once you've put one of these font section codings into your coding you can go through and change font-family's.
@font-face {
font-family: 'Abel';
font-style: normal;
font-weight: 400;
src: local('Abel'), local('Abel-Regular'), url(http://themes.googleusercontent.com/static/fonts/abel/v4/EAqh528fFdbUek8UOky4sA.woff) format('woff');
}
So going back to that header section we coded previously...
#header {
position: inherit;
width: 1000px;
height: 30px;
text-align: left;
color: #282828;
padding: 0px;
margin-bottom: 5px;
font-family: "Abel", georgia, arial;
font-size: 16px !important; line-height: 130%;
letter-spacing: 1px;
text-transform: lowercase;
font-weight: none;
z-index: 199;
}
Our font-family is now named what the font-family is called in the @font-face coding.
So if your line previously read:
font-family: "trebuchet ms", arial, verdana;
We will change it to:
font-family: "Abel", trebuchet ms, arial, verdana;
or
font-family: "Abel", arial, verdana;
Either option is fine. Now with Google Fonts they should show up in any browser you are using but should something go wrong and Abel not show up you coding is telling the browser to show the text in either Trebuchet MS or Arial depending on how you changed out the font.
So now here is what our coding has come to:
Any questions about this tutorial? Please Comment.




layout_lounge