Home > CSS > My CSS writing style

My CSS writing style

23 September, 2008 Leave a comment Go to comments

When it comes to writing CSS I think everybody has their own unique style of writing the code.

Mine will look like this: (this is taken from a fully-working website)

/* reset.css */
* {margin:0;padding:0;}
body {font:11px arial;line-height:1.5em;color:#333;}
a {color:inherit;text-decoration:none;}
a:hover {color:inherit;text-decoration:underline;}
a img {border:none;}
blockquote {font:italic 12px arial;color:#777;width:75%;margin:20px auto;}

As you can see, this is the modified YUI CSS reset. Gw sengaja menaruh selector, property dan value-nya di dalam satu baris spy lebih gampang dibaca. Dengan gini selectornya bisa quickly identified.

I’m using notepad++ for the editor. I think those programming students know this editor really well. But if you’re interested, just google it to download.

Categories: CSS
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: