?
Solved

CSS class overrides applied class

Posted on 2015-01-20
6
Medium Priority
?
77 Views
Last Modified: 2015-01-20
Here is my html:
<div class="60px-subhead-blue"><b>20<span class="supersize-text-sup">% </span>OFF ANY NEW FURNACE!</b></div>

Open in new window


And here's my css:
.60px-subhead-orange {
	font-size: 60px;
	color: #EB872B;
	line-height: 94%;
}

Open in new window


and here the page, top center box with the gray border:
http://www.dallasplumbing.com/index-winter-2-2014.php

If I apply the style inline it works. Otherwise it won't.
0
Comment
Question by:weknowjack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 38

Expert Comment

by:Tom Beck
ID: 40560322
I see this class="60px-subhead-blue" in the div and .60px-subhead-orange in the css definition. Significant?
0
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 40560328
I don't understand the question.  '60px-subhead-blue' and '60px-subhead-orange' are not the same classes.  In addition, class names are not supposed to start with a number and neither are id names.
0
 

Author Comment

by:weknowjack
ID: 40560330
Sorry. Copied the wrong css. They are both there:
.60px-subhead-orange {
	font-size: 60px;
	color: #EB872B;
	line-height: 94%;
}
.60px-subhead-blue {
	font-size: 60px;
	color: #228EFF;
	line-height: 94%;
}

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:weknowjack
ID: 40560341
I didn't know that about the numbers. I'll switch things around and see if that works. Let you know shortly.
0
 

Author Closing Comment

by:weknowjack
ID: 40560346
Problem was the class structure, as pointed out. Thanks much.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 40560389
You're welcome, glad to help.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question