www.webdeveloper.com
Results 1 to 4 of 4

Thread: Can I put a CSS within a CSS?

  1. #1
    Join Date
    Feb 2013
    Posts
    5

    Can I put a CSS within a CSS?

    I am working on a site and I'm curios on the functionality of cascade style sheets. I have an image and I want other elements to appear on it when the user hovers.
    e.g. A plain image, when user hovers over it I want to display two buttons on it
    Code:
    .image
        {
        background image: url;
        }
     
    .image:hover
        {
        .buttonNext
            {
            backgroun-image: url;
            margin: 5px;
            }
     
        .buttonPrevious
            {
            backgroun-image: url;
            margin: 10px;
            }
        }
    Is this even possible or should I look into CSS nesting and grouping

  2. #2
    Join Date
    Mar 2011
    Posts
    1,109
    Go read this article on CSS Selectors, and keep re-reading it until it sinks in. Somebody else here suggested it once, and I found it to be a great resource.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    May 2013
    Location
    Surendranagar Gujarat India
    Posts
    55
    Hi

    Eli_Skywalker

    You can see that CSS IMAGE Example..
    That can be usefull for you..

    Gaurav Pandya
    Software Engineer
    Insight Softech
    www.insightsoftech.com

  4. #4
    Join Date
    May 2013
    Posts
    42
    Quote Originally Posted by rtrethewey View Post
    Go read this article on CSS Selectors, and keep re-reading it until it sinks in. Somebody else here suggested it once, and I found it to be a great resource.
    Thanks for providing the useful information which I am looking for.

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



Recent Articles