Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail CSS convention

Tags:

css

I've just looked at Gmail source, and I'm surprised the way they name id / class name.

This is just a curious what do them mean ? alt text

like image 804
Dzung Nguyen Avatar asked Jan 04 '11 17:01

Dzung Nguyen


People also ask

Can you use CSS in Gmail?

You can style email sent to Gmail using inline <style> blocks and standard CSS. Most CSS selectors, attributes, and media-queries are supported.

Can you put CSS in an email?

Most email clients support CSS. Just make sure you use in-line CSS coding to ensure that everything looks as intended across different devices. Some email clients don't support specific CSS stylesheets. If you want to edit the CSS of your emails, you'll need to embed it directly within the HTML coding of your email.


2 Answers

Gmail uses a minifier on it's CSS and javascript - that's why you get such bizarre names for classes, ids, javascript variables, etc.

If I'm not mistaken they likely use something like GWT for building the site, and then compile it down to the form you're seeing.

like image 99
Gavin Miller Avatar answered Sep 21 '22 06:09

Gavin Miller


Knowing how much the Google guys care about caching, bandwidth and such, I suppose these names are just short random IDs generated by an automated CSS minifier.

like image 23
Álvaro González Avatar answered Sep 24 '22 06:09

Álvaro González