Solved

CSS problem in IE

Posted on 2014-03-19
3
211 Views
Last Modified: 2014-03-19
Hello experts.
I have a sliding top panel. The problem that in IE (in my case v.8) it is not working as i'm expecting.
The ul li has no Background in IE.
Attached code and screenshots
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
/* Panel Tab/button */
.tab {background: url('../stylesheet/toppanelimages/tab_b.png') repeat-x 0 0;height: 42px;position: relative;top: 0;z-index: 999;}
.tab ul.login {display: block;position: relative;float: right;clear: right;height: 42px;width: auto;font-weight: bold;line-height: 42px;margin: 0;right: 150px;color: white;font-size: 11px;text-align: center;}
.tab ul.login li.left {background: url('../stylesheet/toppanelimages/tab_l.png') no-repeat left 0;height: 42px;width: 30px;padding: 0;margin: 0;display: block;float: left;}
.tab ul.login li.right {background: url('../stylesheet/toppanelimages/tab_r.png') no-repeat left 0;height: 42px;width: 30px;padding: 0;margin: 0;display: block;float: left;}
.tab ul.login li {text-align: left;padding: 0 6px;display: block;float: left;height: 42px;
background: url('../stylesheet/toppanelimages/tab_m.png')repeat-x 0 0; width:100px;}
.tab .sep {color:#414141}
#toppanel {position: absolute;/*Panel will overlap  content *//*position: relative;*/   /*Panel will "push" the content down */top: 0;width: 100%;z-index: 999;text-align: center;margin-left: auto;margin-right: auto;}
</style>
</head>

<body>
<div id="toppanel">
  <!-- The tab on top -->
  <div class="tab">
    <ul class="login">
      <li class="left">
        &nbsp;
      </li>
      <li>
      </li>
      <li class="sep">
        |
      </li>
      <li id="toggle">
      </li>
      <li class="right">
        &nbsp;
      </li>
    </ul>
  </div>
</div>
</body>
</html>

Open in new window

screenshot.gif
0
Comment
Question by:Panos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 500 total points
ID: 39939007
try adding a space:
background: url('../stylesheet/toppanelimages/tab_m.png') repeat-x 0 0;

Open in new window


EDIT: tested with http://netrenderer.com/?browser=ie8&url=http://schutt.nl/ee/Q_28391881/site/index_new.html
0
 
LVL 2

Author Comment

by:Panos
ID: 39939013
Hi Robert Schutt
It is working thank you
0
 
LVL 2

Author Closing Comment

by:Panos
ID: 39939014
Thank you
regards
panos
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question