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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2008
    Posts
    317
    Thanks
    159
    Thanked 0 Times in 0 Posts

    Exclamation Text over navbar button

    In IE 7 the text to my navbar buttons stops the button from being inset when you click over the text. The cursor also changes to the text cursor. Is there a way to get around this?



    Thanks a lot.
    Last edited by cincinnatiboy4867; 03-06-2009 at 12:58 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Try
    Code:
    #vista_toolbar a {/*Copy_of_css.css (line 75)*/
    color:#FFFFFF;
    float:left;
    padding:0 4px 0 3px;
    text-decoration:none;
    cursor:pointer;
    }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Nov 2008
    Posts
    317
    Thanks
    159
    Thanked 0 Times in 0 Posts
    Well that fixed the cursor but it still doesn't inset when you click it like it does in firefox and the IE at my house. For some reason on this computer (XP IE7) it doesn't inset like it does everywhere else.

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Could be the order your CSS is in? It should be Link,Visited,Hover,Active... or LoVeHA.

    ordered and condensed -
    Code:
    #vista_toolbar {
    position: relative;
    overflow: hidden;
    background: url(back3.png) repeat-x;
    font:normal 12px 'Trebuchet MS','Arial';
    }
    #vista_toolbar ul {
    line-height:32px;
    float:left;
    left: 50%;
    position: relative;
    list-style:none;
    padding: 0 10px 0 10px;
    }
    #vista_toolbar li {
    float: left;
    position: relative;
    right: 50%;
    }
    #vista_toolbar a {
    background: url(buttonleft.png) no-repeat left top;
    height: 32px;
    color:#FFF; /* need because it will use default link color */
    float:left;
    padding:0 4px 0 3px; /* left 3 px because of left.png image */ 
    text-decoration:none;
    cursor:pointer;
    }
    #vista_toolbar a span {
    background: url(buttonright.png) no-repeat right top;
    text-align: center;
    height: 32px;
    display: block;
    padding:0 10px 0 10px;
    }
    #vista_toolbar a span img {
    border:3px solid #808080;
    margin:8px 8px 0 0;
    }
    #vista_toolbar a:hover{
    background: url(buttonleft.png) no-repeat left center;
    height: 32px;
    }
    #vista_toolbar a:hover span {
    background: url(buttonright.png) no-repeat right center;
    height: 32px;
    }
    #vista_toolbar a:active{
    background: url(buttonleft.png) no-repeat left bottom;
    height: 32px;
    }
    #vista_toolbar a:active span {
    background:url(buttonright.png) no-repeat right bottom;
    height: 32px;
    }
    I didn't try it here locally though...
    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

  • #5
    Regular Coder
    Join Date
    Nov 2008
    Posts
    317
    Thanks
    159
    Thanked 0 Times in 0 Posts
    It didn't work

    LINK


  •  

    Posting Permissions

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