SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29
  1. #26
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The total cost in file size would be something like .1k for carriage returns unless you have a super long stylesheet.

    I personally use the long method:

    .someclass { font-family: verdana; font-size: .8em; etc...}

    I hate having long pages of code. When doing a stylesheet like you all mentioned it can take up 50-150 lines of code. I find it much cleaner to put it on one line. I do sometimes break it out if I need to read it, but then I simply put it back where it goes. Besides, if you've got a text editor that offers syntax highlighting for CSS, then it's not problem at all.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  2. #27
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with creole -- it's much cleaner to do it with one line.

    Carriage returns just spread it out way too much.
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  3. #28
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll third creoles post.

    I only use more than one line for the "a" attributes of that class. But that's usually it.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  4. #29
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I prefer an approach smilar to duckie's.

    #rightcontent
    {
    background:#003366;
    color:#000;
    position:absolute;
    }

    I find it easier to read a stylesheet scrolling vertically. Doing it the in-line way can make for some pretty long horizontal lines.

    Glish has some good info on workarounds for the IE 5/5.5 box model problems.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •