Buttons using CSS does not properly

I use Dreamweaver CS4.

I can't properly using CSS to buttons.

The buttons are supposed to have a border of red around them when it is idle (a: link).

Hovering over the key leads to change his appearance (this works).

By clicking on the button works.

To do this, then click on the BACK arrow.

Buttons have red border.

I tried with FireFox, IE 6, IE 7 and Safari. They do the same thing.

You can see it in action at www.justforso.net/buttons.htm

What I am doing wrong?

.....  Thanks for your help

Here is the code:

/ * CSS document * /.
/*
Name of the theme: buttons Test
*/

* {
margin: 0;
padding: 0;
}
{body
fonts: 80% / 1.6 Trebuchet MS, Verdana, Arial, Helvetica, without serif.
color: black;
}
a.example1:link
{
do-size: 14px;
make-weight: bold;
text-decoration: none;
border-style: outset;
border-color: red;
border-width: 5px;
background-color: #FFFFCE;
Width: 125px;
color: Navy;
}
a.example1:hover
{
do-size: 14px;
make-weight: bold;
text-decoration: none;
border-style: inset;
border-color: red;
border-width: 5px;
background-color: #FFFFCE;
Width: 125px;
color: Brown;
}

/ * CSS document * /.

/ * HTML document * /.

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
< title > buttons Test < /title >
< link rel = "stylesheet" href = "buttons.css" type = "text/css" media = "screen" / > "
< / head >

< body >
< p > < / p >
< p > < / p >
" < a href =" http://www.SitePoint.com/ "class ="example1"> beginners < /A > "
" < a href =" http://www.SitePoint.com/ "class ="example1"> < /A > promotion "
" < a href =" http://www.SitePoint.com/ "class ="example1"> Site Point < /A > "
< / body >
< / html >

/ * HTML document * /.

This is because you created styles only to the: link and: hover Pseudo-classes. Your buttons to return to the default state when the link is active (which is clicked) or has been visited. You must assign properties to the: visited and: active Pseudo-classes so.

Another point about your CSS, it is that you are failing to make use of the waterfall. There is no need to repeat values that do not change. I rewrote your CSS, like this:

a.example1
   {
   font-size:14px;
   font-weight:bold;
   text-decoration:none;
   border-width:5px;
   border-color:red;
   background-color: #FFFFCE;
   width:125px;
   color:navy;
   }
a.example1:link, a.example1:visited {
     border-style:outset;
}
a.example1:hover, a.example1:active
   {
   border-style:inset;
   color:maroon;
  }

This applies common rules for the a.example1 base selector and defines substitutions for Pseudo-classes.

Another point. You use an XHTML DOCTYPE. All tag names MUST be valid lowercase. This is false:

 Beginners 

Tags opening and closing must be lowercase.

Tags: Dreamweaver

