Solved

CSS problem in IE

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

695 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