cloevvold Posted December 3, 2007 Share Posted December 3, 2007 Why dosent this border show up in IE.. It works fine in FF: #top_menu { width : 100%; float : left; height : 0px; line-height : 10px; padding : 0; margin : 0; border-top : 2px solid #950000; } Hope that someone can help me here.. Quote Link to comment https://forums.phpfreaks.com/topic/79917-border-wont-show-up-in-ie/ Share on other sites More sharing options...
phpQuestioner Posted December 3, 2007 Share Posted December 3, 2007 seems to display fine for me, but you need to reformat you css a little bit. your border style isn't exactly w3c css compliant, the way you have it wrote; might be the reason why that was happening. try this and see if it makes a difference: #top_menu { width: 100%; float: left; height: 0px; line-height: 10px; padding: 0; margin: 0; border-top: solid 2px #950000; } Quote Link to comment https://forums.phpfreaks.com/topic/79917-border-wont-show-up-in-ie/#findComment-404829 Share on other sites More sharing options...
cloevvold Posted December 3, 2007 Author Share Posted December 3, 2007 seems to display fine for me, but you need to reformat you css a little bit. your border style isn't exactly w3c css compliant, the way you have it wrote; might be the reason why that was happening. try this and see if it makes a difference: #top_menu { width: 100%; float: left; height: 0px; line-height: 10px; padding: 0; margin: 0; border-top: solid 2px #950000; } No im sorry... It dosent work... Quote Link to comment https://forums.phpfreaks.com/topic/79917-border-wont-show-up-in-ie/#findComment-404864 Share on other sites More sharing options...
phpQuestioner Posted December 3, 2007 Share Posted December 3, 2007 you might want to check the rest of your CSS and your layout design; because I have tested the code in: IE7, IE6, and FFv2.0.0.4 and it displays perfectly in each browser. try this for me and tell me what you get <style type="text/css"> #top_menu { width: 100%; float: left; height: 0px; line-height: 10px; padding: 0; margin: 0; border-top: solid 2px #950000; } </style> <div id="top_menu"></div> Quote Link to comment https://forums.phpfreaks.com/topic/79917-border-wont-show-up-in-ie/#findComment-404875 Share on other sites More sharing options...
cloevvold Posted December 3, 2007 Author Share Posted December 3, 2007 you might want to check the rest of your CSS and your layout design; because I have tested the code in: IE7, IE6, and FFv2.0.0.4 and it displays perfectly in each browser. try this for me and tell me what you get <style type="text/css"> #top_menu { width: 100%; float: left; height: 0px; line-height: 10px; padding: 0; margin: 0; border-top: solid 2px #950000; } </style> <div id="top_menu"></div> Nope... I am sorry... No change in IE... I use this with Joomla. Quote Link to comment https://forums.phpfreaks.com/topic/79917-border-wont-show-up-in-ie/#findComment-404883 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.