Solved

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

Posted on 2012-03-20
3
191 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Divs in Safari 3 39
CSS grid style change 2 33
Table changes size when I click edit 7 24
How to change pointer icon to hand icon on mouseover 2 17
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…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

919 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now