ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Prices
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


IT Jobs

Become a ZDNet.co.uk member

Jake Rayson

View blog's RSS Feed

Web design & FOSS

Front-end web technologies and Free Open Source Software.

Thursday 17 April 2008, 11:40 PM

Skinning CSS Cats

Posted by Jake Rayson

I am building a very simple site for an artist friend in Joomla!, part of my learning new skills in the dash for the green hills. (His name is Edward Bell, and I really admire his paintings). The CSS is written one line per property eg

div#horiz-menu {
background: yellow;
height: 36px;
}


Whereas I much prefer multiple properties per line:

div#horiz-menu { background:yellow; height:36px; }

It’s shorter, it’s neater, you can see more lines in the window at any one time. For my money, it’s a more efficient way of having an overview and understanding of your CSS code.

However, I have found that it really doesn’t matter if you just to want quickly hack the code – simply fire up Firebug in Firefox, click on the element and you’re told exactly which line and file that property has been defined in. Wondrous.


Comments on this post

Jake Rayson

This member is ranked #11 in our top 100

  • Jake Rayson
  • Web / Multimedia Developer, London
  • Member since: November 2006

Site Activity Rating 5

CoreTechs

Contacts' Latest Discussions

Number of Tracked Discussions: 376

roger andre roger andre

Beware Of Sneaky Services

Sunday 6 July 2008, 1:27 AM

7 comments
roger andre roger andre

Beware Of Sneaky Services

Thursday 3 July 2008, 7:18 PM

7 comments
roger andre roger andre

facebook lockdown

Thursday 3 July 2008, 1:47 PM

3 comments
roger andre roger andre

Beware Of Sneaky Services

Thursday 3 July 2008, 1:38 PM

7 comments

Contacts' Latest Blogs

Number of Contacts Blogs: 5

Avatar roger andre

Beware Of Sneaky Services

Wednesday 2 July 2008, 9:19 PM

7 comments
Avatar Karen Friar

ICANN sites hijacked?

Friday 27 June 2008, 4:39 PM

0 comments