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
drop menu doesn't appear, even with doctype
Old 04-27-2010, 09:02 AM drop menu doesn't appear, even with doctype
Junior Talker

Posts: 3
Trades: 0
hi all,
i'm trying to make a drop down menu.
everything works well in firefox and chrome. the problem exist only in IE8
i tried adding the doctype (a few different ones) but nothing!
the sub menu doesn't appear.
here is my code:


<HTML>
<HEAD>

<meta http-equiv="content-language" content="he" />
<meta http-equiv="content-type" content="text/html; charset=windows-1255" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<TITLE>MISH MUSH</TITLE>
<script language="JavaScript" src="http://ramirosenbaum.110mb.com/arabic/JSfile.js" type="text/javascript"></script>

<style type="text/css">
body
{
background-color:#b0c4de;
}

img
{
position:absolute;
left:380px;
top:200px;
z-index:-1;
}


h1 {
font-size:40;
text-align:center;
margin:0;
padding:0;
padding-top:6px;
padding-bottom:6px;
}
p.main {text-align:justify;}

#nav {
background-color: #98bf21;
height: 32px;
text-align: center
}

#nav ul {
list-style-type:none;
margin:0;
padding:0;
padding-top:6px;
padding-bottom:6px;
}

#nav li{
display:inline;
position: relative;
text-align: center;

}

#nav a:link,a:visited {
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
text-align:center;
padding:6px;
text-decoration:none;
text-transform:uppercase;
}
#nav a:hover,a:active {
background-color:#7A991A;
}
#nav li ul {
position:absolute;
width: 8em;
left: -9999em;
}

#nav li li, #nav li li a { display: block; height: 1.8em; }

#nav li li a { width: auto; padding: 4 }

#nav li:hover ul { top: 1.5em; right: -5 }




</STYLE>


</HEAD>

<body >
<div dir="rtl" align="right">
<h1>hello!</h1>
<headerline src="http://ramirosenbaum.110mb.com/arabic/line.gif"
<p class="main">i'm not really sure what do we want to put in the main page</p>
<img src="mySuperLamePic_58c1345d65c62de9eafed8ab98cddc e0.jpg" width="450" />


<div id="nav">
<ul>
<li><a href="#about">something</a>
<ul>
<li><a href="#history">he 1</a></li>
<li><a href="#">he 2</a></li>
</ul>
</li>
<li><a href="#newStudents">something</a>
<ul>
<li><a href="#">Su 2.1</a></li>
<li><a href="#">Su 2.2</a></li>
<li><a href="#">Su 2.3</a></li>
<li><a href="#">Su 2.4</a></li>
</ul>
</li>
<li><a href="#exxistingGroups">something</a>
<ul>
<li><a href="#">Su 2.1</a></li>
<li><a href="#">Su 2.2</a></li>
<li><a href="#">Su 2.3</a></li>
<li><a href="#">Su 2.4</a></li>
</ul>
</li>

<li><a href="#pics">something</a>
<ul>
<li><a href="#">Su 2.1</a></li>
<li><a href="#">Su 2.2</a></li>
<li><a href="#">Su 2.3</a></li>
<li><a href="#">Su 2.4</a></li>
</ul>
</li>
<li><a href="#fprum">something</a>
<ul>
<li><a href="#">he 1</a></li>
<li><a href="#">he 2</a></li>
</ul>
</li>
<li><a href="#contact">something</a>
<ul>
<li><a href="#">he 1</a></li>
<li><a href="#">he 2</a></li>
</ul>
</li>
</ul>
</div>
</div>
</body>


</HTML>


thanks...
confused!@!!!!!!
galelhalel is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-27-2010, 09:59 AM Re: drop menu doesn't appear, even with doctype
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
Where IS the doctype you decided to use?

Doctype looks like this...

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3schools.com/tags/tag_doctype.asp

What is?:
Code:
<headerline src="http://ramirosenbaum.110mb.com/arabic/line.gif"
and align="right" is deprecated, use css.

Last edited by racer x; 04-27-2010 at 10:02 AM..
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 04-27-2010, 10:42 AM Re: drop menu doesn't appear, even with doctype
Junior Talker

Posts: 3
Trades: 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
this is one of them for example...

ignore the headerline...
not there anymore...
i removed the unimportant parts of the code, to save you time, and forgot this line
about the "right", you are wright :-)
thanks, waiting for help...
galelhalel is offline
Reply With Quote
View Public Profile
 
Old 04-27-2010, 10:47 AM Re: drop menu doesn't appear, even with doctype
Junior Talker

Posts: 3
Trades: 0
one more strange thing:
when i add the doctype, the same problem happens also in firefox & chrome...
galelhalel is offline
Reply With Quote
View Public Profile
 
Old 04-28-2010, 04:16 PM Re: drop menu doesn't appear, even with doctype
Madman340's Avatar
Web Designer

Posts: 571
Name: Jared
Location: Florida
Trades: 1
Here is a great drop-down archetype to use, if it doesn't work with this at least you know it isn't this code.

http://www.htmldog.com/articles/suckerfish/dropdowns/
__________________

Please login or register to view this content. Registration is FREE
for cheap hosting solutions.
Use the coupon code "SINGLECENT" to pay just a single cent for the first month!
Madman340 is offline
Reply With Quote
View Public Profile
 
Old 04-28-2010, 04:50 PM Re: drop menu doesn't appear, even with doctype
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Have you got the page up somewhere?
__________________
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
 
Reply     « Reply to drop menu doesn't appear, even with doctype
 

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.22652 seconds with 12 queries