Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 12-30-2009, 04:37 AM CSS Reset
Junior Talker

Posts: 1
Name: jony
Trades: 0
Where do people stand on CSS resets?

I used to use
CODE
* {margin: 0; padding: 0;}
to cancel all the browsers' default margin and padding.

But I've been reading recently that a lot of people don't use this anymore as it creates more work later on by cancelling margin and padding on certain elements which need margin and padding, such as form elements.

Is it best to reset default styles only for certain elements, or just let the browsers do their thing?

Last edited by chrishirst; 12-30-2009 at 05:07 AM.. Reason: signature turned off
Jonybhai is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-30-2009, 06:43 PM Re: CSS Reset
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Sometimes I use one of the css reset files that are popular like the one from Eric Meyer. Sometimes I only reset specific things that I know I'll be working with.

The resets usually include more than just margin and padding too.

You don't have to use one. It really comes down to what you find easier to do. Even when I don't use a pre-existing reset file I'm generally resetting some things so they look the same across browsers.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 12-31-2009, 05:59 PM Re: CSS Reset
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
Quote:
But I've been reading recently that a lot of people don't use this anymore as it creates more work later on by cancelling margin and padding on certain elements which need margin and padding, such as form elements.
But equally true is the fact that your site might take longer to look equal in most browsers without some kind of reset. When I use a reset, and use firefox for development so I know it is always validating, I rarely have much to do for the other browsers to make them all look consistent. Lists are the big thing to reset IMO.

In addition to the reset, I also use a basic css starter template. This way, I can set MY new rules into effect.

As vangogh said, you do not have to use a reset, but if your site design depends on pixel perfect display, you may want to level the ground for all browsers, if your site is flexible in design, you may only need to reset a few things.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 01-01-2010, 02:14 PM Re: CSS Reset
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
While using the * reset as you have may SEEM like a good idea, it does present some problems with some browsers. Using a more targeted reset is a better method, even if it does take a bit more work to do it that way.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-01-2010, 04:11 PM Re: CSS Reset
blue-dreamer's Avatar
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
@LadynRed - I'm curious to know exactly what browsers it causes problems with. I've read all the arguments for both approaches (star and Meyer types) but never seen any positive evidence either way.
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 01-02-2010, 12:59 PM Re: CSS Reset
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I'll have to dig around in my links - if I remember correctly both Opera and Safari have problems with it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Reset
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47321 seconds with 12 queries