Solved

CSS problem in IE

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
simplest php form 3 59
css help with menu spacing 10 30
Not showing page correctly 3 29
Set email body to html using vbscript 6 24
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

910 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

19 Experts available now in Live!

Get 1:1 Help Now