css-reset

Re-setting CSS code for form buttons

I used a CSS reset to reset some commonly-used items. The code is this: html, body, div, h1, h2, h3, h4, ul, ol, li, form, input, fieldset, textarea { margin: 0; padding: 0; border: 0; font-size: 100%; } ul {list-style: none outside none;} img, fieldset {border: 0;} h1, h2, h3, h4 {font-weight: normal;} em {font-style: i...

Styling the "html" element in CSS?

Can anyone explain to me why can we style the element html? What are differences between it and body? I usually see tutorials and multiple websites using body and never html, I only found about it when using YUI 3: CSS Reset since changing the background in body didn't work. Edit: Actually, I still haven't found the problem regarding...

Reset.css and then a Set.css

I have, for a while now been using a reset.css file to reset everything before I start laying out my html designs. The reset is great in that it allows one to better control attributes such as margins, padding, line-height etc for all browsers. In essence the flatliner of css files. Now to get the heart beating again, I need a "set.css...

prevent meyer reset css to mess with dynamic content

Hi everyone, I implement the Eric Meyer's reset.css in my website, and works great, but it was a little problem, as this a CMS users are free to format the content of their articles as they want and the reset css resets the formating of their text. Any ideas how we can prevent reset.css inheritance to propagate to the dynamic content? ...

Google maps V3 API - css reset causes scrollbars

This is in my reset script: 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, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, t...

CSS reset for HTML5

Best practices? How does this differ from HTML4 or XHTML1? There's a lot of discussion going on over here: http://html5doctor.com/html-5-reset-stylesheet/ I'm wondering what other resources/discussion exists. ...

How to normalize padding and margins across browsers

Hi, How do other designers normalize padding and margins across browsers. I have tried CSS Resets (currently using the YUI one), but I still run into a lot of inconsistencies. It seems for some elements, with some browsers, setting a padding or margin to 0px will trigger the browser to use a default padding and margin determined by that...

Which HTML5 reset CSS do you use and why?

Which HTML5 reset CSS do you use and why? Is there one that you've found to cover more cases? I've started using HTML5 Doctor's: http://html5doctor.com/html-5-reset-stylesheet/ It seems to work, but I'm wondering if there is something better out there. ...

CSS Reset for one div

I am trying to create a div on my site that is supposed to work like the descriptions on Ebay where all the css styles of the main site are stripped off and then whatever styles are in the div are what style the div (if you can understand what I mean). I've been trying to use a reset stylesheet, but my problem is that the reset is also r...

reset.css help not resetting

I have a reset.css style sheet that looks like this, HTML * { margin: 0; padding: 0; padding: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; text-decoration:none; } body { font-family:Arial,Helvetica,sans-serif; font-size: 83%; } ul, ol,...