Solved

getting image to link to a page

Posted on 2014-01-31
3
350 Views
Last Modified: 2014-02-14
Hi Guys,

How can i get the header image here at www.ias.ie to link to another page? I am trying to set it to link to

http://www.ias.ie/?page_id=631

so when i click on the header image t brings me to that page
0
Comment
Question by:jonathanduane2010
3 Comments
 
LVL 25

Assisted Solution

by:Kyle Hamilton
Kyle Hamilton earned 227 total points
ID: 39824037
You can wrap your whole header in the anchor tag. that is allowed in html5.

However, you have some badly constructed html including unclosed tags and multiple ids of the same name. this will cause problems for you. you should try to clean up the html

<a href="http://www.ias.ie/?page_id=631">
	<div class="background-image"></div>
	<div id="header-top-container">
		... othe markup in here ...
	</div>
</a> 

Open in new window

0
 

Author Comment

by:jonathanduane2010
ID: 39824044
Thank you...

will i put in the css or in the header.php
0
 
LVL 42

Accepted Solution

by:
Chris Stanyon earned 228 total points
ID: 39824485
I would have thought you only wanted the Donate button to link to the page. If that's what you want, then remove the button from the background image and create an image just for the button. Then just wrap that image in an A tag and position it absolutely using CSS:

<a id="donateButton" href="/?page_id=631"><img src="button.png"></a>

#donateButton { display:block; height: 60px; width: 160px; position:absolute; left: 600px; top: 30px; }

Open in new window

0

Featured Post

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

Join & Write a Comment

Suggested Solutions

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

708 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

17 Experts available now in Live!

Get 1:1 Help Now