Welcome to Dream.In.Code
Become an Expert!

Join 149,521 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,390 people online right now. Registration is fast and FREE... Join Now!




class inside class (CSS)

 
Reply to this topicStart new topic

class inside class (CSS), Wanting to style a class into a specific table

Joshnathan
27 May, 2007 - 01:59 AM
Post #1

New D.I.C Head
*

Joined: 25 May, 2007
Posts: 18


My Contributions
I have a table, generated with a CMS, which has a specific class "contentpane-contact".
Inside this table, I have different TD, which also have a different class each. How can I style the class (TD), inside the table of that specific class (contentpane-contact)?

to make it easier to understand what I am trying to do is this:
.contentpane-contact -> sectiontableentry2 {
color:... blabla
}

This post has been edited by Joshnathan: 27 May, 2007 - 02:01 AM
User is offlineProfile CardPM
+Quote Post

girasquid
RE: Class Inside Class (CSS)
27 May, 2007 - 04:04 PM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,294



Thanked: 18 times
Dream Kudos: 725
My Contributions
What you'll want to do is something like this:
CODE

.outerClassName .innerClassName {
color: blue;
}

Which would properly apply itself to something like this:
CODE

<p class='outerClassName'>Foo Bar Baz <span class='innerClassName'>Bat</span> FooBar</p>

...In the case above, the word 'Bat' would be blue.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 08:29PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month