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, 02:50 PM
Ducani's Avatar
Administrator
 
Join Date: Sep 2004
Posts: 220
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, 05:21 PM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 685
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, 03: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, 05: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, 04: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, 03:54 AM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 685
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, 06:40 PM
Junior Member
 
Join Date: Mar 2008
Posts: 25
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
  #8 (permalink)  
Old 12-22-2008, 11:30 AM
Member
 
Join Date: Dec 2008
Posts: 44
Default

guys i am looking for css tutorial ....anybody have any suggestion .....
__________________
sticker printing | folder printing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-22-2009, 12:51 PM
Junior Member
 
Join Date: Apr 2009
Posts: 1
Default

You should google and you will find plenty of them

Last edited by fazthegreat : 04-22-2009 at 12:53 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-07-2009, 07:06 AM
Junior Member
 
Join Date: May 2009
Location: http://www.underlink.co.uk
Posts: 24
Default

i do like the shorthand if you have alot of element to deal with and it does save filesize however if your like me and you use dreamweaver to cheat with code cuz your lazy it wont give you suggestions so you have to type the whole damn thing
__________________
UnderLink UK Site Design & Developemnt UnderLink
Cheap Affordable Web Design CMS, Logo Design and more...
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:28 PM.


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