www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-07-2009, 09:52 AM
    ketanco ketanco is offline
    Registered User
     
    Join Date: May 2008
    Posts: 209
    menu button to be another color when active

    Hello, for the site robotbuy.com left side blue menu buttons, I want the active button to remain as red. Right now only if you hover the mouse it becomes red.

    For the .menu active I tried pasting the

    background:url('http://www.robotbuy.com/pictures/button2.png') no-repeat 0 0;

    which is the red button, but it doesnt work. Please advice.
    Here is the css:
    Code:
    .menu{
    width:100px;
    }
    .menu a{
    display:block;
    width:175px;
    height:48px;
    valign: center;
    background:url('http://www.robotbuy.com/pictures/button1.png') no-repeat 0 0;
    line-height:30px;
    font-family:Arial;
    font-size:12px;
    font-weight: bold;
    color:black;
    text-align:center;
    text-decoration:none; margin-left:0px; margin-right:0px; margin-top:-17px; margin-bottom:0px;
    }
    .menu a:visited{
    color:#white;
    
    }
    .menu a:hover{
    color:white;
    background:url('http://www.robotbuy.com/pictures/button2.png') no-repeat 0 0;
    }
    
    .menu a:active
    {
    
    color:#ffffff;
    }
    __________________
    http://www.roboticmagazine.com
    Reply With Quote
      #2  
    Old 11-12-2009, 07:09 AM
    mitya mitya is offline
    Registered User
     
    Join Date: Oct 2003
    Location: Nottingham
    Posts: 666
    Well in the CSS you posted the only thing set to happen on active is for the text to be white, no mention of the red image.
    Reply With Quote
      #3  
    Old 11-12-2009, 08:15 AM
    Fang's Avatar
    Fang Fang is offline
    Resistance is futile
     
    Join Date: Apr 2003
    Location: Netherlands
    Posts: 17,241
    The active button remains red.
    __________________
    At least 98% of internet users' DNA is identical to that of chimpanzees
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 09:01 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.