473,748 Members | 9,913 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5361
On Tue, 17 Aug 2004 21:35:20 +0100, glutinous <gl*********@ya hoo.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*********@ya hoo.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
4217
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, position block A somewhere; then create blocks B thru Z which intend to have specific positions relative to A--above, below, left, and right. i understood the standard to say "position:absolute" is actually relative to the most recently positioned...
3
19782
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 test case element1 and element2 should be placed side by side inside a centered white container element: http://www.markusernst.ch/test.htm
4
14727
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 coordinates of mouse position. based on left of the top of my image is 0 0 (X Y coordinates) otherwise, I need to find out position of my image so I can calculate.
6
6082
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 1.5.0.2 and Opera 9.0 build 8367. Firefox 1.5 and Opera 9 will just ignore the CSS declaration
2
4250
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 boxes. If I want to position an image over the GridView just below, for instance, the textbox in row 4 of the GridView. I don't care that it covers the other textboxes. I am successfully obtaining the textbox and the image objects in client-side...
4
26489
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
2808
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 another sources how to do that, so i tried to add "position:absolute;left:525px;top:250", i succeed moving the first player but i couldn´t move the second, in change it appears besides the first one every time i move the first one, could you help me? how...
10
3273
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 its position. However, looking at other people's stylesheets, I often see 'position: relative' applied to elements but without the use of top, left etc., which makes me think using 'position: relative' has some other effect that my book has...
5
4392
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 position:fixed style (have also tried position:absolute as well). On my page I have a button with a style of "top:50%; position:relative;" and this button is appearing on top of the <div> element that is supposed to be preventing user interaction. I...
0
8987
marktang
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...
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9534
Oralloy
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...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8239
agi2029
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...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
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();...
0
4597
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.