Reply to Re: a tag style with css

Your name:

Reply:


Posted by Barbara de Zoete on 11/23/05 19:43

On Wed, 23 Nov 2005 18:26:26 +0100, Michael Huhn <michael.hnn@gmx.de>
wrote:

> Hello,

Firstly, please set your client to send plain text messages to usenet. Not
html. They are too big for no reason at all.

> I've got a small problem to define an a Tag via css.style sheet.

Secondly, you can't define anything. You can just suggest the looks of an
element.
What you call 'an a Tag' is the anchor element, not a tag. The tag is what
you use to mark some content up to be an anchor.

> In my html page I have a couple of href.

Thirdly, it is usualy best to provide an URL so we all get to see what you
are talking about.

> These links are always visible in the status bar as soon as they get the
> mouse over event.
> I don't want that the user is able to see where the href is linked.

Why is that? What do you have to hide? Do you import someone elses pages
into a frame on your page or something? Playing some music, while I don't
want that? Trying to execute a small app, like installing an expensive
dialer? Other ugly methods?
There are a few unsafe things going on in the www. That means for example
that I would not ever click on a link that doesn't show me where it takes
me or what it does for me.

> I found the following source code to customize the status bar as soon as
> I get the mouse over event:
>
> <A HREF="page.html" onMouseOver="self.status='Message';
> return true" onMouseOut="self.status=";return true">text</A>

Oh, that's okay then. Do use that. Since I don't have any javascript
running, it won't bother me a bit. And it has an error btw.

> I want to define this in my css file which I is included in each html
> file I have. But I can't find the css file syntax for this.
> Do I have to define this in the style hwere I defined the link, hover,
> visited ... ??
>
> for example style.css:
> a:link { color:#666666; font-size: 16px; }

Ah, anyone not see that coming? Don't use fixed font sizes. People with IE
won't be able to (easily) change font size in their screen if they
want/need to. Use something like 100% or 1em or other relative unit.

> a:visited { color:#666666; font-size: 16px; }

And the last mistake, don't make links and visited links look the same.
People want to know if they've been there already.

Then to the answer: yes, you have to set properties and their values for
the link, for all it's 'forms':

a
a:link
a:visited
a:hover
a:focus
a:active

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация