Solved

Problem with <div> disabling link

Posted on 2011-02-27
2
198 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
ID: 34993112
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
ID: 34993258
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sort Order Icons on HTML Table 3 33
Can't get container centered 4 24
Multiflying 2 Input Text On a Table 7 31
How to create a table with buttons 3 21
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

861 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