Hello
this page works : http://lilou.leuwen.chez.tiscali.fr/testlilou.htm
the source :
....
a.link:hover div.test2
{display : block;
position: absolute;
z-index: 1000;
background: #000000;}
....
<a class="link" href="#">tototo
<div class="test2">
blablabla
</div>
</a>
....
a.link:hover div.test2 <-- How should i write this ligne
{display : block;
position: absolute;
z-index: 1000;
background: #000000;}
with (the div is outside a) :
<a class="link" href="#">tototo </a>
<div class="test2">
blablabla
</div>
i have read : http://www.w3.org/TR/1998/REC-CSS2-1.../selector.html
and i have not found informations
thank you for your answer
lilou.leuwen-at-libertysurf.fr 5 10030
"Lilou" <li**********@l ibertysurf.fr> wrote in
news:40******** *************** @news.free.fr: a.link:hover div.test2 <-- How should i write this ligne {display : block; position: absolute; z-index: 1000; background: #000000;}
with (the div is outside a) : <a class="link" href="#">tototo </a> <div class="test2"> blablabla </div>
a.link:hover + div.test2
That's called an "adjacent sibling" selector. Unfortunately, Windows
versions of MSIE don't support them; IIRC they'll treat the above selector
as applying to div.test2 anywhere. So unless you're willing to write off
MSIE, you'll need to use either a "wrapper" div or an extra class name.
Eric Bohlman wrote: "Lilou" <li**********@l ibertysurf.fr> wrote in news:40******** *************** @news.free.fr:
a.link:hove r div.test2 <-- How should i write this ligne {display : block; position: absolute; z-index: 1000; background: #000000;}
with (the div is outside a) : <a class="link" href="#">tototo </a> <div class="test2"> blablabla </div>
a.link:hover + div.test2
That's called an "adjacent sibling" selector. Unfortunately, Windows versions of MSIE don't support them; IIRC they'll treat the above selector as applying to div.test2 anywhere. So unless you're willing to write off MSIE, you'll need to use either a "wrapper" div or an extra class name.
Mozilla doesn't support it either (I think Opera isn't correct at this
as well): <http://bugzilla.mozill a.org/show_bug.cgi?id =15608>
--
Anne van Kesteren
<http://www.annevankest eren.nl/>
In article Anne van Kesteren wrote: a.link:hover + div.test2
That's called an "adjacent sibling" selector. Unfortunately, Windows versions of MSIE don't support them; IIRC they'll treat the above selector as applying to div.test2 anywhere. So unless you're willing to write off MSIE, you'll need to use either a "wrapper" div or an extra class name.
Mozilla doesn't support it either (I think Opera isn't correct at this as well): <http://bugzilla.mozill a.org/show_bug.cgi?id =15608>
This combination of :hover and + works with some rare Opera versions.
7.1 or 7.2 or some beta in between, but then it was broken again. Sibling
selectors OTOH have worked since O5 and multible sibling selectors since
O6.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
Hello
thank you very much for your answers
I found a compromise : the div.test2 appears in a wrapper http://lilou.leuwen.chez.tiscali.fr//bonic.htm : leave the mouse on the blue
words.
The results are not the same in IE6
( http://lilou.leuwen.chez.tiscali.fr/ie6.gif) and Mozilla 5.0
( http://lilou.leuwen.chez.tiscali.fr/mozilla5.gif):
with IE6 the text of the page move and the box appears, with Mozilla5 the
box appears over the rest of the text.
lilou.leuwen
"Lauri Raittila" <la***@raittila .cjb.net> a écrit dans le message de news: MP************* ***********@new s.cis.dfn.de... In article Anne van Kesteren wrote:
a.link:hover + div.test2
That's called an "adjacent sibling" selector. Unfortunately, Windows versions of MSIE don't support them; IIRC they'll treat the above
selector as applying to div.test2 anywhere. So unless you're willing to write
off MSIE, you'll need to use either a "wrapper" div or an extra class
name.
Mozilla doesn't support it either (I think Opera isn't correct at this as well): <http://bugzilla.mozill a.org/show_bug.cgi?id =15608>
This combination of :hover and + works with some rare Opera versions. 7.1 or 7.2 or some beta in between, but then it was broken again. Sibling selectors OTOH have worked since O5 and multible sibling selectors since O6.
-- Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts> Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
Anne van Kesteren wrote: Mozilla doesn't support it either (I think Opera isn't correct at this as well): <http://bugzilla.mozill a.org/show_bug.cgi?id =15608>
Mozilla now supports it: Gecko/20040114
--
Anne van Kesteren
<http://www.annevankest eren.nl/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul Thompson |
last post by:
When I put a <div ...> inside a <table> specification, functionality is
not there. When I put the <table> inside the <div> everything works.
Why is that?
|
by: Lilou |
last post by:
Hello
this page works :
http://lilou.leuwen.chez.tiscali.fr/testlilou.htm
the source :
....
a.link:hover div.test2
{display : block;
position: absolute;
z-index: 1000;
|
by: Jim M |
last post by:
I have had great success with using <iframe> with overflow-y set to auto. I
can get a similar look with the <iframe> tag.
BUT... In all cases I need to have fixed heights. Is there a way to put
either tag inside an HTML <TD> and have the same kind of scrolling effect.
This would allow me to fill the screen and have the size of the scrolling
box change on resize.
Thanks in advance.
|
by: He Shiming |
last post by:
Hi,
I'm wondering how can I use <DIV> to mimic a <TABLE>.
In a bare <TABLE> without a width attribute, the width of the table get
dynamically expanded according to the content. However, <DIV> doesn't have
the same behavior.
In the CSS of the DIV tag, I have: background: #FF0000; to see the area
covered by <DIV>. It appears that <DIV> covers the entire row even if width
|
by: localhost |
last post by:
I would like to wrap all of the HTML inside of my <body> tag inside a <div> with in my code-behind. I do not want to touch the .aspx page template at all. I know how to make the body tag runat=server and give it an id so I can find it from the code-behind, but after that I want to add the <div>. One problem I see is that I just add the <div> to the <body>, all of the other controls (including the aspx <form>) will not be inside it.
What...
| |
by: Gustaf |
last post by:
I'm sure I've got this working before, but I always forget how to do it,
because CSS isn't intuitive in this case. I got a simple 2 column layout:
<div id="container">
<div id="left">
</div>
<div id="right">
</div>
|
by: wilq |
last post by:
I got a little problem, maybe You could help me out.
I have one layer that is used to darken all content on page (opacity
50%) to make other layer more visible.
If i show two separate Layers - darkenLayer with z-index:1, and a
other layer with z-index:2 - everything is ok. But i would like to do
something like this:
<DIV id="darken"></DIV>
|
by: Patricia Mindanao |
last post by:
Assume I have a HTML web page with a pre-defined <div...</divarea.
When the users clicks now on a certain link on this web page (outside or inside this "div" area)
then the content of a file say "first.html" (currently still on the server) should be loaded
and filled into the existing <div>...</divarea in the current Web page and displayed.
How can I do this in detail?
Pat
|
by: prino |
last post by:
Hi all,
I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error, Error Line 166,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |