473,289 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Off-Left Replacement for Display:None

For increased accessibility, I've replaced "display:none" with the
Off-Left method of hiding my CSS drop-down menus because the Jaws
screen reader doesn't see any of the menus hidden with "display:none".
The Off-Left method (placing elements way over to the left beyond the
browser window) seems to work well in everything except IE 6 for the
PC, where it displays the drop-downs about an inch to the right of
where they should be. (View
http://www.sunriveronline.org/clrn/elrTEST.html with IE to see it in
action.)

How can I go about scooting the drop-down menus over to the left where
they should be in IE without messing it up in other browsers? The code
for my navigation bar is shown below. I suspect the problem has
something to do with the following IE workaround:

#nav li>ul {
top: auto;
left: auto;
}

Thanks in advance.

-Fleemo

------------------------------------------------

#nav {
padding: 0;
margin: 0;
position: absolute;
width: 877px;
top: 108px;
z-index: 1000;
white-space: nowrap;
}

#nav a {
font-size: .8em;
text-decoration: none;
padding-top: 6px;
font-weight: normal;
border-left: 1px solid #4B8EA6;
border-bottom: 1px solid #4B8EA6;
background-color: transparent;
}

#nav a:link { color: white; }
#nav a:visited { color: white; }
#nav a:hover { color: white; background-color: #0085CA; }

#nav ul {
list-style: none;
padding: 0;
margin: 0;
}

#nav li li a {
display: block;
font-weight: normal;
color: #fff;
padding: 0.2em 10px;
}

#nav li li a:hover {
padding: 0.2em 10px;
background-color: #0085CA;
}

#nav li {
float: left;
position: relative;
width: 156px;
text-align: center;
cursor: default;
background-color: transparent;
list-style: none;
}

#nav li.homebttn {
float: left;
position: relative;
width: 66px;
text-align: center;
cursor: default;
background-color: transparent;
}

#nav li ul {
position: absolute;
top: 100%;
margin-left: -1999px;
font-weight: normal;
background-color: #1C6B8A;
padding: 0.5em 0 1em 0;
z-index: 10000;
}

#nav li>ul {
top: auto;
left: auto;
}

#nav li li {
display: block;
float: none;
background-color: transparent;
border: 0;
}

#nav li:hover ul, #nav li.over ul {
display: block;
margin-left: 0;
}

Sep 22 '05 #1
1 2292
fl******@comcast.net wrote:
For increased accessibility, I've replaced "display:none" with the
Off-Left method of hiding my CSS drop-down menus
http://www.sunriveronline.org/clrn/elrTEST.html with IE to see it in
action.)


View it in any browser with image loading disabled to see how accessible
it is then. Please keep in mind that accessibility is about much more
than just accomodating blind users.

All image-replacement methods are bad. Some are less bad than others,
but I don't think the off-left method is one of the lesser evils. If
you're not using transparent images and only trying to cover up a short
amount of text, the Gilder-Levin method may work. See also
<URL:http://www.mezzoblue.com/tests/revised-image-replacement/>

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Sep 24 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Greg Raven | last post by:
I styled my links just the way I want them using CSS, but now my linked images have picked up these same styles. I've tried turning the styles off for the images with: a img { text-decoration:...
12
by: Ximo | last post by:
Can I do a function which don't return anything? The question is that, if I do a function that have a return or without return, it returns always "None", but i want that it doesnt return me...
3
by: noahlt | last post by:
I'm trying to write a website updating script, but when I run the script, my function to search the DOM tree returns None instead of what it should. I have this program: -------- import sys...
2
by: karen scheu via AccessMonster.com | last post by:
I am having trouble lately opening my local tables. It is taking a a few seconds to open the table that has no records in it. I read that there is a bug with the AutoCorrect feature and so I set...
14
by: Billy Patton | last post by:
I'm not student, looking for homework help. I'm looking for a c function that will execute a system function then return the output into a string. I don't want to use a file as a medium. pipe...
10
by: randomtalk | last post by:
hello, i have another problem i feel that i have to be missing something.. Basically, i've written a recursive function to find all the prime up to a number (lim).. here is the function: The...
8
by: micklee74 | last post by:
hi i wish to map None or "None" values to "". eg a = None b = None c = "None" map( <something> , if i in ("None",None) ]) I can't seem to find a way to put all values to "". Can anyone...
0
by: Corey Wallis | last post by:
Dear All, I'm currently working on a project that needs to collect the output of the JHOVE application. More information about the application is available at this website: ...
5
by: Barkster | last post by:
How do I keep a content control from throwing off the size of my pages? When I drop a content control in my header it resizes the cell to a larger size and when I publish the page it is now sized...
4
by: iitt2007 | last post by:
Are there any equivalent of following in SQL server 2005? SET NEWPAGE NONE; SET SPACE 0; SET LINESIZE 181; SET PAGESIZE 0; SET ECHO OFF; SET FEEDBACK OFF; SET HEADING OFF; SET UNDERLINE OFF;
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.