Solved

Problem with <div> disabling link

Posted on 2011-02-27
2
199 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
REST endpoint query with a parameter 1 34
HTML <font style="color:red"> 9 51
How to escape unsafe HTML tags 4 36
CSS in HTML 5 51
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

685 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