- 29
- Sphinn It!
Posted By: matt608 362 days ago
Topic Type: News Story (Jump to http://www.cristianr.com)
Category: Blogging
4 Comments
4 Comments
Save the date for:
SMX China (Nanjing) - Sept. 23-24
SMX Stockholm - Sept. 23-24: See who's speaking or register now.
SMX East (New York City) - Oct.
6-8: See the agenda or register today and save!
SMX London - Nov. 4-5: Pre-agenda rate now available. Click here.
Comments
The stylesheet tip is a good one. I've taken 28K stylesheets and, by not stacking each element beneath the next, cut it at least in half. That also makes it easier to read; it's okay where there are only a few styles, but as the stylesheet gets longer, it's blinding.
So change this:
body {color: #000000;
margin: 0px;
padding: 0px;
font-family: arial, verdana, sans-serif;
}
to this:
body {color:#000; margin:0; padding:0; font-family:arial,verdana,sans-serif}
Tidy. I like a tidy stylesheet. :)
[Oops; the software double-spaced my first style example]
That's a great idea, but there are stylesheet resizers, that remove all of the blank spaces automatically from your stylesheet. It's less work.
Thanks for this I have a couple slow loading sites. I went to staples and asked for their easy button but apparently it's just a gimmick.
I'm glad you liked it Hustlin :)