DesignersBlog.net

  • Home
  • Coding
    • CSS
    • HTML
    • Javascript
  • Design
    • Webdesign
    • Inspiration
    • Typography
  • Mobile
    • iDevices
    • Android
    • Responsive
  • Graphics
    • Photoshop
    • Illustrator
    • Freebies
  • Archive
Search the site...
Home» Coding » Css tool: The most compact Reset.css

Css tool: The most compact Reset.css

Posted by Cas van Dongen - September 18, 2012 - Coding, CSS, Freebies
0
CSS

All browsers have different standard settings for css and how to handle the Cascading Style Sheet. The problem is that these browsers don’t work together and have different settings. The Css Reset file aims to delete all of these settings and rebuild them the same for every browser. You can say it is one of the best tools for css since developing will become a lot easier! There is a very big downside though. Since a Css reset file resets every element in your css, you will have to redefine all of these in your css wich can lead to a bigger css file. We have edited the best Reset style files and created one that is super-compact making your css load even faster.

Compressed version

1
2
3
/* Start Designersblog.net Reset.css */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0;}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}body{line-height:1;}ol,ul{list-style:none;}blockquote,q{quotes:none;}blockquote:before,blockquote:after,q:before,q:after{content:none;}table{border-collapse:collapse;border-spacing:0;}
/* End Designersblog.net Reset.css */

Uncompressed version

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* Start Designersblog.net Reset.css */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video
{
	border:0;
	font-size:100%;
	font:inherit;
	vertical-align:baseline;
	margin:0;
	padding:0;
}
 
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section
{
	display:block;
}
 
body
{
	line-height:1;
}
 
ol,ul
{
	list-style:none;
}
 
blockquote,q
{
	quotes:none;
}
 
blockquote:before,blockquote:after,q:before,q:after
{
	content:none;
}
 
table
{
	border-collapse:collapse;
	border-spacing:0;
}
/* End Designersblog.net Reset.css */

 

I hope this little css hack was very helpful and that you will use it a lot!

 

Cas van Dongen

Founder of DesignersBlog.net
Cas is a 18 year old Graphic and Interactive Designer from The Netherlands. He started with Webdesign when he was only 11 years old and is now studying Graphic and Interactive Design on a school in Breda, The Netherlands.

More Posts

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Search

Recent Posts

  • Adblock Blocker WordPress plugin
  • The best WordPress plugins
  • The Entypo Pictogram Suite
  • 29 ways to stay creative
  • The best website designs of oktober 2012
Copyright © 2012 Designersblog.net - All rights reserved to Buitengewoonuniek inernetdiensten.
  • Linkpartners