SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jan 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Combine CSS classes in same tag?

    Does anyone know how to combine CSS classes for an element in the same tag WITHOUT using an additional <span> tag? I know I've read about it and seen this done, but now I forget and can't find where I read it.

    For example:

    <p class="someclass"> Hello </p>

    I want to add a 2nd class
    without doing:

    <span class="another">
    <p class="someclass"> Hello </p>
    </span>

    I saw a tip once that combined classes in one tag, but I can't remember the proper syntax.

    Thanks.

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If this is going to be a class that you will use often, just create a new class.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Member
    Join Date
    Jan 2002
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile I figured it out

    I figured out how to combine them.

    Thanks anyway.
    nd243

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mind posting the answer here? That way others who have the same question can find their answer from your hard work.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •