473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

link works on firefox but not on explorer

29
this link works on firefox but not on explorer help please cant seem to see whats wrong with it

Expand|Select|Wrap|Line Numbers
  1.      <li>
  2.         <a href="resume.html">
  3.     <button class="rounded">
  4.       <span>Contact</span>
  5.     </button>
  6.     </a>
  7. </li>
and this is the CSS

Expand|Select|Wrap|Line Numbers
  1. button {
  2. border: 0 none;
  3. cursor: pointer;
  4. font-weight: bold;
  5. padding: 0 15px 0 0;
  6. text-align: center;
  7. height: 30px;
  8. line-height: 30px;
  9. width: 100px;
  10.  
  11.  
  12. }
  13.  
  14. button.rounded {
  15. background: transparent url( btn_right.png ) no-repeat scroll right top;
  16. clear: left;
  17. font-size: 0.8em;
  18. }
  19.  
  20. button span {
  21. display: block;
  22. padding: 0 0 0 15px;
  23. position: relative;
  24. white-space: nowrap;
  25. height: 30px;
  26.  
  27. line-height: 30px;
  28.  
  29. }
  30.  
  31. button.rounded span {
  32. background: transparent url( btn_left.png ) no-repeat scroll left top;
  33. color: #FFFFFF;
  34. }
  35.  
  36. button.rounded:hover {
  37. background-position: 100% -30px;
  38. }
  39.  
  40. button.rounded:hover span {
  41. background-position: 0% -30px;
  42. }
  43.  
  44. button::-moz-focus-inner {
  45. border: none;
  46. }
  47.  
  48.  
  49. ul{
  50. list-style:none;
  51.  
  52. }
  53.  
  54. li{
  55.  
  56. display:inline;
  57.  
  58. }
  59.  
  60.  
  61.  
  62. a{
  63. text-decoration:none}
May 10 '10 #1
4 1982
drhowarddrfine
7,435 Expert 4TB
<button> is a form element and can't be used as a linked element. This may be working in Firefox because it might be taking it as a custom element as in XHTML while IE does not understand XHTML and fails.
May 10 '10 #2
lisa007
29
@drhowarddrfine
how do i change cz now evrytime i delete the button name on the css all the effects goes away like

Expand|Select|Wrap|Line Numbers
  1. button.rounded {
  2. background: transparent url( btn_right.png ) no-repeat scroll right top;
  3. clear: left;
  4. font-size: 0.8em;
  5. }
if i delet the button the effects is erased
May 10 '10 #3
drhowarddrfine
7,435 Expert 4TB
Of course removing the button removes the button and everything that goes with it. You should apply all that styling to the <a> itself and/or the <li> and you can accomplish the same thing.
May 10 '10 #4
lisa007
29
i tried i tried and i tried i still couldnt get the same effect as with the button i tried using the <a> like u said bt the effect still wasnt the same i replace button on the css with the <a> and many other ways bt still got nothing

i used this html
Expand|Select|Wrap|Line Numbers
  1. <a href="resume.html" class="rounded">
  2.       <span>Save</span>    </a>
and replaced all the button on the css with the <a> but still could get the same effect
and sometimes it will bring the image but it would be text aligned on the wrong place
May 11 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Alvaro G Vicario | last post by:
I need to dynamically remove the onmouseout attribute from a link in an HTML page. I've written code that uses the removeAttribute() method, believing it's a W3C standard. While it works fine in...
0
by: CKa | last post by:
Hello. I made a helper program for my dad a while ago. The application downloads a file from a webpage and then unzips it using the winzip command line tools. The problem now is that the site...
6
by: goober | last post by:
Ladies & Gentlemen: I have built a form that client-side validates and posts data to a CRM beautifully in Internet Explorer (IE) 6. The problem comes in FireFox (FF) 1.5 when everything works...
4
by: Dan Pearce | last post by:
Processing some text from an external text file into a web page. If I use this: <? $s = file_get_contents('text.txt'); $search = array("@\r\n@si"); $replace = array('</br>'); echo...
6
by: laredotornado | last post by:
Hi, On the latest version of PC Firefox, I am noticing some strange behavior. If you look at this page http://remanresource.com/home.php and click on the "View Demo" link towards the...
3
by: töff | last post by:
On my site http://www.sjcga.com I have a javascript-generated navigation menu in the top right corner. The menu works great in IE and Opera ... but in FireFox, on the 1st click, the menu jumps...
1
by: srinivasreddypn | last post by:
Hello everybody, my css code for links in html page is a:link { color: #EC6F84; } a:visited
3
by: PEJO | last post by:
I'm not much of a JS programmer so I used the the standard Macromedia swap image function for a disjointed rollover..which works fine.. no problem swapping the image with that code.... but when...
3
by: djmanfros | last post by:
Hello! I've an XML like this: <XML id=SlideShowData> <SlideShowData> <SLIDES> <SLIDE FileName="filename1.jpg" Caption="descrizione1"/> <SLIDE FileName="filename2.jpg"...
3
by: JosM | last post by:
Hello, I've made a macro (see in jos_xmlHTM.htm) in Words to change a XML file (josxml.xml) and save it as a new file (josxml2.xml). In words everything will be ok, it works. When i make a htm...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.