| CSS Cheat Sheet | | | | include html and body just in case, but many |
| An Overview of Cascading Style Sheets with Sample | | | | browsers will override the font choices if you only |
| Style Sheet | | | | define your fonts on the html or body. |
| By Jennifer Kyrnin, See More About:blogging, | | | | Headlines |
| blogger,blogspot,make money from blog | | | | HTML headings are important to use to help your site |
| * beginning web design | | | | outline and let search engines get deeper into your |
| * css | | | | site. But without styles, they are all fairly ugly. So I |
| * beginning css | | | | set default styles on all of them. I define the font |
| When I'm building a Web page from scratch, I like to | | | | family and the font sizes for each.h1, h2, h3, h4, h5, |
| start with basic styles defined. It's like starting with a | | | | h6 {font-family: Arial, Helvetica, sans-serif; |
| clean canvas and fresh brushes. One of the first | | | | }h1 { font-size: 2em; }h2 { font-size: 1.5em; }h3 { |
| problems that Web designers face is that Web | | | | font-size: 1.2em ; }h4 { font-size: 1.0em; }h5 { |
| browsers are all different. The default font size is | | | | font-size: 0.9em; }h6 { font-size: 0.8em; } |
| different from platform to platform, the default font | | | | And Don't Forget the Links |
| family is different, some browsers define margins and | | | | Styilng the link colors is almost always a critical part |
| padding on the body tag while others do not, and so | | | | of the design, but I've found that if I don't define |
| on. So I have a series of styles that I set as my | | | | them in my default styles, I typically forget at least |
| default styles on Web pages. | | | | one of the pseudo-classes. So I define them with |
| CSS and the Character Setblogging, | | | | some small variation on blue and then change them |
| blogger,blogspot,make money from blog | | | | once I have the color palette for the site |
| First things first, I like to make sure that I set the | | | | defined.a:link { color: #00f; }a:visited { color: #009; |
| character set of my CSS documents to utf-8. While | | | | }a:hover { color: #06f; }a:active { color: #0cf; } |
| most of the pages I design are written in English, | | | | * links are blue |
| some do get localized and I like to make sure that | | | | * visited links are dark blue |
| my Web pages can be localized as easily as possible. | | | | * hover links are light blue |
| Setting the character set in the external style sheet | | | | * active links are even paler blue |
| won't take precedence over an HTTP header, but in | | | | By styling the links with a fairly innocuous color |
| all other situations it will. | | | | scheme it insures that I won't forget any of the |
| It's easy to set the character set, for the first line of | | | | classes, and also makes them a little less loud than |
| the CSS document I write: | | | | the default blue, red, and purple. |
| @charset "utf-8";blogging, blogger,blogspot,make | | | | The Full Style Sheet |
| money from blog | | | | Here is the style sheet written in full: |
| This way, if I use international characters in the | | | | Blogs are usually aimed for the organic traffic from |
| content property or as class and ID names, the style | | | | the SEOs. Search Engines like blogs because their |
| sheet will still work correctly. | | | | information is constantly updating. You can also |
| Styling the Page Body | | | | optimize the content of your blog for the specific |
| The first thing my default style sheet has in it is | | | | keywords so that your articles would get more |
| styles to zero out margins, padding, and borders. This | | | | attention of the SEOs. Don't forget that blogs have |
| makes sure that all browsers place the content in the | | | | the informative aim. So if you promote some |
| same place, there aren't any hidden spaces between | | | | services there, don't overstuff it, because the |
| the browser chrome and the content. For most Web | | | | visitors will not like it. People will come to your blog to |
| pages, this is too close to the edge for text, but it's | | | | look for the information. Try to offer your visitors as |
| important to start there so that background images | | | | much useful information as possible, so that they |
| and layout divisions are lined up correctly.html, body | | | | would like to visit your blog again and bookmark your |
| {margin: 0px;padding: 0px;border: 0px; | | | | page. |
| } | | | | Unlike the websites, blogs are more personal place in |
| I also set the default foreground or font color to | | | | the Internet. You can personalize your blog by |
| black and the default background color to white. | | | | offering some information about yourself, adding a |
| While this will most likely change for most Web | | | | picture of your dog. It will make your visitors be loyal |
| designs, I like to have these standard colors set on | | | | to you and visit your blog more often. Be yourself |
| the body and html tag at first so that the page is | | | | and share your honest point of view when you write |
| easier to read.html, body {color: #000;background: | | | | for your blog. You can also write from the first |
| #fff; | | | | person there, it will make you closer to your readers. |
| } | | | | Besides the SEO, the other way for generating more |
| Default Font Styles | | | | traffic to your blog is the links exchanging. You can |
| The font size and font family are something that will | | | | exchange links with other blogs and as a result you |
| inevitably change once the design takes hold, but I | | | | will receive traffic from the other blogs as well as the |
| always start with a default font size of 1em and a | | | | other blogs will get visitors from your blog. Don't be |
| default font family of Arial, Geneva, or some other | | | | courteous that it may cause all your visitors go to |
| sans-serif font. I use ems because I like to keep my | | | | the other blogs. Link exchanging strategy proved its |
| pages as accessible as possible. And I use sans-serif | | | | effectiveness. It lets more traffic visit your blog. |
| fonts to keep the page more legible on the | | | | Even if some of them leave your page, those who |
| screen.html, body, p, th, td, li, dd, dt {font: 1em Arial, | | | | are interested in your services will stay with you. |
| Helvetica, sans-serif; | | | | Don't underestimate the blogging. This easy and not |
| } | | | | expensive method can play a main role in the |
| There may be other places where you might find | | | | promotion of your internet based business and help |
| text, but I have found that p, th, td, li, dd, and dt | | | | you make money from home. |
| are a good start for defining the base font. I also | | | | |