Previous Message
Next Message

Anchor highlighter and whitespace inline-break generator

Sent by The Moose on 26 January 2004 03:03


Allo,

Yesterday I received an interesting email from Hungary about a mysterious  
Mozilla bug, and this prompted me to devise a variation on an old  
experiment about temperature measurement[1] in CSS.

The idea I've just had was to highlight consecutive anchors (even if  
separated by inline breaks). To this end, I inserted several anchors at  
will, into a dialogue, where lines are broken with <br/>.

Experiment page:
http://www.literarymoose.info/=/destroy/anchor-highlighter.xhtml

Description
I used this type of a selector (css embedded in the document):

a:focus, a:hover {color 1 here plus background}
a:focus+a, a:hover+a, a:focus+br+a, a:hover+br+a {color 2 here}

It works in Mozilla 1.7 for one anchor ahead, and doesn't work in Opera  
7.5.

By way of this experiment, I added empty generated content of block  
display and specific dimensions to the inline breaks, like so:

br::after {
	content: "";
	width: 100%;
	height: 20px;
	display: block;
}

This, to my astonishment, worked in Opera 7.5, but didn't work in Mozilla  
1.7.

I am quite puzzled about all results I have gotten, and would like to  
kindly ask for feedback.

Wojtek

[1]
http://www.literarymoose.info/=/destroy/thermometer.xhtml
http://www.literarymoose.info/=/synopsis/thermometer.xhtml

-- 
-------------------------
Book Quote of the Day: "My life is a peaceless flight through all the  
land. My religion is the Moral of the wildest Naturalism, but my world is  
the Aesthetical literature." ~ KNUT HAMSUN
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message