HREF for image & 3 lines of text ...

Posted on 2016-08-08
Last Modified: 2016-08-23
I am stumped ... How can I make this image and the 2-3 lines of text 'clickable"  ?   Do I have to HREF each individual item, or is there a way to wrap this whole set of code with 1 HREF, possibly using DIV tags?

I inherited the code ... it looks something like this:

              <a href="#">
                <div class="features-head">
                  <img src="img/thumb.jpg" alt=" ">                        
                <div class="description-first">
                  <p>Redesign and update your home</p>
                  <p>Be the first in your neighborhood</p>

Of course I tried changing the first line to:
<a href="pagename.php">
which didn't work.
Question by:bleggee
  • 3
  • 2
  • 2
  • +1
LVL 108

Expert Comment

by:Ray Paseur
ID: 41748194
Does this exist somewhere "in situ" so we can see the complete picture?  I can see nothing wrong with your anchor tag, so I think there may be something else involved that is causing your "clickable" issues.

Author Comment

ID: 41748218
Sure.   If nothing obvious pops out to you, I am going to troubleshoot a little more. Learn stuff that way !  ;)   If I can't fix or isolate the issue, I'll send the info for the site page etc.
LVL 21

Expert Comment

by:Kim Walker
ID: 41748230
This would depend on what doctype you're using. The code you've presented is valid in HTML 5, but not in previous versions of HTML.
LVL 108

Accepted Solution

Ray Paseur earned 250 total points
ID: 41748561
This works the same in HTML4 Transitional and HTML5.  These are the two I see most often; didn't test other doctypes.
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails


Author Comment

ID: 41749625
Interesting about the HTML 4 vs 5. Looks like I have DOCTYPE for 5.

Here's the link to the test site. I am stumped:
In the index.php file, there are 2 rows of 4. Top row links are not working. Bottom row of links are working fine.
I've attached the index.php and the 3 include files in case you need them.

Any help is appreciated!
LVL 21

Assisted Solution

by:Kim Walker
Kim Walker earned 125 total points
ID: 41749799
The problem is that a javascript error is being thrown whenever you click on the linked group of elements. The error is related to flexslider but I can't find any flexslider configuration. But then I'm not that familiar with flexslider so it may be able to work without any custom configuration. Do you intend to use flexslider on these linked groups of elements and what flexslider effect do you hope to trigger by clicking the linked elements group?
LVL 19

Assisted Solution

NerdsOfTech earned 125 total points
ID: 41765528
try linking the LI elements instead.

<a href="test.php"><li>

Open in new window


Author Comment

ID: 41765914
Thx all!

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

Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

760 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

22 Experts available now in Live!

Get 1:1 Help Now