Results 1 to 3 of 3

Thread: referring to css with space

  1. #1
    Join Date
    Feb 2011

    referring to css with space


    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?

  2. #2
    Join Date
    Mar 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.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Apr 2010
    Cocoa Beach, FL

    CSS Multiple Elements

    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 {

    #firstdiv h1 {

    #firstdiv h2 {

    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
    Last edited by Michael_G; 11-30-2011 at 01:22 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center