Ok, so a little while back shovenose told me about a genius way to clear css and I thought I would share it with all of you:
Code:* { padding:0; margin:0; }
Ok, so a little while back shovenose told me about a genius way to clear css and I thought I would share it with all of you:
Code:* { padding:0; margin:0; }
Hey you! Go make something!
To quote myself directly.Code:/* CSS RESET */ * { margin: 0; padding: 0; }
One problem with that, now your <li> won't have bullets, and won't be set in from the left. Same with blockquotes. Also, while you're at it, stop IE from putting a border around linked images:
Starting to look good.Code:/* CSS RESET */ *{margin:0;padding:0;} li{margin-left:0.5em;} blockquote{margin:0 0.5em;} img{border:0;}
Ron Roe
Web Developer
"If every app were designed using the same design template, oh wait...Bootstrap."
I always hated the "CSS Resets" because, as Ron said, they don't allow for things such as lists to work properly. Not only that, they pose issues with paragraph tags since they don't allow for a line break between paragraphs...among other things.
I have a default-css folder where I keep several "resets" and then use "specific-css" to override them on a site-by-site basis when and if needed.
If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.
If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.
My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)
Definitely a good point about blockquotes and li. But most people will know to fix it.Originally Posted by Ronald Roe, post: 239677
That's an even better idea!Originally Posted by TheGAME1264, post: 239679
awww you took off my genius picture
Hey you! Go make something!