472,958 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 2271
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;
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.