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
Solved

CSS problem in IE

Posted on 2014-03-19
3
206 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
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

809 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