SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: CSS Shortcut

  1. #1
    SitePoint Evangelist sysice's Avatar
    Join Date
    Oct 2004
    Location
    Hackettstown, NJ
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Shortcut

    Let's say I created an area with an id of "content" that I was going to put some basic html into that I wanted format.

    I could do something like this

    Code:
    #content a { }
    #content p { }
    #content ul { }
    Is there a shorter way to do this like the equivilent to:

    Code:
    #content {
      a {}
      p {}
      ul {}
    }

  2. #2
    Non-Member lostseed's Avatar
    Join Date
    Sep 2005
    Location
    Zurconion Soon!
    Posts
    1,549
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats a really good question, I wonder if there is a way. That would be awesome, maybe someone knows I hope to find out too!

  3. #3
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, there isn't. It would be nice, though.


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
  •