Solved

How to use "scope" with jquery-ui css scope defined

Posted on 2011-02-18
3
1,108 Views
Last Modified: 2012-05-11
The jquery-ui themeroller generated this:

"This field allows you to specify a CSS scope to limit your theme to a particular portion of a page. This is helpful when using multiple themes on a page. If you don't provide a CSS scope, your theme will apply to all UI elements on a page."

Since I need to have the jquery css ONLY apply to a portion of my page, i specified a scope of "test."  So, the css looks like:

test .ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.2em; }
test .ui-widget .ui-widget { font-size: 1em; }
test .ui-widget-content a { color: #222222; }
test .ui-widget-header a { color: #e6e6e6; }
 
Now, "test" is not a dom id, or a css class (otherwise it would have to have a # or . before it!  So now, how do I specify the "scope" of "test."  I've tried <div id="test">, <div class="test">, I even tried <div scope="test">.   Nothing seems to get the text,  or widgets within the <div> to take on the css.  

Any ideas, would be greatly appreciated,
Greg
0
Comment
Question by:glkubs
3 Comments
 
LVL 51

Accepted Solution

by:
HainKurt earned 250 total points
Comment Utility
try

<test>Hain Kurt</test>
0
 

Author Closing Comment

by:glkubs
Comment Utility
I sure could not find that on w3schools.com.  Thanks!
0
 
LVL 14

Expert Comment

by:Designbyonyx
Comment Utility
It's worth mentioning that <test> is not a valid tag.  What you want to do is create a div with a class name or id of "test", and then in the ThemeRoller, you specify a scope of .test or #test (respectively).
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

728 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

12 Experts available now in Live!

Get 1:1 Help Now