rejetto forum

need help with button

0 Members and 1 Guest are viewing this topic.

Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
Can someone please tell me how i can get this button to work. It works well with firefox but not with ie7

<div class="agreebutton">
 <a href="/Files">
 <button style="width:300px;height:30px;
border-top-color:#FFAD5B;
border-left-color:#FFAD5B;
border-right-color:#FFAD5B;
border-bottom-color:#FFAD5B;
background-color:#003F87";><b><FONT SIZE="-1""font color="#FFAD5B">Yes, I Agree To The Above Terms</FONT><b>
</button></a>

thanks in advance


Offline FRENCH CAN CAN

  • Tireless poster
  • ****
    • Posts: 681
    • View Profile
I have the correct code, goes well with IE7 + FX3.

<body>

<div class="agreebutton">
 <a href="/Files">
 <button style="width:300px;height:30px;
border-top-color:#FFAD5B;
border-left-color:#FFAD5B;
border-right-color:#FFAD5B;
border-bottom-color:#FFAD5B;
background-color:#003F87";><b><FONT SIZE="-1""font color=#FFAD5B">Yes, I Agree To The Above Terms</FONT></b>
</button></a></div>

</body>


Offline Wasserfloh

  • Occasional poster
  • *
    • Posts: 81
    • View Profile
I have the correct code, goes well with IE7 + FX3.
No

... background-color:#003F87;"><b><font size="-1" color="#FFAD5B"> ...

Or better:
<button style=" ... background-color:#003F87; color:#FFAD5B; font-size:0.8em; font-weight:bold;">Yes, I Agree To The Above Terms</button>
« Last Edit: August 14, 2008, 10:51:08 AM by Wasserfloh »



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
he pointed out this part: "font color=#FFAD5B"
quotes included
that is actually invalid, for both html and xhtml
and merely fixed the syntax.
then suggested an alternative way, by using css


Offline crazyjust

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
problem resolved. I used this and it worked. i wasnt letting active x on ie allow it either before.

Code: [Select]
<INPUT type=button
value="Yes, I Agree To The Above Terms"
style="background-color:#003F87; color:#FFAD5B;"
onMouseOver="this.style.bgColor = '#003F87';"
onMouseOut="this.style.bgColor = '#003F87';"
onClick="self.location='/files/';">
« Last Edit: August 14, 2008, 10:20:53 PM by crazyjust »