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

linkpictures for all browsers

Hello everyone,

I want to make all links to external sites or special resources
(pdf, mailto-links, etc) easily recognizable for all users.
Currently I use markup like
<a href=".." class="extlink">External Link</a>
and a CSS like
..extlink/* */ {
background: transparent url(/link_out.gif) left center no-repeat;
padding: 0 0 0 12px;
}
to have a little picture in front of these special links.
I already hide this CSS from NC4 (with @import) and IE50 (with /*
*/), because they can't handle it.
Are there more problems to be expected?
(comments of non-working browsers welcome)
Do you know of a better CSS to reach more browsers?

I want to avoid a img-tag in every <a href="">...</a> of course. ;-)

Nearly forgotten. uri for testing:
http://www.germanbreastgroup.de/neu/hilfe.html
(lots of mailtos and external links there)

Thanks for all comments,
Jan

--
For every complex problem, there is a solution that is simple, neat,
and wrong. [H.L. Mencken, 1880-1956]
Jul 21 '05 #1
4 1877
Els
Jan Steffen wrote:
Hello everyone,

I want to make all links to external sites or special resources
(pdf, mailto-links, etc) easily recognizable for all users.
Currently I use markup like
<a href=".." class="extlink">External Link</a>
and a CSS like
.extlink/* */ {
background: transparent url(/link_out.gif) left center no-repeat;
padding: 0 0 0 12px;
}
to have a little picture in front of these special links.
I already hide this CSS from NC4 (with @import) and IE50 (with /*
*/), because they can't handle it.
Are there more problems to be expected?


Yes, when a link is spread over two lines, the image will be on the
far left of the entire link, which is on the second line of course,
and because you set it vertically centered, only the bottom half
shows, as the top half is behind the text that's in the line above it.
This is on IE btw, Firefox has no problems.

BTW, you have another problem I think, unless you really want the
content to jump below the navigation on an only slightly smaller
window.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #2
Els schrieb:
Jan Steffen wrote:
I want to make all links to external sites or special resources
(pdf, mailto-links, etc) easily recognizable for all users.
Currently I use markup like
<a href=".." class="extlink">External Link</a>
and a CSS like
.extlink/* */ {
background: transparent url(/link_out.gif) left center no-repeat;
padding: 0 0 0 12px;
}
to have a little picture in front of these special links.
I already hide this CSS from NC4 (with @import) and IE50 (with /*
*/), because they can't handle it.
Are there more problems to be expected?
Yes, when a link is spread over two lines, the image will be on the
far left of the entire link, which is on the second line of course,
and because you set it vertically centered, only the bottom half
shows, as the top half is behind the text that's in the line above it.
This is on IE btw, Firefox has no problems.


Right, that's stupid. Doesn't get better in the background-image is
aligned diffenrently (top, right, absolut,...)
No idea why they behave differently, as usually gecko-browsers do it
right ;-)
Anyone has a idea how to avoid this?

BTW, you have another problem I think, unless you really want the
content to jump below the navigation on an only slightly smaller
window.


That's OK (only) on quite small windows. Shouldn't happen at 800x600
or above. I'll look into it a bit more. Thanks for pointing it out.

Jan
--
"Time flies like an arrow, fruit flies like a banana."
Groucho Marx
Jul 21 '05 #3
Els
Jan Steffen wrote:
Els schrieb:
Jan Steffen wrote:
I want to make all links to external sites or special resources
(pdf, mailto-links, etc) easily recognizable for all users.
Currently I use markup like
<a href=".." class="extlink">External Link</a>
and a CSS like
.extlink/* */ {
background: transparent url(/link_out.gif) left center no-repeat;
padding: 0 0 0 12px;
}
to have a little picture in front of these special links.
I already hide this CSS from NC4 (with @import) and IE50 (with /*
*/), because they can't handle it.
Are there more problems to be expected?


