css h1 padding css div header css h1 margin css header layout css h1 font size css header font css h1 height css header background

CSS Cheat Sheetinclude html and body just in case, but many
An Overview of Cascading Style Sheets with Samplebrowsers will override the font choices if you only
Style Sheetdefine your fonts on the html or body.
By Jennifer Kyrnin, See More About:blogging,Headlines
blogger,blogspot,make money from blogHTML headings are important to use to help your site
* beginning web designoutline and let search engines get deeper into your
* csssite. But without styles, they are all fairly ugly. So I
* beginning cssset default styles on all of them. I define the font
When I'm building a Web page from scratch, I like tofamily and the font sizes for each.h1, h2, h3, h4, h5,
start with basic styles defined. It's like starting with ah6 {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 Webfont-size: 1.2em ; }h4 { font-size: 1.0em; }h5 {
browsers are all different. The default font size isfont-size: 0.9em; }h6 { font-size: 0.8em; }
different from platform to platform, the default fontAnd Don't Forget the Links
family is different, some browsers define margins andStyilng the link colors is almost always a critical part
padding on the body tag while others do not, and soof the design, but I've found that if I don't define
on. So I have a series of styles that I set as mythem 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 blogonce I have the color palette for the site
First things first, I like to make sure that I set thedefined.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 inBy 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 ofclasses, 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,makeThe Full Style Sheet
money from blogHere is the style sheet written in full:
This way, if I use international characters in theBlogs are usually aimed for the organic traffic from
content property or as class and ID names, the stylethe SEOs. Search Engines like blogs because their
sheet will still work correctly.information is constantly updating. You can also
Styling the Page Bodyoptimize the content of your blog for the specific
The first thing my default style sheet has in it iskeywords so that your articles would get more
styles to zero out margins, padding, and borders. Thisattention of the SEOs. Don't forget that blogs have
makes sure that all browsers place the content in thethe informative aim. So if you promote some
same place, there aren't any hidden spaces betweenservices there, don't overstuff it, because the
the browser chrome and the content. For most Webvisitors will not like it. People will come to your blog to
pages, this is too close to the edge for text, but it'slook for the information. Try to offer your visitors as
important to start there so that background imagesmuch useful information as possible, so that they
and layout divisions are lined up correctly.html, bodywould 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 tothe 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 Webpicture of your dog. It will make your visitors be loyal
designs, I like to have these standard colors set onto you and visit your blog more often. Be yourself
the body and html tag at first so that the page isand 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 Stylestraffic to your blog is the links exchanging. You can
The font size and font family are something that willexchange links with other blogs and as a result you
inevitably change once the design takes hold, but Iwill receive traffic from the other blogs as well as the
always start with a default font size of 1em and aother blogs will get visitors from your blog. Don't be
default font family of Arial, Geneva, or some othercourteous that it may cause all your visitors go to
sans-serif font. I use ems because I like to keep mythe other blogs. Link exchanging strategy proved its
pages as accessible as possible. And I use sans-serifeffectiveness. It lets more traffic visit your blog.
fonts to keep the page more legible on theEven 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 findpromotion of your internet based business and help
text, but I have found that p, th, td, li, dd, and dtyou make money from home.
are a good start for defining the base font. I also