Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Aug 2003
    Posts
    194
    Member #
    2782
    I usually put my <style> tag in the <head> to give my links rollover properties throughout the page. For a new site I am working on, the page has 2 tones, which is creating problems for the rollovers though. The initial <style> tag is set display light gray links with white hover effects which shows great on the dark background. However, for the content with a white background, I would like it to be the opposite. How can I differentiate between the rollover properties to look one way on the dark background, and another way on the white background?

    Thanks in advance for your assistance.

  2.  

  3. #2
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    You need to specify a new rule for the black links, and provide the white containers. Example:

    HTML Code:
    <p>Some text here, with a <a href="">link</a> here. This background should be the dark one.</p>
    
    <div id="content">
    <p>Suddenly a white background appears, with a <a href="">link</a> here..</p>
    </div>
    Code:
    a{color:#fff}
    #content a{color: #000}
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  4. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    194
    Member #
    2782
    that worked.... thanks!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:51 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com