biggieuk Posted May 20, 2008 Share Posted May 20, 2008 Hi all, I have some CSS code that works correctly in Firefox but not IE. A debug tells me that there are a couple of properties that are unsupported such as: border-spacing 'transparent' My CSS code is here: <style type="text/css"> hr.pme-hr { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; background-color: #FFFFFF; font-family: Verdana; font-size: small; color: #FFFFFF; } table.pme-main { border: 1px solid #0099FF; border-collapse: collapse; border-spacing: 0px; width: 100%; background-color: #FFFFFF; color: #000000; font-family: Verdana; font-size: small; } table.pme-navigation { border: 0px solid #0099FF; border-collapse: collapse; border-spacing: 0px; width: 100%; color: #000000; background-color: #F0EEED; font-family: Verdana; font-size: small; } td.pme-navigation-0, td.pme-navigation-1 { white-space: nowrap; background-color: #F0EEED; } th.pme-header { border: 1px solid #0066FF; padding: 4px; color: #000000; background-color: #A3C1D3; } td.pme-key-0, td.pme-value-0, td.pme-help-0, td.pme-navigation-0, td.pme-cell-0, td.pme-key-1, td.pme-value-1, td.pme-help-0, td.pme-navigation-1, td.pme-cell-1, td.pme-sortinfo, td.pme-filter { border: #004d9c 1px solid; padding: 3px; } td.pme-buttons { text-align: left; color: #FFFFFF; background-color: #F0EEED; } td.pme-message { text-align: center; } td.pme-stats { text-align: right; font-family: Verdana; font-size: small; color: #000000; } .style1 { font-family: Verdana; font-size: small; color: #000000; } </style> Does anybody know how i can change this CSS to be compatiable with IE? Help is greatly appreciated! thanks Quote Link to comment https://forums.phpfreaks.com/topic/106440-css-not-working-in-ie/ Share on other sites More sharing options...
rhodesa Posted May 20, 2008 Share Posted May 20, 2008 border-spacing isn't supported on Windows IE: http://www.w3schools.com/css/css_reference.asp#table But, you are setting it to zero anyways...so just remove the CSS property. If you want a table with no spacing in it, use this: <table cellspacing=0 cellpadding=0> Quote Link to comment https://forums.phpfreaks.com/topic/106440-css-not-working-in-ie/#findComment-545615 Share on other sites More sharing options...
biggieuk Posted May 20, 2008 Author Share Posted May 20, 2008 thanks very much, its looking normal in IE now. Quote Link to comment https://forums.phpfreaks.com/topic/106440-css-not-working-in-ie/#findComment-545991 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.