Yes, when a link is spread over two lines, the image will be on the
far left of the entire link, which is on the second line of course,
and because you set it vertically centered, only the bottom half
shows, as the top half is behind the text that's in the line above it.
This is on IE btw, Firefox has no problems.


Right, that's stupid. Doesn't get better in the background-image is
aligned diffenrently (top, right, absolut,...)
No idea why they behave differently, as usually gecko-browsers do it
right ;-)
Anyone has a idea how to avoid this?


Actually, yes.
I had to Google the groups for it, but I remembered having fixed this
problem before, although that about an image on the right side of the
link, but I guess it may work for the left side as well:
<http://groups-beta.google.com/group/comp.infosystems.www.authoring.stylesheets/msg/c945ef0dafd0c01c>
BTW, you have another problem I think, unless you really want the
content to jump below the navigation on an only slightly smaller
window.


That's OK (only) on quite small windows. Shouldn't happen at 800x600
or above. I'll look into it a bit more. Thanks for pointing it out.


Actually it does happen on 800x600 in my browser. At 821 to be
precise.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Thunder - Dirty Love
Jul 21 '05 #4
Els schrieb:
Jan Steffen wrote:
Els schrieb:
Yes, when a link is spread over two lines, the image will be on the
far left of the entire link, which is on the second line of course,
and because you set it vertically centered, only the bottom half
shows, as the top half is behind the text that's in the line above it.
This is on IE btw, Firefox has no problems.


Right, that's stupid. Doesn't get better in the background-image is
aligned diffenrently (top, right, absolut,...)
No idea why they behave differently, as usually gecko-browsers do it
right ;-)
Anyone has a idea how to avoid this?


Actually, yes.
I had to Google the groups for it, but I remembered having fixed this
problem before, although that about an image on the right side of the
link, but I guess it may work for the left side as well:
<http://groups-beta.google.com/group/comp.infosystems.www.authoring.stylesheets/msg/c945ef0dafd0c01c>


Thanks for the link. I played around with it a while, but didn't get
it to work better. Neither left or right.

BTW, you have another problem I think, unless you really want the
content to jump below the navigation on an only slightly smaller
window.


That's OK (only) on quite small windows. Shouldn't happen at 800x600
or above. I'll look into it a bit more. Thanks for pointing it out.


Actually it does happen on 800x600 in my browser. At 821 to be
precise.


Should be better now.

Thanks, Jan

--
Superstition brings bad luck.
Jul 21 '05 #5

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

Similar topics

14
by: Terry A. Haimann | last post by:
I have been working on creating a dynamic web page and have made slow but steady progress. What I have now has an opening page with two drop down boxes. Based on a choice from the first box, the...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
12
by: confused | last post by:
After expressing my interest in expanding my new knowledge of HTML and CSS into the wild realm of JavaScript, I was advised that it is wiser to avoid it, since not all browsers are use it or are...
12
by: code_wrong | last post by:
Hi, as the subject says How many browsers must we support? How many are there exactly? When I run this JavaScript in Firefox and IE6: function init(){ if(document.getElementById) alert("W3C...
6
by: Richie | last post by:
I went through the past six months or so of entries in c.l.javascript, and found a couple where people had expressed opinions about the value of supporting much older versions of Netscape and IE. ...
24
by: abracad_1999 | last post by:
I'm told the standards way of referencing page content is document.getElementById() What is the lowest version of each browser type with which this will work? Thank you
4
by: Bart Schelkens | last post by:
Hi, It might be a stupid question. I'm creating a webapplication using vb.net. I was wondering can this webapplication be viewed in other browsers besides Internet Explorer? Or are we limited...
133
by: Alan Silver | last post by:
Hello, Just wondered what range of browsers, versions and OSs people are using to test pages. Also, since I don't have access to a Mac, will I have problems not being able to test on any Mac...
77
by: VK | last post by:
Randy Webb wrote: > VK said the following on 5/2/2006 9:48 AM: > > If you mean "trying to render it" then FF behavior is the same as for > > all other UA's willing to be in use (and not W3C...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.