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 6 of 6
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hover border-bottom Property for TEXT ONLY?

    Is there a way to use the border-bottom Property on linked text on my website on hover, WITHOUT it affecting animated rollover .gif's?


    I can't seem to figure it out.
    Last edited by freshfan; 04-02-2011 at 02:58 AM.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,672
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello freshfan,
    I'm sure there is. A better question would be why it's affecting your animated .gifs and then give us some code so we could see how you're applying your border.

    When posting code in the forum, please use the code tags, [code][/code] - available with the # button in the post edit window.
    This will wrap your code in a scroll box which greatly helps the readability of your post.

    A link to the test site would even be better.
    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
    New Coder
    Join Date
    Oct 2009
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, it's affecting my rollover gif's.

    Is there a place to put "border bottom" besides under "hover" if I want it to appear on rollover?

  • #4
    New Coder
    Join Date
    Oct 2009
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anyone?

  • #5
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts
    Excavator asked you to post code, so why are you asking anyone?

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,672
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by freshfan View Post
    Sorry, it's affecting my rollover gif's.

    Is there a place to put "border bottom" besides under "hover" if I want it to appear on rollover?
    If you put a border on an anchor and it also affects other elements then you're just not being specific enough. Give that anchor an id or class and try again.
    See about specificity here.
    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


  •  

    Posting Permissions

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