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

Div position relative to in-line link?

I'm assuming that this is not possible (I haven't found a way), but if
there's one thing I know for sure, one shouldn't assume anything about
what people know how to do on this NG...

Enough creeping. :-)

Is it in fact possible to relatively position a division (on a
'higher' z-index) to correspond with an in-line 'a href' link (within
text in another, absolutely-positioned 'lower' division), so that the
topmost div maintains its position relative to the link no matter
whether the page is viewed in IE, Mozilla or Opera (etc.), or whatever
the font size may be set to in the browser?

URLs of info, pointers etc. gladly received.

Thanks.

Jul 20 '05 #1
2 5341
On Tue, 17 Aug 2004 21:35:20 +0100, glutinous <gl*********@yahoo.co.uk>
wrote:
I'm assuming that this is not possible (I haven't found a way), but if
there's one thing I know for sure, one shouldn't assume anything about
what people know how to do on this NG...

Enough creeping. :-)

Is it in fact possible to relatively position a division (on a
'higher' z-index) to correspond with an in-line 'a href' link (within
text in another, absolutely-positioned 'lower' division), so that the
topmost div maintains its position relative to the link no matter
whether the page is viewed in IE, Mozilla or Opera (etc.), or whatever
the font size may be set to in the browser?

URLs of info, pointers etc. gladly received.

Thanks.


No.

The problem is that the inline link will fall wherever the line wrap puts
it, and that cannot be predicted. Therefore, we have no way to "tell" the
other div how to position itself.

The basic effect could be achieved in a few ways, all of which present
severe usability issues. Either you'd have to use a fixed width block of
text so you can control where the link would appear, or use an image as
text. But you don't want to do that. The design benefit is far outweighed
by how much it screws up optimal usability.

Jul 20 '05 #2
On Tue, 17 Aug 2004 17:11:39 -0400, Neal <ne*****@yahoo.com> wrote:
On Tue, 17 Aug 2004 21:35:20 +0100, glutinous <gl*********@yahoo.co.uk>
wrote:
I'm assuming that this is not possible (I haven't found a way), but if
there's one thing I know for sure, one shouldn't assume anything about
what people know how to do on this NG...

Enough creeping. :-)

Is it in fact possible to relatively position a division (on a
'higher' z-index) to correspond with an in-line 'a href' link (within
text in another, absolutely-positioned 'lower' division), so that the
topmost div maintains its position relative to the link no matter
whether the page is viewed in IE, Mozilla or Opera (etc.), or whatever
the font size may be set to in the browser?

URLs of info, pointers etc. gladly received.

Thanks.


No.

The problem is that the inline link will fall wherever the line wrap puts
it, and that cannot be predicted. Therefore, we have no way to "tell" the
other div how to position itself.

The basic effect could be achieved in a few ways, all of which present
severe usability issues. Either you'd have to use a fixed width block of
text so you can control where the link would appear, or use an image as
text. But you don't want to do that. The design benefit is far outweighed
by how much it screws up optimal usability.


Thank you for confirming this, and so quickly! I appreciate it...

Jul 20 '05 #3

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

Similar topics

1
by: Dave Mausner | last post by:
in general, how does css teach us to position blocks relative to one specific block? how does one specify which block is the reference for the position of others relative to it? for example,...
3
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
4
by: Jay | last post by:
Hi, How can I capture mouse position on Image? I found number of script capturing mouse position of the page. But I could not find anything based on image. What I want to find out is X Y...
6
by: Gérard Talbot | last post by:
Hello fellow stylers, When trying this page http://www.gtalbot.org/BrowserBugsSection/PercentualRelativePositioning.html I get different rendered layouts with IE 6, IE 7 beta 2, Firefox...
2
by: Dale | last post by:
This seems like it should be simple and I am pretty sure I've done similar things a hundred times before but I sure can't seem to get it right this time. I have a GridView with a column of text...
4
by: vunet.us | last post by:
I have a DIV element. How can I find mouse position (top and left) inside of this DIV? <div onMouseMove="getPositions();" style="width:200px;height:100px"></div> function getPositions(ev){...
0
by: crisscross27 | last post by:
Hi, I found a page called "myflashfetish" where you chan choose mp3 players for my space, well the problem is this, I wanted to place 2 or more players in myspace in a particular place, I read...
10
by: Mark | last post by:
According to my book on CSS, if you apply 'position: relative' to a block-level element, it will stay exactly where it is. However, you can then use top, left etc. to offset the element relative to...
5
Frinavale
by: Frinavale | last post by:
Hi! I'm attempting to display a <div> element on top of my page's content so that the user cannot interact with it while being prompted to answer a question. I have set this <div> to have a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.