A table with yellow background is on top with position fixed.
Two rows are in the table.
The first row has cyan background at the left side and right side.
The second row has silver background at the left side and right side.
The first row has 3 cells with following quote.
The second row has 3 cells with following quote.
I used table on the page for express what I want more clearly.
Now I like to make it like the following.
a row only is shown.
it has 3 columns like the following.
Although a row only is shown, it might actually has another row over the row, maybe with different higher z-index.
A link to gmail with the anchor text “gmail” is shown over the left cyan column.
if you click the anchor text “gmail”, it will go to gmail.
if you click the other part of the anchor text “gmail” in the left cyan column,
it will go to yahoo.
A link to gmail with the anchor text “youtube” is shown over the right cyan column.
if you click the anchor text “youtube”, it will go to youtube.
if you click the other part of the anchor text “youtube” in the right cyan column,
it will go to youtube.
There are 3 columns on the page at http://form.kr/test01/test3.php.
The background color of the 1st column is pink
The background color of the 2nd column is yellow.
The background color of the 2rd column is cyan.
The first pink column has a link to yahoo.
If you click anywhere on the cyan block, it will go to yahoo although there is no anchor text “yahoo”.
The second yellow column has a link to google.
If you click anywhere on the yellow block, it will go to google although there is no anchor text “google”.
The third cyan column has a link to sitepoint.
If you click anywhere on the cyan block, it will go to sitepoint although there is no anchor text “sitepoint”.
As mentioned in your other thread (to which you haven’t replied or acknowledged yet) it would be better to use position:sticky instead of position:fixed these days.
You can position the three anchors at the top quite easily without a table or without nesting divs inside the empty anchors.
I’m guessing that this is just a learning exercise as you don’t really want empty anchors leading to somewhere that no one knows. Indeed that may be considered a risky behaviour and should be avoided.
If its a learning exercise then all well and good
As Erik said above it’s unclear where you want the second row but it sounds like you want it to cover the first row which again is very odd behaviour unless you are just practising?
You are not allowed to nest anchors, but you could use other rmeans to overlay a small link over a larger. How this is done is somewhat dependent of where the small link should be placed over the large.
Also why are the anchors expanded by a div and not displayed block with their own dimensions?
As Erik said the only way to do it is to overlay the anchors by positioning them on top of the other anchors. This will involve magic numbers and fixed widths in order to be able to position the elements correctly.
Check my previous post and see if that’s what you wanted or not. If it’s not correct then explain what needs changing exactly and we can progress from there.
It is what I want.except the anchor text “youtube” need to be on the most right.like the anchor text “youtube” at http://form.kr/test01/test2.php
Now I like to combine the pages into a page because the contents of the center is dynamic.
It can be a text sometimes, a link another times, or a text which includes a link other times.
As I change the dynamic text to text and link going to facebook, the facebook link is changed going to the right and youtube link is being centered.
I like to make it youtube link is on the most right and facebook link is centered because face book link is followed by “centerText and” is as a whole a dynamic part.
Gmail link which is on the left most and youtube link which should be on the most right are static but facebook link is dynamic.
“Dynamic” means it can be a text, a link, text and link, or link and text changing dynamically by coming from database,
How can I make it dynamic center with static gmail on the most left and youtube on the most right?
To me it sounds like you could rearrange the html to get the links where you want with the present css?
Maybe that’s not the problem?
I think if you could use the html as it is in the test page and describe how you want those links to appear, I could better understand how it’s supposed to work.