
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 Sheet
An Overview of Cascading Style Sheets with Sample Style Sheet
By Jennifer Kyrnin, About.com
See More About:
blogging, blogger,blogspot,make money from blog
* beginning web design
* css
* beginning css
When I’m building a Web page from scratch, I like to start with basic styles defined. It’s like starting with a clean canvas and fresh brushes. One of the first problems that Web designers face is that Web browsers are all different. The default font size is different from platform to platform, the default font family is different, some browsers define margins and padding on the body tag while others do not, and so on. So I have a series of styles that I set as my default styles on Web pages.
CSS and the Character Set
blogging, blogger,blogspot,make money from blog
First things first, I like to make sure that I set the character set of my CSS documents to utf-8. While most of the pages I design are written in English, some do get localized and I like to make sure that my Web pages can be localized as easily as possible. Setting the character set in the external style sheet won’t take precedence over an HTTP header, but in all other situations it will.
It’s easy to set the character set, for the first line of the CSS document I write:
@charset “utf-8″;
blogging, blogger,blogspot,make money from blog
This way, if I use international characters in the content property or as class and ID names, the style sheet will still work correctly.
Styling the Page Body
The first thing my default style sheet has in it is styles to zero out margins, padding, and borders. This makes sure that all browsers place the content in the same place, there aren’t any hidden spaces between the browser chrome and the content. For most Web pages, this is too close to the edge for text, but it’s important to start there so that background images and layout divisions are lined up correctly.
html, body {
margin: 0px;
padding: 0px;
border: 0px;
}
I also set the default foreground or font color to black and the default background color to white. While this will most likely change for most Web designs, I like to have these standard colors set on the body and html tag at first so that the page is easier to read.
html, body {
color: #000;
background: #fff;
}
Default Font Styles
The font size and font family are something that will inevitably change once the design takes hold, but I always start with a default font size of 1em and a default font family of Arial, Geneva, or some other sans-serif font. I use ems because I like to keep my pages as accessible as possible. And I use sans-serif fonts to keep the page more legible on the screen.
html, body, p, th, td, li, dd, dt {
font: 1em Arial, Helvetica, sans-serif;
}
There may be other places where you might find text, but I have found that p, th, td, li, dd, and dt are a good start for defining the base font. I also include html and body just in case, but many browsers will override the font choices if you only define your fonts on the html or body.
Headlines
HTML headings are important to use to help your site outline and let search engines get deeper into your site. But without styles, they are all fairly ugly. So I set default styles on all of them. I define the font family and the font sizes for each.
h1, h2, h3, h4, h5, h6 {
font-family: Arial, Helvetica, sans-serif;
}
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em ; }
h4 { font-size: 1.0em; }
h5 { font-size: 0.9em; }
h6 { font-size: 0.8em; }
And Don’t Forget the Links
Styilng the link colors is almost always a critical part of the design, but I’ve found that if I don’t define them in my default styles, I typically forget at least one of the pseudo-classes. So I define them with some small variation on blue and then change them once I have the color palette for the site defined.
a:link { color: #00f; }
a:visited { color: #009; }
a:hover { color: #06f; }
a:active { color: #0cf; }
* links are blue
* visited links are dark blue
* hover links are light blue
* active links are even paler blue
By styling the links with a fairly innocuous color scheme it insures that I won’t forget any of the classes, and also makes them a little less loud than the default blue, red, and purple.
The Full Style Sheet
Here is the style sheet written in full:
Blogs are usually aimed for the organic traffic from the SEOs. Search Engines like blogs because their information is constantly updating. You can also optimize the content of your blog for the specific keywords so that your articles would get more attention of the SEOs. Don’t forget that blogs have the informative aim. So if you promote some services there, don’t overstuff it, because the visitors will not like it. People will come to your blog to look for the information. Try to offer your visitors as much useful information as possible, so that they would like to visit your blog again and bookmark your page.
Unlike the websites, blogs are more personal place in the Internet. You can personalize your blog by offering some information about yourself, adding a picture of your dog. It will make your visitors be loyal to you and visit your blog more often. Be yourself and share your honest point of view when you write for your blog. You can also write from the first person there, it will make you closer to your readers.
Besides the SEO, the other way for generating more traffic to your blog is the links exchanging. You can exchange links with other blogs and as a result you will receive traffic from the other blogs as well as the other blogs will get visitors from your blog. Don’t be courteous that it may cause all your visitors go to the other blogs. Link exchanging strategy proved its effectiveness. It lets more traffic visit your blog. Even if some of them leave your page, those who are interested in your services will stay with you.
Don’t underestimate the blogging. This easy and not expensive method can play a main role in the promotion of your internet based business and help you make money from home.
}
About the Author
author is renowned earn money from blogging
is provided free in internet
author is renowned blogger can make money
is provided free in internet
Beginner PHP Tutorial – 174 – Loading in file Contents to a DIV Part 3
|
|
EXCELLENCE # 9A LT ASH BLONDE Size: KIT $6.99 EXCELLENCE # 9A LT ASH BLONDE Size: KIT… |
|
|
New Gray 9 Overhead Flip Down Roof Mount LCD Car Monitor Package With DVD Player Lcd with 2 Wireless 32 bit game Controllers: Dual channel Wireless Headphones $165.00 New Gray 9″ Overhead Flip Down Roof Mount LCD Car Monitor Package With DVD Lcd with 2 Wireless 32 bit game Controllers: Game Disk. No messy wires everywhere in your car anymore, your children will enjoy the games much more. You have the luxury to go on those long road trips and have the kids completely entertained and quiet during the trip. FM Transmitter: Easy to connect to your quality sound sys… |
|
|
New Tan 9 Overhead Flip Down Roof Mount LCD Car Monitor Package With DVD Player Laser Lcd with 2 Wireless 32 bit game Controllers: Game Disk $169.00 New Tan 9″ Overhead Flip Down Roof Mount LCD Car Monitor Package With Region Free DVD Lcd with 2 Wireless 32 bit game Controllers: Game Disk. No messy wires everywhere in your car anymore, your children will enjoy the games much more. You have the luxury to go on those long road trips and have the kids completely entertained and quiet during the trip. FM Transmitter: Easy to connect to your qualit… |
|
|
New Black 9 Overhead Flip Down Roof Mount LCD Car Monitor Package With DVD Player Lcd with 2 Wireless 32 bit game Controllers: Game Disk $169.00 New Black 9″ Overhead Flip Down Roof Mount LCD Car Monitor Package With DVD Lcd with 2 Wireless 32 bit game Controllers: Game Disk. No messy wires everywhere in your car anymore, your children will enjoy the games much more. You have the luxury to go on those long road trips and have the kids completely entertained and quiet during the trip. FM Transmitter: Easy to connect to your quality sound sy… |
|
|
Palm Tungsten E2 Handheld $139.99 TungstenE2 Handheld… |
|
|
Print Ribbon – 1 X Black for Panasonic Kx-p 3626,3696 $14.18 Using Panasonic consumables and supplies with your Panasonic printer scanner and fax-machine gives you crisp sharp output every time. The Panasonic printers scanners and fax-machines have been engineered to work together with their custom-designed consumables and supplies to ensure that your text and graphic printouts are clear and sharp every time you print.Primary InformationProduct Type :&… |
|
|
3M Commercial Office Supply Div. Products – Wristwrest, Nonskid Base, 19Wx2-3/4Dx3/4H, Black – Sold as 1 EA – Wrist rest features antimicrobial protection and 3M Precise Optical Mousing Surface for better performance and gel comfort to encourage neutral wrist posture. Antimicrobial additive inhibits the growth of microorganisms, such as bacteria, that can cause stains, odors, and product degradation. 3M Precise Optical Mousing Surface is designed to optimize light reflectivity and contrast to $25.11 3M Commercial Office Supply Div. Products – Wristwrest, Nonskid Base, 19″Wx2-3/4″Dx3/4″H, Black – Sold as 1 EAWrist rest features antimicrobial protection and 3M Precise Optical Mousing Surface for better performance and gel comfort to encourage neutral wrist posture. Antimicrobial additive inhibits the growth of microorganisms, such as bacteria, that can cause stains, odors, and product degrad… |
|
|
igluit 13 Pink (Neon Edge) Hard Case (For Unibody White Macbook), Hardshell Cover, 13 inch Case, Snap on Cover $34.97 MacBook(Unibody White MacBook) Case – 13.3 inch Transparent Pink (neon edge) - Please verify that the ports on your macbook match the ones in the photo above |
|
|
Canon Fine Art Paper Photo Rag, 8.5 x 11 Inches, 20 Sheets (0587B005) $40.49 Canon has poured all the Know How of its extraordinary history of developing innovative office machines into each of its copiers, printers, and networked office systems. The same superiority of design and manufacture goes into all of the Canon-branded consumable imaging supplies and parts for this equipment. Naturally, no one makes better parts and supplies for Canon products than Canon. Using gen… |
|
|
2 each: Rubbermaid Endurance Wheeled Cooler (2A9200PMTL) Sold as 2 UNITS at $41.03 per unit. (1 unit = each.) 50 quart. Hinged split lid for easy access to contents in cooler. Extra thick polyurethane in lid and base to keep contents cooler. 1.5″ deep cup holders in lid to keep cans and glasses in place. Retractable pull handle for easy transportation. Contents stay cool for up to 5 days at 90 degrees. High-performance hybrid wheels. Holds 75 cans plus … |
Related Articles
No user responded in this post
Leave A Reply