Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Question background image on link not showing?!

    link background image not working?!

    am I doing something wrong???

    css
    Code:
    #rightcol .sideimage1 a{
    	background-image: url(/images/button_sprite.jpg);
    	background-position: 0px 0px;
    	width:224px;
    	height:100px;
    }
    #rightcol .sideimage1 a:hover{
    	background-position: 0px 0px;
    }
    #rightcol .sideimage2 a{
    	background-image: url(/images/button_sprite.jpg);
    	background-position: -224px 0px;
    	width:224px;
    	height:100px;
    	display:block;
    	float:left;
    }
    #rightcol .sideimage2 a:hover{
    	background-position: -224px 0px;
    }
    #rightcol .sideimage3 a{
    	background-image: url(/images/button_sprite.jpg);
    	background-position: -448px 0px;
    	width:224px;
    	height:100px;
    }
    #rightcol .sideimage3 a:hover{
    	background-position: -4480px 0px;
    }
    html
    Code:
    <div class="yui-u" id="rightcol">
        				<a href="#" class="sideimage1">link</a>
        				<a href="#" class="sideimage2">link</a>
        				<a href="#" class="sideimage3">link</a>
        			</div>

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hmm, I see a possible 2 state background image and buttons that are using both the normal and hover positions.
    Looks right here in both FF and IE8.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts
    sorted!

    thanks


  •  

    Posting Permissions

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