473,769 Members | 2,643 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

display: none;

I'm using a style to hide a skip navigation link but it's not working out
correctly. The style is:
..textBrowsersO nly {
display: none;
}

I'm using it in a paragragh and in a navigation link but the navigation link
still shows up (using an un-ordered list).

www.fape.org/zzzzzz.htm
www.fape.org/css/styleCSS1.css

Please advise.

Thanks,

--
JayB
Jul 20 '05 #1
10 3606
Els
JayB wrote:
I'm using a style to hide a skip navigation link but it's
not working out correctly. The style is:
.textBrowsersOn ly {
display: none;
}

I'm using it in a paragragh and in a navigation link but
the navigation link still shows up (using an un-ordered
list).

www.fape.org/zzzzzz.htm
www.fape.org/css/styleCSS1.css

Please advise.


You told the browser to not display the paragraph with class
"textBrowsersOn ly". But what is displayed is the <a> element
inside it.
I didn't test, but changing the CSS to:

..textBrowsersO nly a{
display: none;
}

might help.

Be aware that speech browsers might also honour the
display:none, by not reading the link...

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #2
Els
Els wrote:
You told the browser to not display the paragraph with class
"textBrowsersOn ly". But what is displayed is the <a> element
inside it.


Please substitute 'paragraph' with <li> element :S

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #3

"Els" <el*********@ti scali.nl> wrote in message
news:Xn******** *********@130.1 33.1.4...
Els wrote:
You told the browser to not display the paragraph with class
"textBrowsersOn ly". But what is displayed is the <a> element
inside it.


Please substitute 'paragraph' with <li> element :S


Thanks Els,

--
JayB
Jul 20 '05 #4

"JayB" <je******@yahoo .com> wrote in message
news:m2******** ******@news01.r oc.ny...
I'm using a style to hide a skip navigation link but it's not working out
correctly. The style is:
.textBrowsersOn ly {
display: none;
}

I'm using it in a paragragh and in a navigation link but the navigation link still shows up (using an un-ordered list).

www.fape.org/zzzzzz.htm
www.fape.org/css/styleCSS1.css


You have two selectors leading to display properties that apply to the
textBrowsersOnl y LI:

.textBrowsersOn ly { display: none; }

followed later by

.horiznav li { display: inline; }

If the latter selector has a higher "specificit y", as defined in the CSS
specification, then it will prevail. If the two selectors have the same
specificity, then the later one will override the earlier one.

As it happens, the specificity of the first selector is 10, and that of the
second selector is 11, so the actual display is inline. You can fix this by
making the first selector a tad more specific:

li.textBrowsers Only { display: none; }

to give it specificity 11, and then moving it *after* the second one. Or you
can make it more specific still by changing it to

.horiznav li.textBrowsers Only { display: none; }

giving it specificity 21, and then you don't have to move it--though you
might want to, because it just makes organizational sense for

.horiznav li.textBrowsers Only

to be listed after

.horiznav li

Jul 20 '05 #5
"JayB" <je******@yahoo .com> wrote in
comp.infosystem s.www.authoring.stylesheets:
I'm using a style to hide a skip navigation link but it's not working out
correctly. The style is:
.textBrowsersO nly { display: none; }

I'm using it in a paragragh and in a navigation link but the navigation link
still shows up (using an un-ordered list).

www.fape.org/zzzzzz.htm
www.fape.org/css/styleCSS1.css


I'll bet you're running up against specificity rules. Yep, Mozilla'
DOM Inspector points out that "Go to Content" is governed by
..textBrowsersO nly but also by .horiznav li -- and the latter is more
specific.

By the bye -- Do you have any say on that logo? Using the
Danish/Norwegian A-with-ring for an English-language acronym looks
pretty odd, like putting an acute accent on the "a" in
"Educationa l".

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #6

"Stan Brown" <th************ @fastmail.fm> wrote in message
news:MP******** *************** @news.odyssey.n et...
"JayB" <je******@yahoo .com> wrote in
comp.infosystem s.www.authoring.stylesheets:
I'm using a style to hide a skip navigation link but it's not working out
correctly. The style is:
.textBrowsersO nly { display: none; }

I'm using it in a paragragh and in a navigation link but the navigation linkstill shows up (using an un-ordered list).

www.fape.org/zzzzzz.htm
www.fape.org/css/styleCSS1.css


I'll bet you're running up against specificity rules. Yep, Mozilla'
DOM Inspector points out that "Go to Content" is governed by
.textBrowsersOn ly but also by .horiznav li -- and the latter is more
specific.

By the bye -- Do you have any say on that logo? Using the
Danish/Norwegian A-with-ring for an English-language acronym looks
pretty odd, like putting an acute accent on the "a" in
"Educationa l".


Actually, the A in the logo represents a parent and the white inside
represents a child. I have no say though, it was created before I came here.

--
JayB
Jul 20 '05 #7
In message <m2************ **@news01.roc.n y>, JayB <je******@yahoo .com>
writes
I'm using a style to hide a skip navigation link but it's not working out
correctly. The style is:
.textBrowsersO nly {
display: none;
}

I'm using it in a paragragh and in a navigation link but the navigation link
still shows up (using an un-ordered list).

www.fape.org/zzzzzz.htm
www.fape.org/css/styleCSS1.css

Please advise.

Thanks,

--
JayB

Good idea -- but wrong technique.

I'm afraid that most screen-readers, talking-browsers, etc. will honour
the 'display:none' and ignore any text within the scope of
..textBrowsersO nly

There are other CSS-based techniques that work to a greater or lesser
degree, such as using CSS to position the text away from the browser
viewport.

If you get stuck, the "alternativ e text on a 1-pixel .gif" hack always
works ;-)

