Over riding an old CSS style with a new one

Hi there,
I'm still learning how to deal with CSS and I'm having this problem. I'm redesigning an existing site and trying to override the old styles with new ones. When I select the text I want to change, I try to apply a new style, and it doesn't work. It sometimes applies part of the style. I tried to change the order of the styles in the 'all rules' panel, but that didn't work. The old rule is #content a:hover, a:active and the new one (higher up the list) is #named anchor. The problem is that the old one looks like a link to nowhere (there's a background colour). I know there must be a simple solution here (besides cutting and pasting text that looks right into the different spot and rewriting the text like I've been doing-AHHHHH!). I don't want to change the properties of that rule because it works in other places thorughout the website. Can I somehow clear all the old style info off these headings and then reapply the new style? Help!

CSS Pseudo-classes - Link States
You need to define a set of link states (link, visited, hover, active) for each ID or class name required.  Let's say you want to have red links in your #header and white links in your #footer.
CSS:
#header a {text-decoration:none}
#header a:link {color:red}     /**unvisited**/
#header a:visited {color:gray} /**visited**/
#header a:hover,               /**on mouse over**/
#header a:active,              /**on click**/
#header a:focus                /**on tab key**/
    {text-decoration:underline}
#footer a {text-decoration:none}
#footer a:link {color:white}
#footer a:visited {color:yellow}
#footer a:hover,
#footer a:active,
#footer a:focus 
    {text-decoration:underline}
HTML:
<div id="header">
<a href="some-link.html">Link in the header</a> |
<a href="some-link.html">Link in the header</a> |
<a href="some-link.html">Link in the header</a> |
</div>
<div  id="footer">
<a href="some-link.html">Footer link</a> |
<a href="some-link.html">Footer link</a> |
<a href="some-link.html">Footer link</a> |
</div>
For more on CSS pseudo classes:
http://www.w3schools.com/css/css_pseudo_classes.asp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Replacing old hard drive with a new one. HP ENVY DV7 7230us laptop

    I am trying to replace my old hard drive with a new one. For some reason it won't do it. I want to perform a clean install with the recovery disks. It seems the only way I can do this is to clone the old one with the new. I have attempted several times and wasted a lot of time trying to use my new drive. Is HP preventing me from doing this for some reason? Is there a work around for this?

    Do you know anything about this? Now I am having problems installing the original win8 operating system, (purchased the 3 disk set) on the original hard drive, Toshiba 750g.. It installs up to updating updates but hangs at 13%. The reinstall hasn't even finished. Getting very frustrated. Your assistance is very appreciated.

  • Best way to Replace OLD Time Capsule with a new one

    What is the best way to replace an old Time capsule with a new Time Capsule in an existing wireless network?

    IMHO..
    Start over..
    Put the new TC in place and configure .. completely differently to the old one. That means you have to go around and reset everything to connect if you use wireless.. and you should forget all the old configuration beforehand.
    You can of course try and slip it in using identical names and identical settings.. but the computers are not fooled.. the BSSID is different. And other issues tend to arise.
    Use naming that is short, no spaces and pure alphanumeric.
    See Pondini post C9 here.
    http://pondini.org/TM/Troubleshooting.html
    It may take more time to start with.. depending on how many devices you have.. but in the end, you can get much less problems out the other side.. which are extraordinarily hard to diagnose and fix..
    But that is IMHO.. others are welcome to dispute that and may find a full swap using old settings copied to a file and copied back to the new TC work fine.
    There are any number of posts around about doing just that.
    I will post one if I see it..
    I do confess to being a bit of a purist when it comes to this stuff.. but then I used to do computer support and trying to fix the messes people got themselves into .. inevitably they tried to cut corners.. instead of doing the setup from scratch.

  • If I replace my old Apple ID with a new one, will I get my purchased apps?

    If I replace my old Apple ID with a new Apple ID, will I get back all my purchased apps in app store?

    No. The purchase history is tied to your iTunes store account.
    Maybe there is a different way to achieve your objective. Why do you think you need to change your account name?
    Message was edited by: red555

  • I replaced an old airport extreme with a new one.  None of my wifi devices will connect - always say incorrect password.  Reinstalled old device, works fine.  Any ideas?

    I have a 5 year old airport extreme.  I bought a new one to upgrade for better range.  I connected the new one to the internet with a few problems, but a phone call to my internet provider resolved them.  With an ethernet cable from the new airport extreme to my iMac, I'm connected.  However, none of my wifi devices will connect.  They see the network, but it either says "incorrect password" if I'm trying a new network name and password, or it repeatedly asks me to reenter the password if I use the old ones.  I reinstalled my old airport extreme and everything works fine.  I'm about ready to box up the new one and return it.  Any ideas?

    It is extremely difficult to fix these issues.. remotely.
    If none of your wifi devices work.. that does sound unusual..
    Have another try.. This time deal with the COMPUTER only.. leave everything else turned off.
    Unplug the Extreme from the router.. reset it to factory.. do this full setup.
    Unplug power from the Extreme.. hold in the reset button.. plug in the extreme to power and keep holding in the reset.. 10sec or so the front led should flash rapidly.. release the reset and wait a couple of min.
    Now in the computer does the Airport extreme show up under wifi as new device??
    Please make sure IPv6 is set to link local only to go further but it should work no matter what the settings are.
    No luck clear out all the old wireless names from the computer.. reboot the computer and try again to scan for new wireless devices.
    Hold the reset and try again.. it must appear in the wifi to be setup.
    No sign of it the unit is faulty and can be returned.

  • Why does my iPhone (4S) and iPad (The New iPad) keep asking me for my Apple ID password after I created an iCloud account and merged my old Apple ID with a new one?

    I got an iPad2 for Christmas and went to the Apple Store to have them transfer over my contacts from my iPhone4S to the iPad2. They said they had to do it over iCloud and help me set up an iCloud account. But I had an old Apple ID (one without an "@icloud.com" name or other email address attached to it). When they did that it basically screwed up my whole Apple ID account. Now, both my iPhone4S and iPad2 randomly prompt me to enter my Apple ID password for my old Apple ID!, which they said does not exist anymore. So confused...please advise.

    The email you should NOT have published, is your iCloud, not Apple ID
    You Apple ID is a valid email address
    This is a user forum, not Apple customer service.
    I gather the security question did not work.
    If you have an email address, why not use that?
    If this fails you have to contact support and schedule help.

  • Can we replace an old serial board with a new one found available on your site?

    So.. we are using Lookout 5.0 to operate a plant, and we have a PCI SERIAL RS 232/485 ISOLATED 2 PORTS board, with the code 185726C-02 printed on that board, which is used to comunicate with some solenoids modules. I search your site for a replacement for that board, and I found the PCI-8433/2 board which seems to be compatible. Question: is it ok to use this board instead the old one with Lookout 5 if we update the NI SERIAL drivers from your site?
    Thanks in advance ..
    Eddie Zack

    Make sure the site folder created by iWeb is named exactly the same as the site folder currently on the server.
    OT

  • I need help merging an old Mozilla Firefox with a new one, How do I do it?

    Can Firefox merge my two Mozilla Firefox accounts?
    Between 2010 and 2012 I created to separate Mozilla Firefox accounts. The first was under Teri Muckleroy with the Username savdXGodsgrace and email address (Email removed by mod) that has been changed as of 05/30/2012 to (Email removed by mod) and the second account that I created for my Firefox Personas that is under the name Teri Hinton with the Username CountryGirlsHeartAlways and email address (Email removed by mod) that as of 05/30/2012 has been changed to (Email removed by mod) so what I want to know is could Mozilla Firefox help me merge the two accounts into one. The only info I want to use is,
    Username: CountryGirlsHeartAlways
    Email address: (Email removed by mod)
    I'd like Mozilla Firefox to send me an email with a link to enter my password or send me a temporary password once the merge of both accounts has been completed or if a merge is not possible a solution that will make it possible for me to merge the two accounts myself.

    What do you mean with a Mozilla Firefox account? Note also that a moderator already removed your e-mail details to protect you from getting spam. Please don't post private information in this public forum, for your own safety. Thanks!

  • Can i exchange my old Macbook Pro with a new one

    I have the 2010 Macbook Pro, but i would like to exchange it with the Macbook Pro Retina 13''. Is it possible.
    ASAP

    Ramzy01 wrote:
    I have the 2010 Macbook Pro, but i would like to exchange it with the Macbook Pro Retina 13''. Is it possible.
    If by exchange you mean Trade-In...
    Apple does not do Trade ins...
    See Apple's ‘Buy Back’ program here... But you may prefer to sell it privately... 
    http://www.apple.com/recycling/gift-card/

  • I replaced an old Itouch with a new one, and now Itunes will not recognize the new one.

    I recently replaced my old I Touch with a new one.  Now I cannot get Itunes to recognize it in my library. 

    See:
    iOS: Device not recognized in iTunes for Windows
    You need iTunes 10.7 or later on the computer.

  • Can I use the old power supply with the new unit?

    I have a second generation Apple TV. When I install the new unit next week can I use the old power supply with the new one and the new power supply with the old one? This would save some messing with cords behind the units.

    Hello:
    I would definitely not try that.....  The power supplies may be compatible - or may not be compatible.  I think messing with cables is a small price to pay for not potentially frying a new device.
    Barry

  • I am going to replace my 3 year old MacBook Pro with a new MacBook Pro Retina display machine.  I have been told by Apple that I can use the Migration Assistant ON MY WIRELESS NETWORK (no cables) to transfer data... I've read this can take AGES.. True?

    I am planning to replace my 3+ year old MacBook Pro with a new MacBook Pro, Retina display... I have been told by "chat" on the Apple site that I can transfer my data wirelessly... on my network.. Is is a good option?  I don't want to invest in cables if I can help it... since the old machine has firewire and the new one has thunderbolt!  Will the wireless transfer take forever... as in 30-50 hours???  I've been hearing these horror stories...

    Ralph Landry1 wrote:
    Recently did one MacBook Pro to another for my daughter...almost full 500 GB HD estimate wireless was 48 hours, wired took a little over an hour.
    Wow, shocking in comparison.  You have the patience of a Saint ! 

  • Why cant I see my CSS styles in the new Admin Editor?

    Why cant I see my CSS styles in the new Admin Editor?

    Apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I changed my provider in the icloudwindow appears the old apple id. with the new apple id, which is working, will not accept. what i have to do?

    hi, i changed my provider in the icloudwindow appears the old apple id. with the new apple id, which is working, will not accept. what i have to do?

    Actually you always use ethernet..
    MBA does not come with ethernet port.. but apple sells both a cheap usb to ethernet and a much more expensive and much faster thunderbolt to ethernet adapter. With ethernet to eliminite this silly situation of setting up wireless over wireless, so if you make any change you instantly drops you off the network. Like cartoons of people sawing off the branch they are sitting on.
    But you can reset.. no reset will do anything at all to the material on the hard disk. You must deliberately erase it.
    Read the info because you may only need to do a soft reset. That is hold the reset for 1sec (2-3sec is fine)  as long as you don't hold it for a full reset.
    http://support.apple.com/kb/ht3728
    Even a full factory reset will not harm your files in any way, (or any further!!)
    I am "concerned" that you have no backup to vital files on your TC. That is not wise. TC are no more immune to failure than any other hard disk.. (actually latest ones use the cheapest green WD drives money can buy) and keeping files in only one location is a receipe for disaster. An external drive is much more accessible.. cheaper and tend to be more reliable. There are too many things to break in the TC.. it is designed as a backup target for TM. Not a file store.

  • How can I recover my old account with a new one?

    Hi, my hotmail account it was hacked, I can't have acces to my adobe account anymore.
    How can I get acces to my old account with a new Adobe ID?
    I'm already subscribed to creative cloud and I can't have acces to my account and upgrade my products.
    what can I do?
    Thanks

    Thanks Romshina
    I read the link you send me and thanks, but the thing is that I still can't get into my Adobe Id, because when I try they ask me to reset my password in an email they will send me to my old account and there is the problem, because I don't have acces to that old acount, [email protected]
    now this is my new email, because the las one it was hacked and I just can't get back to it.
    So I would like to have access to my account and update this new email account, to have acces to my CC account.
    Thanks
    Date: Fri, 27 Dec 2013 06:51:15 -0800
    From: [email protected]
    To: <Removed by Moderator>
    Subject: Re: How can I recover my old account with a new one? How can I recover my old account with a new one?
        Re: How can I recover my old account with a new one?
        created by Romsinha in Adobe Creative Cloud - View the full discussion
    Hi Guillermo Castellanos,
    Please refer the knowledge base article: http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sig n-faq.html.
    Regards,
    Romit Sinha
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5959347#5959347
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: How can I recover my old account with a new one?
    To unsubscribe from this thread, please visit the message page at Re: How can I recover my old account with a new one?. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe Creative Cloud at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

Maybe you are looking for