Solved

CSS problem in IE

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now