Guest Posted February 14, 2008 Share Posted February 14, 2008 Hi All I'm trying to truly understand my stylesheets....... I've noticed that IE will not render hovering unless i apply a "onmouseover and onmouseout".... to do this obviously i have to add to my style.css as such .ACbutt { font-family: "Arial",Helvetica,sans-serif; font-size:11px; color: #ffffff; background-color:#0000FF; font-weight: bold; border:1px solid #00355F; padding-left:4px; padding-right:4px; } .ACbuttHover { background-color:#A1B1C0; font-family: "Arial",Helvetica,sans-serif; font-size:11px; color: #ffffff; font-weight: bold; border:1px solid #00355F; padding-left:4px; padding-right:4px; } Code in tpl file <input name="submit" type="submit" value="{TXT_LOGIN}" class="ACbutt" onmouseover="this.className='ACbuttHover'" onmouseout="this.className='ACbutt'" /> Because this is for a few buttons throughout my site, i've decided to give every single button its own style.... My question is,,,,, i have about 15 button styles... is this best practice to do? or is there a simpler way. Keep it in mind that some buttons i'd like to have more padding then others. No buttons have images by the way. Your expertise would be greatly appreciated. Thanks Antz :yeahhh: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.