/    Sign up×
Community /Pin to ProfileBookmark

referring to css with space

Hi,

I am using wordpress and one of the class is called “jScrollPaneContainer jScrollPaneScrollable”

In the css file how can I access class that contain spaces?

I mean after all the space has a meaning there, it mean direct son of.

What is t he meaning of spaces in the name of a class?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyNov 30.2011 — It's not a class with a space in it's name. Its a way of applying more than one class to an element. In this case, the element uses both the CSS classes "jScrollPaneContainer" and "jScrollPaneScrollable" for styling.
Copy linkTweet thisAlerts:
@Michael_GNov 30.2011 — In Cascading Style Sheets (CSS) you can apply the same style to multiple elements which is very handy when doing work on a large website or web application. Also you can designate that a certain style for an element only appears in a DIV with a specific ID.

For example, you have a div with the id = "firstdiv", and you want any H1 or H2 tags that appear in that div to be bold font, but only in that DIV, you would do something like the following:

<style type="text/css">

#firstdiv {

display:block;

width:300px;

}

#firstdiv h1 {

font-weight:bold;

}

#firstdiv h2 {

font-weight:bold;

}

</style>

Interpreted into english, this means ANY H1 and H2 tag within a div with id FIRSTDIV should be a bold font. But H1 and H2 not in a div FIRSTDIV are not formatted.

You can do this to HTML tags and also applying a style to other DIVs or SPANs, CSS has a very flexible interpretation in this manner.

Hope this helps.

Michael G. Workman

[email][email protected][/email]

http://www.usbid.com

http://ic.locate-ic.com
×

Success!

Help @programAngel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...