Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Problem with IE but not in Firefox
Old 09-23-2008, 02:33 PM Problem with IE but not in Firefox
Novice Talker

Posts: 8
Trades: 0
Code:
#sddm
{    margin: 0;
    padding: 0;
    z-index: 30;
    
    }

#sddm li
{    margin: 0;
    padding: 0;
    list-style: none;
    float: left;
    font: 11px arial}

#sddm li a
{
    display: block;
    margin: 0 1px 0 0;
    padding: 2px 18px;
    width: 100%;
    background: #1E3D5A;
    color: #FFFFFF;
    text-align: left;
    text-decoration: none
}

#sddm li a:hover
{    background: #1E3D5A}

#sddm div
{
    position: absolute;
    visibility: hidden;
    margin: 0;
    padding: 0;
    background: #1E3D5A;
    border: 1px solid #5970B2
}

    #sddm div a
    {
    position: relative;
    display: block;
    margin: 0;
    padding: 5px 10px;
    width: auto;
    white-space: nowrap;
    text-align: left;
    text-decoration: none;
    background: #1E3D5A;
    color: #FFFFFF;
    font: 11px arial
}

    #sddm div a:hover
    {
    color: #FFFFFF;
    background: #9EC3B2;
}
I have a drop down menu using javascript and CSS and it looks fine in Firefox but it doesnt look right in IE. I have attached my CSS code and both IE and Firefox images.

The 1st image is IE and 2nd one is firefox.
need help.

thx
Attached Images
File Type: jpg 1.jpg (9.0 KB, 6 views)
File Type: jpg 2.jpg (14.9 KB, 5 views)
mikedesign is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-23-2008, 02:56 PM Re: Problem with IE but not in Firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Z-index ONLY works with positioned elements, so this will have ZERO effect:

Quote:
#sddm
{ margin: 0;
padding: 0;
z-index: 30;

}
You'll have to set #sddm to position: relative at the very least, position:absolute may be necessary depending on the rest of the layout.

When you float an element, as you have the <li> you MUST give it a defined width.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-23-2008, 03:16 PM Re: Problem with IE but not in Firefox
Novice Talker

Posts: 8
Trades: 0
still couldnt work. i added postion: absolute and/or relative and set width:100% in <li>. the main image moved up but the links position still couldnt align in one line.

here is my html code

HTML Code:
<table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr> 
        <div style="clear:both">
        <ul id="sddm">
    <li><a href="http://www.seiler.com/">HOME</a></li>
    <li><a href="http://www.seiler.com/whoweare.html">WHO WE ARE</a></li>
    <li><a href="http://www.seiler.com/services.html">SERVICES</a></li>
    <li><a href="http://www.seiler.com/industry.html">INDUSTRY EXPERTISE</a></li>
    <li><a href="http://www.seiler.com/career.html" 
        onmouseover="mopen('m1')" 
        onmouseout="mclosetime()">CAREER OPPORTUNITIES</a>
        <div id="m1" 
            onmouseover="mcancelclosetime()" 
            onmouseout="mclosetime()">
        <a href="http://www.seiler.com/new.html">College Students &amp; Graduates</a></a>
        <a href="http://www.seiler.com/experienced.html">Experienced Professionals</a></a>        </div>
    </li>
    <li><a href="http://www.seiler.com/contact.html">INFORMATION / CONTACT US</a></li>
</ul>
 </div>
        </tr>
      </table>
http://www.seiler.com/index2.html

is the page im working now

Last edited by mikedesign; 09-23-2008 at 03:37 PM..
mikedesign is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with IE but not in Firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54117 seconds with 13 queries