Solved

Span inside a class a certain way and other spans to not pick up the attributes.

Posted on 2012-03-20
3
195 Views
Last Modified: 2012-03-20
I have a table in which I have defined in a class (mother) and have span text I want to be a certain way, but I don't want all spans to pick up these attributes.  How would I do this inside the mother class?
0
Comment
Question by:hrhs
[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 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 50 total points
ID: 37744276
give this span a class (childSpan) and css should be

.mother span.childSpan
{
  //what ever needs to come here
}
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37744279
Can you show us some code?

There is a way to do it in CSS, however if IE is one of your target browsers, then you may have problems.
0
 

Author Closing Comment

by:hrhs
ID: 37744389
This works great.  It works in IE as well, although my heading at the top row of my table doesn't work correctly, I'll ask that in a different question.

Thanks,

Dave
0

Featured Post

Industry Leaders: 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

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 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