Advertisement
Promo

Become a member of the ZDNet UK community

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 #5 in our top 100

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

Site Activity Rating 6

CoreTechs

Contacts' Latest Discussions

Number of Tracked Discussions: 2,341

J.A. Watson J.A. Watson

Microsoft Loses Patent Case Appeal

Thursday 24 December 2009, 3:37 PM

5 comments
J.A. Watson J.A. Watson

Microsoft Loses Patent Case Appeal

Thursday 24 December 2009, 6:47 AM

5 comments
ator1940 ator1940

AOL's Steve Case

Wednesday 23 December 2009, 12:31 PM

1 comment
ator1940 ator1940

Plurk holding Microsoft's feet to...

Tuesday 22 December 2009, 3:00 PM

3 comments

Contacts' Latest Blogs

Number of Contacts Blogs: 8

Avatar Adrian Bridgwater

Sun Shines On Cloud Security

Friday 18 December 2009, 12:55 PM

1 comment
Avatar David Meyer

Android passes 20,000 apps mark

Tuesday 15 December 2009, 5:05 PM

0 comments
Avatar Karen Friar

HP workers set dates for strikes

Thursday 3 December 2009, 7:57 PM

1 comment

Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters