473,569 Members | 2,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

First letter property for links in CSS

Can anyone suggest a better/clearer guide than this
A List Apart article? http://www.alistapart.com/stories/accesskeys/

It appears to be not quite right as when I do as it suggests...
it doesn't work. What I am trying to do is make the first letter
of certain links bold, but not others (for Access keys),
while also retaining rollover effects in IE5/5.5/6 (which account
for 90-95% of my audience). Have set the requisite links to
display:block, set the first-letter psuedo-class for the link I am
wanting to make an accesskeyed link.... but it does not seem
to work..
Regards
Peter J
Jul 20 '05 #1
3 2190
"Peter Jenkins" <pe************ *************** ***********@xtr a.co.enzed>
wrote in message news:t8******** **************@ news.xtra.co.nz ...
for 90-95% of my audience). Have set the requisite links to
display:block, set the first-letter psuedo-class for the link I am
wanting to make an accesskeyed link.... but it does not seem
to work..


I did a quick test with this and it worked. Also, from what I've read,
"first-letter" only works in IE5.5+ and not IE5.0.

<style type="text/css">
div:first-letter {font-weight:700;}
</style>

<div>Test</div>

Good luck to yah.
--
http://www.snook.ca/
Jul 20 '05 #2
"Peter Jenkins"
<pe************ *************** ***********@xtr a.co.enzed> wrote:
Can anyone suggest a better/clearer guide than this
A List Apart article? http://www.alistapart.com/stories/accesskeys/


Regarding access keys, the basic guide is very simple:
Don't.

Keyboard shortcuts are essential, even indispensable to many users, and
potentially useful to all. That's why so many programs, including
browsers, have such shortcuts. And exactly for this reason the very
idea of accesskey attributes, when meant to live in the same shortcut
"name space" as program control shortcuts, is a bad idea. The idea
becomes much worse when made into a WAI recommendation that makes
people think that accesskey attributes improve, rather than disrupt,
accessibility, and _must_ be used - even in trivial cases where we have
a small list of links.

For a detailed explanation, see my treatise on accesskey attributes,
written mostly when I was much more optimistic about the idea than now:
http://www.cs.tut.fi/~jkorpela/forms/accesskey.html

Note that this issue is rather separate from what you have written on
the Subject line, which asks a question that would be quite
topic-here if it were your real question.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3
Thank you for that!
I have to admit, this will make life MUCH easier, I have been
getting very frustrated with this, trying to get it working across
all 450 odd pages of the site I look after.

I'll see what other people think here, but I think I'll just stick
to having all text links, letting the user set all font sizes, and
using CSS for layout. The latter is hard enough... particularly
seeing as I'm not getting paid for this..
:-)
Regards
Peter J
"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"Peter Jenkins"
<pe************ *************** ***********@xtr a.co.enzed> wrote:
Can anyone suggest a better/clearer guide than this
A List Apart article? http://www.alistapart.com/stories/accesskeys/


Regarding access keys, the basic guide is very simple:
Don't.

Keyboard shortcuts are essential, even indispensable to many users, and
potentially useful to all. That's why so many programs, including
browsers, have such shortcuts. And exactly for this reason the very
idea of accesskey attributes, when meant to live in the same shortcut
"name space" as program control shortcuts, is a bad idea. The idea
becomes much worse when made into a WAI recommendation that makes
people think that accesskey attributes improve, rather than disrupt,
accessibility, and _must_ be used - even in trivial cases where we have
a small list of links.

For a detailed explanation, see my treatise on accesskey attributes,
written mostly when I was much more optimistic about the idea than now:
http://www.cs.tut.fi/~jkorpela/forms/accesskey.html

Note that this issue is rather separate from what you have written on
the Subject line, which asks a question that would be quite
topic-here if it were your real question.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #4

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

Similar topics

10
6148
by: Sergio del Amo | last post by:
Hi, I am trying to create a web site to work in Opera 7.2, Explorer 6.0 and Mozilla 1.4. I have the code: var imgs= document.getElementsByTagName("img"); alert(imgs.id); The id of imgs is a10. A window is open with Opera, Explorer and Mozilla with the text "a10". When i write:
12
6011
by: Alan J. Flavell | last post by:
OK, today's email brought a comment from a reader, pointing out something that I'd long since noticed myself but hadn't done anything about it. On my pages, I've got a first-letter style on paragraphs. So far, so good: some of the paragraphs begin with a link, and there are styles in the stylesheet for link, hover etc. The first letter...
1
6856
by: Patrick | last post by:
I am trying to get "first-letter" to work inline withing an anchor. Actually I have not been able to get it to work within an <a> tag whether inline, linked, or embedded. Using IE6 service pack 1. <html> <head> <style type="text/css"> h5 {background-color: red; padding-left: 5px} a {color: white; font-size: 20px; text-decoration: none}...
6
3971
by: Fungii | last post by:
Hello, I have a stylesheet that sets p:first-letter to a certain size and colour. I was playing around with Javascript to change paragraph stylesheets using an array like this: var paras = document.all.tags("P"); Although I can change the paragraph colours using this array, the first letter of all the paragraphs remain the same
3
5975
by: gil | last post by:
I have a script that will capitalize the first letter of every word in my descriptions. But some of my descriptions contain ( ) and /. For example bezel (black). I need the script to capitalize Bezel and (Black), but it is only finding the bezel and leaving the (black) in lower case. Here is the script below. Any help would be greatly...
1
2658
by: Marc Verdonck | last post by:
First: I have some troubles in access, some fields needs to begin with a Capital letter. Example: louiselaan need to be Louiselaan. How can I become this? Second: I'm exporting my database to outlook. Than some names begin with a capital letter some don't. The name is always in capital letters in access and in outlook sometimes it's...
1
1850
by: Bill Johnson | last post by:
In vb6 I could quickly go to any given property while in the properties window by holding the CTRL + SHIFT keys down plus the first letter of the property I want to edit. For example, if I wanted to change the caption property of a form, I would press CTRL + SHIFT + P and i would immediately go to the caption property. Is there such a short...
43
2779
by: Roger L. Cauvin | last post by:
Say I have some string that begins with an arbitrary sequence of characters and then alternates repeating the letters 'a' and 'b' any number of times, e.g. "xyz123aaabbaabbbbababbbbaaabb" I'm looking for a regular expression that matches the first, and only the first, sequence of the letter 'a', and only if the length of the sequence is...
7
2514
by: Rich Grise | last post by:
OK, I don't know if this is Off-Topic for the group(s), because "QT" isn't "Pure C++", and Slackware is a distro, but those guys are sharp. :-) And I've crossposted to sci.electroncs.design because I can. ;-P Anyways, I want to crow about what I've done. I've been dabbling, kind of poking away at the QT tutorials, but when I get to the "Now,...
0
7695
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8119
jinu1996
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...
1
7668
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...
0
7964
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...
1
5509
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...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
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
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
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...

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.