Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6131135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:56:20+00:00 2026-05-23T16:56:20+00:00

I have a link and an iframe side-by-side. I want the link to appear

  • 0

I have a link and an iframe side-by-side. I want the link to appear over the iframe. This occurs inside of a td element. this pattern is iterated over a few rows. When I use relative css positioning, I am able to display the link over the iframe, but the space the link would have been in, still appears. and it add unnecessarily to the column height. I want to eliminate this space. How can I do this?

I looked at this but it seems that this solution would still jack up the tr/td height. I also have a sample of my issue

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:56:21+00:00Added an answer on May 23, 2026 at 4:56 pm

    Collapsing the lineheight should do it. Be sure to put a measurement, and not just “0” so it will work in ie6. I added the .collapse class to the divs containing the anchors. http://jsfiddle.net/grs53/20/

    HTML

    <table>
        <tbody>
            <tr>
                <td class="donotwant">
                    <div class="collapse">
                        <a class="top" href="bing.com">link</a>
                    </div>
                    <div>
                        <iframe class="bottom" src="http://www.google.com" ></iframe>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="donotwant">
                    <div class="collapse">
                        <a class="top" href="bing.com">link</a>
                    </div>
                    <div>
                        <iframe class="bottom" src="http://www.wikipedia.com" ></iframe>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    

    CSS

    .donotwant {
        border:2px dotted green;
    }
    .top {
        top:80px;
        left:120px;
        position:relative;
        z-index:2;
        background:red;
    }
    .bottom {
        position:relative;
        z-index:1
    }
    .collapse {
        line-height:0px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following link in a.aspx file: <a href=a.htm target=iframe>A</a> I want to set
I want to update one iframe from another. I have a link in one
I have link that calls a function when clicked: <a href=javascript:spawnMenu(this); id=link1>Test1</a> To make
I have link for example domain.com/de/controler/action?param=value and I want make actionlink to keep same
I have this link in a template: <a href={% url show_item item.id %}>Item 1</a>
I have a link, with which i want use plus, which will change color
I have a link which looks like that: www.domain.com/file.php I want to create .htaccess
I have a link button control on my home page side bar nav. When
I have a script that write a iframe into the page. I want to
I have a link tag for which I want to add a background image.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.