Support Forums

:hover: working with FF, not working with IE8!!

This is a discussion on :hover: working with FF, not working with IE8!! within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hello there, At the bottom of my userterms.tpl page, I have the following code for my Print and Close this ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 07-12-2010, 07:33 PM   #1
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 16
magicosta is on a distinguished road
Default :hover: working with FF, not working with IE8!!

Hello there,

At the bottom of my userterms.tpl page, I have the following code for my Print and Close this window bottons:

<div align="center"><input type="button" value="{$smarty.const.LANG_PRINT}" onClick="window.print(); return false;" class="imageButton" />  -  <input type="button" value="{$smarty.const.LANG_CLOSE_WINDOW}" onClick="window.close(); return false;" class="imageButton" /></div>

and the following css:

input.imageButton {
background-color: #CCCC99;
color: #003300;
height: 28px;
border: none;
font-weight: bold;
letter-spacing: 0.2em;
margin-top: 45px;
font-size: 14px;
margin-left: 0px;
margin-right: 0px;
}


input.imageButton:hover {
background-color:#999966;
color:#FFFFFF;
height: 28px;
border: none;
font-weight: bold;
letter-spacing: 0.2em;
margin-top: 45px;
font-size: 14px;
margin-left: 0px;
margin-right: 0px;
}


The problem is, it is working with Firefox, the colors change when you put the mouss on, but with ie8 nothing happens and colors don't change.

I am a little bit lost on that one!

Any idea? thank you in advance for your help.
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline   Reply With Quote
Old 07-12-2010, 09:09 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,385
Rep Power: 73
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

This is an age old problem with IE ALL versions although they have progressively gotten slightly better with each version. Chances are if it doesn't work for IE 8, it most likely doesn't work with any prior version either, as each previous version was even less compliant of the standards.

I would recommend that you do a Google search for input buttons in IE to get a definitive answer/solution to your issue.

One thing that may fix it for IE 8 is to give your enclosing div layout by simply adding, style="display: block; margin: 0 auto;" instead of the deprecated "center". this gives the div itself layout (to IE) and the margin declaration will center your div. You probably want to also declare a width and height as well.

Also as an FYI, CSS stands for Cascading Style sheet. Which means it cascades, you don't need to declare all of the same definitions in your hover as they are already inherited (cascaded) from the original declarations in your button. Redeclaring them unnecessarily just adds bloat to your document, slowing down load times, etc.. So only declare the things that are changing when you hover (e.g. color, background). It's cleaner, easier and faster.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 07-13-2010, 03:59 AM   #3
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 16
magicosta is on a distinguished road
Default

Ok Mike, Thanks a lot for you help
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
External.php not working markstanden Technical Support 4 05-15-2010 08:05 AM
Search box not working c4x Technical Support 22 02-20-2009 04:33 AM
usercheckout.php not working manifold Technical Support 3 07-18-2008 03:43 PM
Modules - should be working? John Snyder Technical Support 1 01-25-2007 09:48 AM


All times are GMT -4. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0