Skip to main content

Reset Your CSS

Been reading a little here and there regarding resetting CSS before adding your own css styles.



The reason for this, which I'm still not quite sure I understand. Is mostly so your site will look the same across browsers. (IE, FireFox, Chrome, Opera, Safari etc.) While I find this amusing, I've personally never looked into this or even used a reset CSS file.



What does a reset CSS file look like exactly? Here's an example.




/*
YUI 3.4.1 (build 4118)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,
pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}
table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,
cite,code,dfn,em,strong,th,
var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,
th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;
font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}
input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}
input,textarea,select{*font-size:100%}legend{color:#000}


As you can see, it "resets" all of the styles down to nothing. It's up to you to define how they present on the pages. I suppose this also helps give one the clear mind that since they have reset their CSS that one wouldn't have to deal with unpleasant surprises.



I suppose this could also cause more work to crop up. One would have to set all of their CSS rules. Would be very beneficial to have a base set of CSS rules to go by... perhaps even a template for all website projects.

Comments

Popular posts from this blog

Didn't Sleep

 What's the point of sleep anymore if I can't sleep? I don't think I slept any good last night. I was awake at 3 am wondering to myself, what on earth am I doing awake? Yeah, that happened. It doesn't make any sense. Fortunately, it's the weekend. So, I can catch up on sleep tonight. I don't have to be anywhere tomorrow, so it's a good opportunity to actually sleep for once. Whatever the case, I hope I'll be able to fall asleep and stay asleep. We will see what happens.

What's The Point?

 So, tell me, what is the point of believing in a spiritual supreme being? I often wonder what that is all about. I know religions say that God, as some call him, is our father. We pray by starting with our father who art in heaven, hallowed be thy name. Yet sometimes it feels like he is absent from our lives. Is it due to how we are living our lives? What exactly is the cause of that feeling? Some people believe that God, Jesus, and the Holy Ghost are one person. Others do not. It is interesting to me to see what all churches believe in. I myself do not go to church. I don't believe in organized religion. I have my bible on my phone, so it's me and my bible. That is my link to God. It makes me wonder if that's enough though. I have faith in Christ, I believe in him. Is my faith sufficient to be forgiven of my sins? I do not know. I do know that wherever I end up in the afterlife, I will have done my best to follow Christ. I believe the scriptures which lay out Christ's...

Temptation Bible vs Book of Mormon

In the Bible in 1 Corinthians 10:13 we find: There hath no temptation taken you but such as is common to man: but God is faithful, who will not suffer you to be tempted above that ye are able ; but will with the temptation also make a way to escape, that ye may be able to bear it. But what might seem as a contradiction is found in Alma 13:28 But that ye would humble yourselves before the Lord, and call on his holy name, and watch and pray continually, that ye may not be tempted above that which ye can bear , and thus be led by the Holy Spirit, becoming humble, meek, submissive, patient, full of love and all long-suffering; So, which is it? Either God tempts you to a point and stops, or you have to actively pray not to be tempted beyond that no return point. Which is it?