Hi,
i've been stuck trying to get the following code to display correctly in IE in which i've come across many diffrent theories but none which have worked possibly the box model problem.
*************** *************** *************** *************** *************** *
BEGIN
*************** *************** *************** *************** *************** *
[html]
<HTML>
<HEAD>
<style type="text/css">
/*Nav bar styles*/
ul.nav,
.nav ul{
margin: 0;
padding: 0;
cursor: default;
list-style-type: none;
display: inline;
}
ul.nav{
display: table;
}
ul.block{
width: 100%;
table-layout: fixed;
}
ul.nav>li{
display: table-cell;
position: relative;
padding: 2px 6px;
}
/*
ul.nav>li:hover {
padding-right: 1px;
}*/
ul.nav li>ul{
display: none;
position: absolute;
max-width: 40ex;
margin-left: -6px;
margin-top: 2px;
}
ul.nav li:hover>ul{
display : block;
}
.nav ul li a{
display: block;
padding: 2px 10px;
}
/*Menu styles*/
ul.nav,
.nav ul,
.nav ul li a{
background-color: #fff;
color: #369;
}
ul.nav li:hover,
.nav ul li a:hover{
background-color: #369;
color: #fff;
}
ul.nav li:active,
.nav ul li a:active{
background-color: #036;
color: #fff;
}
ul.nav,
.nav ul{
border: 1px solid #369;
}
.nav a{
text-decoration: none;
}
</STYLE>
</HEAD>
<BODY>
<ul class="nav">
<li><strong>Bro wsers</strong>
<ul>
<li><a href="http://mozilla.org/">Mozilla</a></li>
<li><a href="http://mozilla.org/products/firefox/">Firefox</a></li>
<li><a href="http://mozilla.org/products/camino/">Camino</a></li>
<li><a href="http://kmeleon.sourcef orge.net/">K-meleon</a></li>
<li><a href="http://galeon.sourcefo rge.net/">Galeon</a></li>
<li><a href="http://netscape.com/">Netscape</a></li>
<li><a href="http://microsoft.com/">Internet Explorer</a></li>
<li><a href="http://opera.com/">Opera</a></li>
<li><a href="http://apple.com/safari/">Safari</a></li>
<li><a href="http://konqueror.org/">Konqueror </a></li>
</ul></li>
<li><strong>W eb Design</strong>
<ul>
<li><a href="http://w3.org/">W3C</a></li>
<li><a href="http://alistapart.com/">A List Apart</a></li>
<li><a href="http://meyerweb.com/eric/css/edge/">css/edge</a></li>
<li><a href="http://mako4css.com/">MaKo 4 CSS</a></li>
<li><a href="http://glish.com/css/">CSS Layout Techniques</a></li>
<li><a href="http://realworldstyle. com/">Real World Style</a></li>
<li><a href="http://css-discuss.org/">css-discuss</a></li>
<li><a href="http://css.nu/">CSS Pointers Group</a></li>
</ul>
</li>
<li><strong>Sea rch Engines</strong>
<ul>
<li><a href="http://google.com/">Google</a></li>
<li><a href="http://dmoz.org/">Open Directory</a></li>
<li><a href="http://yahoo.com/">Yahoo!</a></li>
<li><a href="http://alltheweb.com/">All The Web</a></li>
<li><a href="http://teoma.com/">Teoma</a></li>
<li><a href="http://wisenut.com/">Wisenut</a></li>
</ul>
</UL>
</BODY>
</HTML>
[/html]
*************** *************** *************** *************** *************** ********
END
*************** *************** *************** *************** *************** ********
Any ideas?
Regards
5 1973
First quick observation. You will never get IE to attempt to act like other modern browsers without a proper doctype. See the article about doctypes under Howtos above.
Ok,
thanks for the quick response and i've read through here
http://www.thescripts. com/forum/thread641513.ht ml
and attached the following
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Regards
I'm just doing "fly-by" looks at this.
Only modern browsers allow "hover" on all elements. That leaves IE out which only understand hover on <a>
OK, i'll look for another way to show a horizontal nav bar which works across multiple browsers
Cheers
Here's one.
[HTML]<html>
<head>
<style type="text/css">
#navagation {
position:absolu te;
}
ul {
width:100%;
float:left;
margin:0;
padding:0;
}
a {
float:left;
padding:0.2em 0.6em;
text-decoration:none ;
color:#000;
background-color:#fff;
border:1px solid #000;
}
a:hover {
color:#fff;
background-color:#000;
border:1px solid #fff;
}
li {
display:inline;
}
</style>
</head>
<body>
<div id="navagation" >
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
</ul>
</div>
</body>
</html>[/HTML]
Hope it helps, Thanks, Death
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Randall Sell |
last post by:
Hmmm, have now spent a day reading the entire web with no answer yet! so now
resorting again to the experts...
I'm trying to create a horizontal list. This is easy enough doing:
<html>
<head>
<style type="text/css">
#legend ul {
white-space: nowrap;
|
by: addled |
last post by:
Hi there, after reading posts here for a few months, I've built the
courage to see if someone can see where I"m going wrong in the webpage
I've been working on.
In particular the horizontal nav bar accross the top of the page.
viewd here http://foundations.port5.com/currprojects/babylon.html
I am running win XP and have tested in both Avant (MSIE) and Opera
7.23
the result is a different problem in each.
|
by: Lachlan Hunt |
last post by:
Hi,
In the "Firefox 5 Minute Challenge" that I'm trying to write the
stylesheet for, the height of language bar needs controlled by the
height of the content, so that if the window is not wide enough, and the
menu items wrap around to the next line, the height of the <ul>
increases, and thus the background stays behind the list items.
The height has been set using min-height for for those that support it
and 'height' for IE only. It...
|
by: thulsey |
last post by:
Hi all,
I've got some strange behavior happening in Firefox and Safari (Khtml
and Gecko) that displays *almost* fine in IE6.0 (still trying to get
pixels to line up, anal anal anal...)
To speed things up, and to avoid any problems with looking through the
css file, I'll say first that I based the navigation menu on the
"Suckerfish Dropdown menu" online demo over at htmldog.
(http://www.htmldog.com/articles/suckerfish/dropdowns/). In...
|
by: Griff |
last post by:
What I'm trying to achieve is to have a title followed by a horizontal
rule on the same line. For example:
Living on Mars ----------------
Living on Mars would be at best
impractical for the following
reasons: blah blah blah
Living on Earth ---------------
Life has evolved on earth for
| |
by: Veli-Pekka Tätilä |
last post by:
Hi,
My first post here. I've found some serious accessibility flaws in the
Python 2.4 docs and wish they could be rectified over time. I'm very new to
Python and initially contacted docs at python org, However, I haven't gotten
a reply for a week or so, and figured out I could post here for a larger
audience, then.
Original message follows:
Hello,
|
by: pbd22 |
last post by:
Hi.
I am trying to make a horizontal list that counts (downward) and
a horizontal list that illustrates the time. Both list should be
formatted the same (except for the nomenclature). I seem to
be successful with the y axis but, in my horizontal list (time),
I can't seem to get it to scroll successfully.
Below is the link, thanks:
|
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= |
last post by:
Here is the page:
http://dardel.info/museum/Museum1.html
and here is the CSS (see navigation buttons at bottom of file):
http://dardel.info/museum/style3.css
Is there a way to make all nav buttons (at the bottom of the page) the
same width?
Thanks in advance for any hints
|
by: Jim |
last post by:
Hi,
I have two questions/problems pertaining to CSS horizontal dropdown
menus and am hoping that someone here can help me out.
(1)
I'm having a problem centering the menu. I picked up the code for
this from a tutorial but that menu was flush-left justified. Not what
I want. Subsequent searches on google on how to center yielded a
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |