Solved

CSS class overrides applied class

Posted on 2015-01-20
6
73 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 83

Accepted Solution

by:
Dave Baldwin earned 500 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 83

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

730 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