Solved

style - controls on page

Posted on 2014-02-02
5
253 Views
Last Modified: 2014-02-04
Hello,
If I have 2 grids on a page and add this to the page header
div.RadGrid td.mergedCell
{
    border-bottom: 1px solid #333;
}

How do I only get this to affect the control RadGrid1 but not RadGrid2?
0
Comment
Question by:johnson1
[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
  • 2
  • 2
5 Comments
 
LVL 38

Assisted Solution

by:Tom Beck
Tom Beck earned 250 total points
ID: 39828439
div.RadGrid:nth-of-type(1) td.mergedCell
{
    border-bottom: 1px solid #333;
}

...But it's not supported by IE8 or less.
0
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39829125
if RadGrid1 and RadGrid2 are the IDs of the 2 grids, then use an ID selector, instead of a class selector:

div#RadGrid1 td.mergedCell { border-bottom: 1px solid #333; }

Open in new window

0
 

Author Comment

by:johnson1
ID: 39829821
Hello,
I tried both solutions. It still affects both RadGrid1 and RadGrid2.
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 250 total points
ID: 39829857
Can we see a link to your page?

For my solution to work you must have a unique ID on each of the grids (they are case-sensitive):

id="RadGrid1"
id="RadGrid2"

Double check the source of your page to make sure you have these,
0
 

Author Closing Comment

by:johnson1
ID: 39831832
Thank you.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
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…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

749 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