Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Designing > HTML/CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-26-2008, 01:50 PM
Ducani's Avatar
Administrator
 
Join Date: Sep 2004
Posts: 224
Default Tutorial Discussion - CSS Shorthand Properties

This thread is for all comments related to the tutorial
CSS Shorthand Properties

D.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-26-2008, 04:21 PM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 711
Default

I tend to remove carriage returns from my CSS too. Partly for saving file size and also as I find it easier to scan for the chunk of CSS I want to edit.

Ie:
Code:
p {
  font-size: 1em;
  line-height: 1.5em;
  font-weight: bold;
  font-style: italic;
  font-family: serif
  border-width:1px;
  border-weight:solid;
  border-color:#aaaaaa;
}
Would become:
Code:
p {font:1em/1.5em bold italic serif;border:1px solid #aaa}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-22-2008, 02:20 AM
Junior Member
 
Join Date: Jul 2008
Posts: 4
Default

This CSS shorthand property will only work if you're specifying both the font-size and the font-family - omit either and the CSS rule will be completely ignored. Also, if you don't specify the font-weight, font-style, or font-varient then these values will automatically default to a value of normal, so do bear this in mind too.
__________________
how to gain weight data entry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-27-2008, 04:13 AM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default

hi guys where can i find good css and html toturials that really works
__________________
gestetner copier toner Car Leasing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-01-2008, 03:12 AM
Junior Member
 
Join Date: Sep 2008
Location: USA
Posts: 4
Send a message via ICQ to !_kerher_! Send a message via Skype™ to !_kerher_!
Default

I'm not trying to be picky or anything, but you have that in the wrong order.
It's : border: 1px solid #000;
__________________
Link Building Packages
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-03-2008, 02:54 AM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 711
Default

Er, that's the way I have it already. We both have it in the same order.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 09-03-2008, 05:40 PM
Junior Member
 
Join Date: Mar 2008
Posts: 19
Default

I have found advantages to both approaches, but have settled on having each rule on its own line, because it's so fast in any decent programmer's editor to move the lines around, or sort them alphabetically. Plus, it's faster to spot the rule that you are looking for.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thread Tools
Display Modes

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

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



All times are GMT -5. The time now is 02:35 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.