ext_194372: TVD: Caroline Close Up (Default)
[identity profile] sireesanwar.livejournal.com posting in [community profile] layoutlounge
Account 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:


Any questions about this tutorial? Please Comment.

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

About

Welcome to the Lounge. Our tutorials are saved here. These are currently all for LJ and Flexible Squares. Should you have general questions about us check out our FAQ. I do NOT customize layouts for individuals.


    Layout Change Quick Guide
If you like Flexible Squares, I have tons of layouts for you, and still create them.

I've been creating Layouts for DW's Bannering. Here's how to use them:
1. Go to Transmogrified Layouts.
2. Choose Basic.
3. Go to Custom CSS.
4. Make sure all boxes are unchecked
5. Copy Coding to Stylesheet Box.
6. Make sure to update with your own images/image urls. Imgur images are okay to be used.
7.Click Save.


Tips Welcome:

You can also find layout_lounge at LiveJournal.

Tags

April 2025

S M T W T F S
  1 2345
6789101112
1314 1516171819
2021 2223242526
2728 2930