Solved

Problem with <div> disabling link

Posted on 2011-02-27
2
201 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

717 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