|
-
Mar 29th, 2011, 05:27 AM
#9
Re: Do you use RESET CSS files
I dislike reset stylesheets greatly. I think of them more as a CSS learning convenience, not something to use as a base for each and every case. I don't want to redefine all styles each time, for example, I like that those headers have their default margins in the main content. Also, I find it much more valuable to teach that browsers do have their default styles and how to deal with those defaults ie. when someone gets extra trouble on margins ("why there is a top margin but I've set it to zero?") you learn something new on CSS: that margins can jump from child elements to their parent element. This may even be desired in some cases! An example: a special case header with a child image could have some extra margin to push it further down, and this would happen automatically by having the img tag there. No need to add an extra class attribute for just that.
So instead of reset stylesheet I do resetting only on elements I actually want to reset (html & body is the most common). And even then I don't think of it as resetting, instead it is just setting the style I want to have. The most common critique for reset CSS is that you first reset everything an in the other hand then redefine everything. Kind of doubling the work; and in some cases creating work that wouldn't otherwise be there. I used reset CSS for a while and noticed it only increased my workload.
One of the neatest things to do if you want your fields to have the same font as everything else:
input,select,textarea { font-family: inherit; }
Last edited by Merri; Mar 29th, 2011 at 05:30 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|