Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
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... …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

746 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

9 Experts available now in Live!

Get 1:1 Help Now