regards.
--
Jake
Jul 20 '05 #8
"JayB" <je******@yahoo .com> wrote in
news:QL******** *******@news02. roc.ny:

"Stan Brown" <th************ @fastmail.fm> wrote in message
news:MP******** *************** @news.odyssey.n et...
"JayB" <je******@yahoo .com> wrote in
comp.infosystem s.www.authoring.stylesheets:
>I'm using a style to hide a skip navigation link but it's not
>working out correctly. The style is:
>.textBrowsersO nly { display: none; }
>
>I'm using it in a paragragh and in a navigation link but the
>navigation link >still shows up (using an un-ordered list).
>
>www.fape.org/zzzzzz.htm
>www.fape.org/css/styleCSS1.css


I'll bet you're running up against specificity rules. Yep, Mozilla'
DOM Inspector points out that "Go to Content" is governed by
.textBrowsersOn ly but also by .horiznav li -- and the latter is more
specific.

By the bye -- Do you have any say on that logo? Using the
Danish/Norwegian A-with-ring for an English-language acronym looks
pretty odd, like putting an acute accent on the "a" in
"Educationa l".


Actually, the A in the logo represents a parent and the white inside
represents a child. I have no say though, it was created before I came
here.

--
JayB


A good quote: If it's confusing for one person.... it's confusing for
others.

--
Robert Collyer
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !
Jul 20 '05 #9

"Rob Collyer" <we*******@webf orumz.com> wrote in message
news:Xn******** *************** ***********@217 .32.252.50...
"JayB" <je******@yahoo .com> wrote in
news:QL******** *******@news02. roc.ny:

"Stan Brown" <th************ @fastmail.fm> wrote in message
news:MP******** *************** @news.odyssey.n et...
"JayB" <je******@yahoo .com> wrote in
comp.infosystem s.www.authoring.stylesheets:
>I'm using a style to hide a skip navigation link but it's not
>working out correctly. The style is:
>.textBrowsersO nly { display: none; }
>
>I'm using it in a paragragh and in a navigation link but the
>navigation

link
>still shows up (using an un-ordered list).
>
>www.fape.org/zzzzzz.htm
>www.fape.org/css/styleCSS1.css

I'll bet you're running up against specificity rules. Yep, Mozilla'
DOM Inspector points out that "Go to Content" is governed by
.textBrowsersOn ly but also by .horiznav li -- and the latter is more
specific.

By the bye -- Do you have any say on that logo? Using the
Danish/Norwegian A-with-ring for an English-language acronym looks
pretty odd, like putting an acute accent on the "a" in
"Educationa l".


Actually, the A in the logo represents a parent and the white inside
represents a child. I have no say though, it was created before I came
here.


A good quote: If it's confusing for one person.... it's confusing for
others.


Then we would never have logos at all. There isn't any graphical device you
can find that won't confuse at least one person in the world.

FWIW, I understood immediately what the A depicted when I looked at it.

Jul 20 '05 #10

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

Similar topics

13
40764
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div style="display:none"> can be displayed by setting the style attribute to "display:", or hidden with "display:none". This gives the illusion that the person filling out the form is switching from page to page...without the overhead of extra hits on the server,...
1
2672
by: FrankBooth | last post by:
Hello, I have a list of names, and when I click ona name I want the extar info to show and then I want to clcik and hide it again. I have the following HTML which works perfectly if I use one construct, but if I use more that one it issues an object error which states that: ExpCollTxt_ctrl_ex.style is not an object. So the followin piece works fine:
19
6931
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the JavaScript in this code from a couple different sites but I'm not 100% sure what each line is doing...This is the ASP code that I'm using for the page....Take a look at the JavaScript code and please let me know what each line is doing....I have been...
3
10254
by: shreddie | last post by:
Could anyone assist with the following problem? I'm using JavaScript to hide/show table rows depending on the option selected in radio buttons. The script works fine in IE but in Firefox the hidden rows take up page space even though their content is not visible. I have extracted the necessary code as shown below: ************************************************************************
3
2204
by: Scott | last post by:
Relative newbie here, I'm looking to display the value of radio buttons and check boxes on the page before submission. So far I can do most of it. When "Hat" is checked there are to be no color options available. Click on shirt or pants, you have three options, (actually four if you chose "None"). Shirts and pants can have multiple colors. OK, here is the issue, if you choose a color then change your mind and then un-check the box, it...
1
9036
by: RonY | last post by:
I have a dropdown which calls SetTimePeriod method on change the selection. In the JS function, I reset the field style.display based on what the selection is. This works fine with IE but not working with Firefox browser. The firefox browser has problem to display a field after its style.display is reset. At the end of the JS function, I printed out the fields style.display value. They are set correctly. How to resovle this? My JS is : ...
1
4532
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I want only one instance of the FCKEditor on the screen at one time so I make tabs that the user can click and I store the values in variables behind the scenes. I change the CSS class on the link that is the currently selected one. I have a really...
7
6770
by: libsfan01 | last post by:
Hi all This js i wrote to switch display on and off of a given element does not work in ie but it does in ff and safari. how can i make it work with ie guys? <script type='text/javascript'> function switch_display(switchme) {
5
2041
by: libsfan01 | last post by:
function switch_display(switchme) { var el = document.getElementById(switchme); el.style.display = (el.style.display == 'none')? '' : 'none'; } im using this function to switch the display on and off of a given element. BUT if the element is set to 'none' to begin with then it wont display it. please help...
15
3165
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out, of course). <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Language" content="en-us" />
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9995
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,...
0
9863
tracyyun
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...
0
8872
agi2029
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...
1
7410
isladogs
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...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.