473,321 Members | 1,778 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,321 software developers and data experts.

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 2181
"Peter Jenkins" <pe**************************************@xtra.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**************************************@xtra.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.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"Peter Jenkins"
<pe**************************************@xtra.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
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...
12
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...
1
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....
6
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 =...
3
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...
1
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...
1
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...
43
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...
7
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.