Solved

Problem with <div> disabling link

Posted on 2011-02-27
2
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

739 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