When I go into Opera, Safari, and Chrome, I am getting this “extended hyperlink” that extends past the Username, underneath the “Online Indicator” and to the right of that.
It looks weird, and I believe is causing me some spacing issues.
Here is what I mean…
Is there some way to get rid of that extra stuff, so just the Username is underlined??
Therefore browsers treat white space between inline elements as a space and therefore you get a space in your layout. Otherwisethiswouldhappen.
So it’s important to close the gaps in the html where inline elements are concerned. It’s not needed between divs as they signify an end of the block but for inline elments like text, spans and images any gaps between them will be treated as a space character.
The gap at the end of your username is the white-space after the image and before the break. If you just move the break up next to the img tag then the gap will go away.
Point #1: At the very least, I want the “Username” and the “User Thumbnail” to be hyperlinked back to the Member’s Profile. (I don’t care if the “Online Indicator” - located in between those two things - is technically hyperlinked since it is too small to be a practical “clickable target”?!
Point #2: This is how I want things to look…
(Notice that you only see a hyperlink beneath the Username even though the Username + Online Indicator + Thumbnail are all one big hyperlink.)
One obvious thing might be for me to change my code from this…
In retrospect, I guess that is one issue that might need to be addressed. (Whether there was an underline or not underneath that trailing space probably doesn’t matter as far as possible spacing issues. It just drew my attention it !!)
As far as your first suggestion, I’ll have to consider if losing my nicely formatted code is worth gaining a space in the display?!
As far as the “Online Indicator” being underlined when I don’t want it to be…
Is that an acceptable approach? (Or is that hokey?)
And would it impact the “clickability” of the Username, Online Indicator, and Thumbnail inside the anchor?
Also, why is it that FireFox behaves the way I want it to out-of-the-box, but the other browsers underline everything?
No its fine. That’s what spans are for. Don’t be afraid to use a suitable element when necessary.
And would it impact the “clickability” of the Username, Online Indicator, and Thumbnail inside the anchor?
It will make no difference to the anchor as it still surrounds all the content. WEe are just putting an underline on the span and not on an anchor.
Also, why is it that FireFox behaves the way I want it to out-of-the-box, but the other browsers underline everything?
Browsers vary and some underline white space and some don’t. Whether its a bug or not is dependent on whether the exact behaviour is defined in the specs but sometimes not everythng has been defined and hence browers differences in interpretation. (As an aside old version of IE give linked images a blue border outline by default.)