473,807 Members | 2,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

link works on firefox but not on explorer

29 New Member
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 2005
drhowarddrfine
7,435 Recognized Expert Expert
<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 New Member
@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 Recognized Expert Expert
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 New Member
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
11990
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 Mozilla, it doesn't work as expected in Internet Explorer 6. If I call the method several times, the first execution returns true and the rest return false, so it's apparently doing something. However, the attribute is still there: hovering the...
0
1045
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 has implemented an anti-leach cgi script. I can no longer see the filepath to the file that I'm about to download. I have to click on the link in Internet explorer in order to get the file downloaded (save as does not work). I have used the...
6
1832
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 except the validation. In FF it posts fine to my CRM but with no validation! Here are snippets of my code together after taking out as much as I can for brevity sake.
4
1206
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 preg_replace($search, $replace, $s);
6
2007
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 bottom, you'll notice the first time you click on the link, the link moves to a different place on the page. The second click yields the right behavior. However, it
3
1869
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 to the right and doesn't follow the link. Then on the 2nd click, the link works. I've never seen anything like this, and I can't figure out what's wrong with my code. I get no javascript errors in the FireFox console, and my HTML and CSS have...
1
2311
by: srinivasreddypn | last post by:
Hello everybody, my css code for links in html page is a:link { color: #EC6F84; } a:visited
3
2024
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 I add the following to the onMouseOver to the thumbnail: onMouseOver="Product_Link.href='http://glasstoilets.com/catalog/tank1-p-28.html'; and this to the full size...
3
1364
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" Caption="descrizione2"/> </SLIDES>
3
1082
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 file of it and put the macro in there (see in jos_xmlHTM.htm) it doesn't work. The files jos_xmlHTM.htm and the josxml.xml you can find on: http://www.jmoeskops.nl/josxml.xml http://www.jmoeskops.nl/jos_xmlHTM.htm or in the attachment.
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10112
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.