Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 644 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

[CSS] What kind of syntax do you use?

Thread title: [CSS] What kind of syntax do you use?
Closed Thread  
Page 3 of 4 < 1 2 3 4 >
    Thread tools Search this thread Display Modes  
10-31-2007, 04:40 PM
#21
Jmz is offline Jmz
Status: Member
Join date: Jun 2007
Location: Newcastle, UK
Expertise:
Software:
 
Posts: 245
iTrader: 7 / 100%
 

Jmz is on a distinguished road

Send a message via MSN to Jmz

  Old

I would normally write it as:
HTML Code:
.class{
selector:name;
}
Although the idea to put related selectors together is something I hadnt thought of although I think I'll use it from now on

10-31-2007, 05:00 PM
#22
LeeP is offline LeeP
Status: Member
Join date: Jan 2007
Location: West Midlands, UK.
Expertise:
Software:
 
Posts: 371
iTrader: 5 / 100%
 

LeeP is on a distinguished road

Send a message via MSN to LeeP

  Old

HTML Code:
.wrapper {
          width: 600px;
}
Seemed to be easy to read like that for me.

10-31-2007, 07:26 PM
#23
Ninham is offline Ninham
Ninham's Avatar
Status: Member
Join date: Aug 2007
Location: UK
Expertise:
Software:
 
Posts: 103
iTrader: 0 / 0%
 

Ninham is on a distinguished road

Send a message via MSN to Ninham Send a message via Yahoo to Ninham

  Old

I would use this

Code:
#body {
  width: 100px;
  height: 100px;
}

10-31-2007, 10:16 PM
#24
Steven Fergus is offline Steven Fergus
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 1,212
iTrader: 3 / 100%
 

Steven Fergus is on a distinguished road

  Old

The first one.

10-31-2007, 10:19 PM
#25
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Wildhoney: I knew some of them had names, but was either too busy to look them up, or just thought it would be more complicated than just showing them.

11-01-2007, 02:33 PM
#26
jabberwocky is offline jabberwocky
jabberwocky's Avatar
Status: Member
Join date: Oct 2005
Location: Calgary, Alberta, Canada
Expertise:
Software:
 
Posts: 278
iTrader: 0 / 0%
 

jabberwocky is on a distinguished road

  Old

I have been writing css like this;

Code:
.class { selector: value; selector: value; selector: value; }
I also write in short hand so that helps me in keeping things tight. I usually divide groups together in the CSS document. Like putting all header elements together, like #header, #header h1, .floatleft, etc.

11-01-2007, 04:50 PM
#27
Ju5T is offline Ju5T
Status: I'm new around here
Join date: Sep 2007
Location: Lithuania
Expertise:
Software:
 
Posts: 11
iTrader: 0 / 0%
 

Ju5T is on a distinguished road

  Old

Code:
.class {
	selector: value;
       }
Whatever, I find it difficult to use this forum CODE system..

11-01-2007, 11:35 PM
#28
Purge is offline Purge
Status: Junior Member
Join date: Jul 2007
Location: United States
Expertise:
Software:
 
Posts: 90
iTrader: 1 / 100%
 

Purge is on a distinguished road

Send a message via AIM to Purge Send a message via MSN to Purge

  Old

I usually do it like this

Code:
.class {
         attribute: value;
         attribute: value;
         attribute: value;
}
I'm pretty sure that is just the standard way that a lot of people use. :P

11-02-2007, 07:58 PM
#29
Hero is offline Hero
Hero's Avatar
Status: Very much the flyest.
Join date: Mar 2006
Location: Belgium
Expertise:
Software:
 
Posts: 1,171
iTrader: 1 / 100%
 

Hero is on a distinguished road

  Old

Originally Posted by Andrew R View Post
I can't stand ones that make it nearly impossible to read, and very unorganized, like this one I've seen:
Code:
.class {
selector: value;}
.class {
selector: value;}
Haha, that's my code you're talking about

11-02-2007, 08:02 PM
#30
Bradlc is offline Bradlc
Status: Junior Member
Join date: Sep 2007
Location: Lancashire
Expertise:
Software:
 
Posts: 46
iTrader: 10 / 100%
 

Bradlc is on a distinguished road

  Old

Like this: :P

Code:
.class { selector: value;
           selector: value; }

Closed Thread  
Page 3 of 4 < 1 2 3 4 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed