CSS resets (geek pitting ahead!)

Don’t be a retard. Server-side code is what I work on all day and get paid a shitload of money for.

But PHP and ASP.net are designed by imbeciles and used exclusively by morons, masochists, and people who enjoy sexual intercourse with waterfowl.

Noooooo! :frowning: The only time I’ve used !important is as an IE hack.

Because Eric Meyer, one of the CSS gods, told people to. Except what he actually said was reset everything and then redefine it all so that your padding and margins are the same in every browser. People tend to miss that part and just reset everything.

It also doesn’t help that it’s in the default CSS for a lot of lightboxes, so someone just installs a Wordpress plugin to give them purty popups and boom, everything breaks.

Whoa, how did you manage to post in this thread from 1998?

Seriously, it’s tough to think of any use for HTML that doesn’t require CSS to be used alongside it.

My whole site is HTML only. It’s non-commercial and non-flashy but it works!

The guy who hosts my site keeps pushing at me to learn CSS but I’m of the school of “if it ain’t broke, don’t fix it”.

I thought the point of a CSS reset was to then go in and set up your own defaults for everything you’ve just reset.

If you reset everything to zero then only put in selected code, then that’s just madness.

I’ve never used a global reset, though I was considering applying a limited reset on the next site I make, carefully selecting the ones that are normally problematic for me then immediately including my new defaults.

In theory the resetting should therefore be unnecessary, but what I think it does is make every browser now be starting from the same state, giving you ultimate control. I may be being optimistic on that point.

That’s actually quite brilliant! It could solve some problems I’ve been having. If it works I won’t have to murder Bill Gates in his sleep, yet.

Here’s how.

A lot of the things CSS addresses are practices that are deprecated in HTML, so the only way you’ll be able to make some things work at all is via CSS. So, soon it will be broke, and I suggest you catch up quick-smart.

The thing is, that includes this site, when it comes to the font tags.

Absolutely agreed.

I have all-but abandoned CSS for anything other than a) the enclosing page layout, and b) typography, forms, lists etc. Fuck the rest of it takes hours to put together a two-column layout in CSS, and even then the fuckers can’t sync their vertical heights. And even when you’ve got it working in IE8 and Chrome, you suddenly find it’s broken in Firefox and IE7 or some shit. FUCK it.

Nested tables FTW, even now, 15 years after I started this career.

All I really want for Christmas is for everyone to agree on whether padding is included in a box’s specified width, or excluded. Also borders. Or has all that finally been fixed. I long ago stopped paying attention to IE (the advantage of building sites that will only be read by CS academics is that basically no one uses IE).

Yeah. CSS layout is fucked and CSS3 positioning is pretty neat but it’ll be years before anyone can use it in real life. And the arguments against tables are irrational anyway – peppering your document with non-semantic DIVs isn’t somehow better than using non-semantic TDs.

Tables are easy and they are perfectly consistent across browsers.

Okay, I guess we have another person posting from the past. Even IE6 used the standard box model if you used a doctype that triggered standards mode.

CSS3 allows you to pick between the two box models. I’m not the only person who thinks IE5/5.5’s non-standards-compliant box model actually made way more sense.