Solved

Problem with <div> disabling link

Posted on 2011-02-27
2
193 Views
Last Modified: 2012-08-13
The following code works fine (I'm using php to fetch data from mySQL);


          echo '<a href="download_resume.php?download_file=' . $data['Resume'] . '&type=' . $data['Resume_type'] . '&size=' . $data['Resume_size'] . '">Download Resume</a><br>';
          echo '<a href="download_resume.php?download_file=' . $data['Cover'] . '&type=' . $data['Cover_type'] . '&size=' . $data['Cover_size'] . '">Download Cover</a><br>';

But I want these to appear side-by-side (on the same line), so I add:

      echo '<div id="resume_wrapper">';
          echo '<a href="download_resume.php?download_file=' . $data['Resume'] . '&type=' . $data['Resume_type'] . '&size=' . $data['Resume_size'] . '">Download Resume</a><br>';
       echo '</div>';
      echo '<div id="cover_wrapper">';
          echo '<a href="download_resume.php?download_file=' . $data['Cover'] . '&type=' . $data['Cover_type'] . '&size=' . $data['Cover_size'] . '">Download Cover</a><br>';
      echo '</div>';

with css:

#resume_wrapper {
      padding-top: 10px;
      padding-left: 0;
      padding-bottom: 20px;
      position: absolute;
      left: 0;
}

#cover_wrapper {
      padding-top: 10px;
      padding-left: 10px;
      padding-bottom: 20px;
      position: absolute;
      left: 165px;
}

Now the display is as I want it, but the hrefs no longer work. As I roll my cursor over the links I see nothing.

Any ideas?
0
Comment
Question by:jimdgar2
2 Comments
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 250 total points
Comment Utility
This works with the piece of code you posted, ther has to be something else on the page that covers the divs with absolute positioning and disables the links. Need some more code too se what's wrong.
0
 

Author Comment

by:jimdgar2
Comment Utility
The code is too long to post here.

Since I don't know of anything that would disable a link, I solved the problem by using display: inline.

Thanks anyway
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now