icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » All Things Techy » Web Standards Design » Combine or No?

Web Standards Design Discuss accessibility, CSS, XHTML and more.

Reply
 
LinkBack Thread Tools Search this Thread
Old April 4th, 2007, 5:03 PM   #1 (permalink)
Registered User
Excelling Contributor
 
dubLeE's Avatar
 
Joined in Oct 2004
Hosted on pass61/63
622 posts
Gave thanks: 8
Thanked 2 times
Combine or No?

is it better to combine CSS properties like padding:5px 10px 10px 5px
or is it better to separate each one?

i never combine just to make it easier find and change values and what not.
i've seen a lot going both ways. but what's the norm?
__________________
Bronze Reseller :
- Pass 61
- Pass 63

dubLeE.com
dubLeE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 5:47 PM   #2 (permalink)
Destroyer of Evil Robots
Excelling Contributor
 
tch3's Avatar
 
Joined in Oct 2003
Lives in Atlanta, GA
760 posts
Gave thanks: 17
Thanked 9 times
For me, it's personal preference. When I want to specify a single value, I break it down into the individual elements.
__________________
clair
http://tch3.com
(dedicated)
tch3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 9:10 PM   #3 (permalink)
Surpass Fan
Seasoned Poster
 
Mykal's Avatar
 
Joined in Feb 2007
Lives in Maine
Hosted on SH110
40 posts
Gave thanks: 3
Thanked 3 times
I think it's a combination of personal preference and byte pinching. I assume less lines and characters equals smaller file size, especially when working with a large CSS file.
__________________

Server: SH110

Listening to:
Mykal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 9:13 PM   #4 (permalink)
Searcher
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,699 posts
Gave thanks: 943
Thanked 806 times
Oooh, smaller file size "for the win" please.
__________________
Follow Surpass on Twitter and Facebook
Check out interesting finds on the Surpass Blog
.... it's coming.


Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 9:25 PM   #5 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
I do this...
padding: 5px 10px 10px 20px;
margin: 0 10px 20px 10px;

Just to make the style.css smaller in size or with less clutter.

1st one is top, 3rd is bottom, 2nd is left, 4th is right.

Last edited by wgm; April 4th, 2007 at 9:26 PM.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 9:44 PM   #6 (permalink)
Surpass Fan
Seasoned Poster
 
Mykal's Avatar
 
Joined in Feb 2007
Lives in Maine
Hosted on SH110
40 posts
Gave thanks: 3
Thanked 3 times
Quote:
Originally Posted by wmmc View Post
I do this...
padding: 5px 10px 10px 20px;
margin: 0 10px 20px 10px;

Just to make the style.css smaller in size or with less clutter.

1st one is top, 3rd is bottom, 2nd is left, 4th is right.
Huh? It goes clockwise starting at the top (top, right, bottom, left).
__________________

Server: SH110

Listening to:
Mykal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 9:48 PM   #7 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
Mykal thats how its done with the editor I use.

Edit: nevermind, your right, I've been up since 3:30am PST, just tested and I am too tired for this stuff.

Last edited by wgm; April 4th, 2007 at 10:00 PM.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 9:57 PM   #8 (permalink)
Surpass Fan
Seasoned Poster
 
Mykal's Avatar
 
Joined in Feb 2007
Lives in Maine
Hosted on SH110
40 posts
Gave thanks: 3
Thanked 3 times
Quote:
Originally Posted by wmmc View Post
Mykal thats how its done with the editor I use.
Which is fine, however it does not change the underlying code that is created using the editor. Just out of curiosity, which editor do you use?
__________________

Server: SH110

Listening to:
Mykal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 4th, 2007, 10:02 PM   #9 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
See my edit above.

By the way, editor I use is HTML-Kit.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On