SEO Blog

The Importance of Using Reset CSS Stylesheets - January 29th, 2008

It’s well known that every browser has different default settings in the visual representation of HTML elements. For this reason it is very useful to implement a reset CSS file that removes and neutralizes the inconsistent default browser styling settings.

A good CSS reset stylesheet should clear all default margins, padding, font styling, table properties, list styles, and so on. Creating in this way a neutral foundation accross all A-grade browsers and providing a good base upon which you can explicitly declare your own CSS properties.

For example if you need to set up different styled versions of an <h1> tag accross a site you may find yourself resetting browser default rules over and over again becoming much harder to maintain.

How to use

Firstly import the stylesheet in your HTML file by placing the following code in the <head> section and before any other stylesheets.
I use @import instead of link because older browsers such as Netscape 4, IE 3 and 4, Konqueror 2, and Amaya 5.1 don’t recognise it.

<style type="text/css" media="all">
  @import url("PATH-TO-YOUR-CSS-FOLDER/reset.css");
</style>

Secondly create your reset.css file. Here’s one that I use below, feel free to customize it to suits your own needs:

* {
text-decoration:none;
font-size:1em;
outline:none;
margin:0;
padding:0;
}

code,kbd,samp,pre,tt,var,textarea,input,select,isindex {
font:inherit;
font-size:1em;
}

dfn,i,cite,var,address,em {
font-style:normal;
}

th,b,strong,h1,h2,h3,h4,h5,h6 {
font-weight:400;
}

a,img,a img,iframe,form,fieldset,abbr,acronym,object,applet {
border:none;
}

table {
border-collapse:collapse;
border-spacing:0;
border:0;
}

caption,th,td,center {
font-weight:400;
text-align:left;
vertical-align:top;
}

body {
line-height:1;
background:#FFF;
color:#000;
}

q {
quotes:"" "";
}

ul,ol,dl,li,dt,dd dir,menu {
list-style:none;
}

sub,sup {
vertical-align:baseline;
}

a {
color:inherit;
}

hr {
display:none;
}

font {
font:inherit !important;
color:inherit !important;
}

There’s also a compact version of the same file.

The catch…

The only problem about resetting all HTML elements is that you need to re-declare all styling properties, resulting in bigger CSS files. Nevertheless CSS reset allows you precise control over your designs and ensures crossbrowser conformity.

Tino
SEO Programmer

Listen to this podcast Listen to this podcast

Duplicate Content and Use of “Blockquote” - January 28th, 2008

When implementing search engine optimisation one thing that can harm your efforts is duplicate content, Blogs are particularly prone to having duplicate content, A lot of the time a person has a blog to keep people informed on certain topic areas. For instance the just search blog keeps people informed about search engine optimisation amongst other things. We could bring you information we find on other websites and use some content from that site and show it you here as a quote. Even if it is a quote it is still duplicate content.

One thing some blogging software provides for you is the ability to add text to your blog using the “blockquote” tag, this gives you the opportunity to add the URL of the website you have quoted the text from. This is a great feature but I feel some people could be falling fowl to using this and thinking they have referenced the original text so this is ok. Well from a human point of view you are right. You’re not passing any others content as your own. Googlebot however sees it different, all Google will see is the duplicate content.

I did a little research into the “blockquote” tag and what Googles official stance is on it. Currently they do not have any stance on it! A lot of people suggested that Google should use this tag and if they have used it correctly and cited the original site then as long as quoted text doesn’t take up too much of your page then Google should not see the quote as duplicate text but quoted text.

This is currently not the case but Google changes all the time so let’s wait and see.

Gary
SEO Programmer

Listen to this podcast Listen to this podcast