Similar Questions

  • Toshiba 47L7453DG - CEC does not properly using exernal amplifier

    I bought Toshiba 47L 7453 a few days ago.

    It is connected to the amplifier Onkyo TX-NR535 but CEC does not properly. Volume control works fine but On / Off or stanby does not at all.

    My previous TV Toshiba 42XV635DG was communicated by the CEC with the Onkyo even without any problem.

    The wire connection is HDMI 1.4 certified.
    Maybe the problem is with the firmware of the TV.

    Maybe someone had the same problem.

    Any suggestion?

    Thank you

    Hello

    From my point of few TV and amplifier are connected some CEC (Volume control) functions that work. I think you should check the auto power settings and HDMI CEC standby control system.

    Manual, you will find some important notes:
    http://www.Toshiba-OM.NET/LCD/PDF/English/L7453-424755-English.PDF

    _Page: 11_
    + You can control the basic functions of audio/video devices connected with s TV remote if you connect an HDMI-CEC compatible AV amplifier or playback device. +
    + If several devices are connected, the HDMI CEC control function may not work correctly. +

    _Page: 86 - 87_
    + When the point to activate the HDMI CEC control in the menu of HDMI CEC control configuration is defined on.
    + On, also allocated to individual features will be activated. +
    + When the connected equipment work, HDMI CEC control automatically detects the TV input selection. If the TV is in standby mode, it will be automatically reactivated. +
    + If the TV is off (standby), television will send a message turns off (standby) all devices HDMI CEC control connected to the TV. +

  • Scrolling the page does not properly respond to BlackBerry Curve9360

    Hello friend

    I have developed applications for BlackBerry (JqueryMobile, Phonegap) the application works fine in BlackBerry Torch 9800.

    But once I've installed in BlackBerry Curve9360, scrolling of the page does not properly, that I am not able to view the complete list of items and long text.

    Help, please

    I came up with the solution, the problem occurs because BlackBerry Curve 9360 isn't a touchscreen, there fore scroll doesn't work.

    In my applications, I add 2 pages "index.html."

    on the first page, you have to test if the device is not touch and redirect to the second page.

    Do not use the page for "BB Curve" scroll and any other animation like CSS "" - webkit - transform: translate3d "»

    The other js script go without a problem.

    The page "BB Curve" to redesign the html for use with the cursor,
    For example, the menu is smaller, the police is smaller.
    the size of the screen is fixed.
    Dimension height is better indicate a value min eg 300px
    etc...

  • Craigslist 'Reply' and the buttons 'Add images' does not

    Until a few weeks ago, I used Firefox with no problem when browsing and posting Craigslist ads. Recently, the 'Reply' button in the messages does not at all. Nothing happens when I click it. When I write ads, the button 'Add images' does not save when I click it. I had to go back using Internet Explorer when using Craigslist. Help, please! (If it helps, I had to post this question in Internet Explorer, as the button "Question" on the page does not work in Firefox).

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Error message: Shockwave, Flash Player does not properly during playback Slotomania

    Original title: shockwave flash player

    Hi I have problems with some games. Especially slotomania. When I enter the RM of slotomania that flashing message saying that Flash shockwave Player does not properly can give to interrupt or stop options taken but its gone too fast for me to do something. Then the really slow game. Can you help me?

    Hello Marilyn,.

    Thanks for posting your query in the Microsoft Community Forum.

    According the information, you are facing problems to play games online as Slotomania due to the Adobe Shockwave, Flash Player error messages.

    It would be useful that you can answer these questions to help you further.

    1. are you facing problems that when you play online game Slotomania?

    2. using Internet Explorer or another web browser?

    3. what version of the Windows operating system is installed on your computer?

    4. have you made a recent software or hardware changes to the system?

    If you use Internet Explorer, you can see the article and check if it helps to solve the problem.

    The problems of games online using Internet Explorer

    It will be useful.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Graphic drive does not properly.

    Graphics driver does not properly.  Screen will Dim and must restart to resume use.  Occurring more frequently now.  Y at - it a fix for this problem?

    Problem does not occur in safe mode.  Failure seems to occur on any key or the video style.

    Any material support is the manufacturer of the hardware regardless of the operating system that you choose to use.  As it is unlikely that you have a Microsoft video/graphics card - one you have and have you downloaded and installed the latest drivers/software they provide for your particular device?

  • When I turn on my computer a warning appears indicating "delivery manager does not properly.

    DEP original title: data

    When I turn on my computer, a warning appears that says "delivery manager does not properly" and when I click on help and support balloon explanation is that my DEP is not configured correctly.

    Then, after following the instructions and correct the parameters I restart my pc and still the same message appears.

    Hi Olliewoods,

    (1) since when are you facing this problem?

    (2) what is you receive the exact error message?

    An application installed on the computer may be the cause of this problem; I suggest you try the following steps:

    Method 1: Put the computer to boot to determine which application is causing the problem.

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Continue with the remaining steps to pin-point on the third party service.

    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    See the link below for more information on Data Execution Prevention
    Data Execution Prevention: Frequently asked questions

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer
    ---------------------------------------------------------------------------------------------------------
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    I have already updated to the last DC v15.009.20077...

    So I found a way, if I do it just right, it works (with the file, click the "tiny" file and then save as. I made the mistake of first pressing the home much more first. Really not intuitive or easy to use even if... Looks like you have replaced the button "save under" with the "save in the cloud." We use mettle at work, and the cloud of Adobe is irrelevant for me...

  • Edit in Photoshop as greyed out.rebooted several times does not properly, can someone advise?

    Creative could use, recently not able to 'Edit in Photoshop' as grayed out. I uninstalled both and restarted several times now. Still does not properly, can anyone advise?

    Hi sandy,

    Please check the image you try to change, the Images should not miss the Lightroom library.

    Please try and complete the step with a different image.

    Kind regards

    ~ Mohit

  • Safari Web Clip does not properly

    Hello everyone

    I have a problem with safari Web Clip and that is does not properly for almost all pages, as example, I participate in a contest of therapy dbrand/unbox, and I really don't want to open the web page, whenever a new winner is announced, so I created a web clip, but it does not work well When I click the web clip icon he asked the location of the clip and when click on done, the web clip is from a different region and I can't fix.

    Is this some sort of bug or can I fix it myself?

    Web Clip still didn't work if the cut element remains in the exact same on exactly the same site. This is apparently not the case here.

    Dashboard widgets in general, are an old technology that has not been updated in many years.

  • EQUIUM A60: graphic ATI does not properly

    I HAVE AN EQUIUM A60 1 YEAR MESSAGE SUDDENLY CRASH SAID: ATI GRAPHICS CARD DOES NOT PROPERLY.
    CAN'T FIND THE DRIVERS UPDATED ON ATI OR MICROSOFT HELP PLEASE?

    Hello

    Can you tell me when this message appears?
    First of all, you can try to update the graphics driver from Toshiba. It is a first step that you can try.
    Check this page for the driver download.
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp

    Good bye

  • fan does not properly

    Does not properly on the laptop

    Sometimes it is just dust, animal hair etc. blocking the fan. Take a can of compressed air and blow all the ports/vents/opening very carefully to see if any change.

  • Setup.exe does not properly

    I'm trying to upgrade to Windows 7, and at one point in the configuration of several programs are listed to be uninstalled, when it gets to the Realtek USB 2.0 card reader a pop window that says setup.exe does not properly.  Cannot uninstall in Control Panel either. Also tried disabling antivirus and firewall as a suggested site. Is there a way around this kind of Setup Windows 7 allows you to work around this problem

    Repeat: You need upgrades to Windows 7 not Windows updates.
    http://social.answers.Microsoft.com/forums/en-us/w7install/threads

    Please post on the forum for Windows 7 update/install. TaurArian [MVP] 2005-2010 - Update Services

  • COQ2014: COQ2014 AMD/ATI does not properly

    2 messages warn me for "AMD/ATI does not properly" and "search solution AMD Display adapt-ATI Radeon Graphics Cards.  Search for updates, solutions with nothing appear.  I don't know what that precisely uninstall nor where the new material.

    Thank you!

    Dear customer,

    Welcome to the HP consumer's Support Forum!

    Please try and uninstall the graphics driver AMD/ATI to address current from the control panel > programs and features.

    After you have uninstalled the current graphics driver, please try and install the following driver and check:

    Suite software Catalyst:

    http://support.AMD.com/en-us/download/desktop?OS=Windows+7+-+32

    Hope this helps, for other queries in response to the post and feel free to join us again.

    * Click on the star of CONGRATULATIONS on the left to say thank you *.

    Make it easier for others to find solutions by checking a response "Accept as Solution" if it solves your problem.

    Thank you
    GR1
    Although I am an employee of HP, I speak for myself and not for HP

  • My CD door won't open. Is there an eject button because it does not open when I press on it?

    My CD door won't open.  Is there an eject button because it does not open when I press on it?

    Yes, there is.

    Look closely at the front of the CD tray. You should see a small hole, just large enough to insert a paperclip (fixing of paper in North America).

    Apply the necessary pressure to get the drawer open enough to be able to grasp and pull...

Maybe you are looking for

  • Displayed sideways on monitor

    original title: side monitor When you work in Microsoft Publisher, I hit control, alt, DELETE.  Instantly, the display on my monitor screen turned sideways.  Very funny moment in a first time, it's going to be a pain to have to keep my monitor turned

  • trayapp.msi

    I have a problem of comp. and have Dell with trayapp.msi. can anyone help

  • What are the other blackberry except eclipse development environment?

    Hello I want to know what are the other blackberry outside the eclipse development environment? In fact, I'm new on this and I have a lot of problem to make the GUI phase. Are there any other environment where MISTLETOE is easily done?

  • How can I shrink a PDF file without a PDF program?

    I need to send some documents to a company and I scanned the and saved in a PDF format, but I do not have a PDF program.  How can I reduce the size of the PDF file to send by e-mail, please?  Do I need to have a PDF program and if so, is it possible

  • How to choose if a specific item in a combination chart is a bar or a line? Help

    Hi allI use JDeveloper 12 c.I've created a combination chart where I chose the name and FkStore as x-axis and I selected 4 data points (amount, AmountPlanned, margin, MarginPlanned) and I wanted to only two of these elements bar and the other two lin