Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6553459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:35:04+00:00 2026-05-25T12:35:04+00:00

In firefox the following CSS is only applied to the last div, as its

  • 0

In firefox the following CSS is only applied to the last div, as its the only div with both classes:

.a.b {
color: red;
}

<div class="a"> Stuff A</div>
<div class="b"> Stuff B</div>
<div class="a b"> Stuff A and B</div>

Is this valid CSS? Im just worried as ive never heard of it before.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:35:04+00:00Added an answer on May 25, 2026 at 12:35 pm

    This is valid css. Almost all browsers support multiple class selector except ie6

    Browser support s
    Mac: Safari 4.0 supported
    Mac: Chrome 5.0 supported
    Mac: FireFox 3.6    supported
    Mac: Opera 10   supported
    Win: FireFox 3.6    supported
    Win: Opera 10   supported
    Win: IE6    NOT SUPPORTED
    Win: IE7    supported
    Win: IE8    supported
    

    Source:
    http://www.maxdesign.com.au/articles/multiple-classes/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got two divs, both with the following css: #div-id { width:96%; padding: 10px
Given the following HTML: <div class=required>required only</div> <div class=note>note only</div> <div class=required note>required and
The following CSS works well under firefox but doesn't work under IE browser, Why?
I have the following html/css that is causing problems in Firefox 1.5 and 2,
I am using CSS rounded corners for firefox and I have the following problem
I applied the following CSS transform to an HTML input box. -webkit-transform: scale(.5); When
If you only had to worry about Firefox and Webkit browsers, what CSS would
In Firefox 3 and Google Chrome 8.0 the following works as expected: <style type=text/css>
The following works in firefox: &lt div style=position:absolute;top:0px;margin-top:60px;bottom:0px;width:100%> &lt div id=mainTabContainer dojoType=dijit.layout.TabContainer style=width:100%;height:100%> {%
Consider the following <div style=width:150px;border:50px solid black>Test</div> If this is output onto a page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.