#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Location
    New York
    Posts
    1
    Rep Power
    0

    Adding Different Border colour on mousehover


    I have tried adding the code provide by user c444l

    EXAMPLE:

    Code:
    .poster img {
    	width: 165px;
    	border: 5px solid white ;
    	border-radius: 10px 10px 10px 10px;
    }
    
    .poster: img  hover {
    	border : red dotted 5px ;
    }
    but nothing happens.
    ]can anyone tell me what i`m doing wrong?

    the site is Onchannel.Net - Watch Free Movies Online
    Last edited by Kravvitz; October 1st, 2013 at 05:46 PM. Reason: added [code] tags
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,131
    Rep Power
    4304
    *** Thread split from this old one. ***

    Welcome to DevShed Forums, onchannel.

    It's not working because the selector is incorrect. To better understand CSS2 selectors, I recommend you read these:
    http://css.maxdesign.com.au/selectutorial/
    https://developer.mozilla.org/en-US/...rted/Selectors
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo