473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Image with footer link problem

1
Hello,

I have the following code for an image with a footer.

<a href="empty.html" target="_blank"><DIV style="width: 100px;">
<img style="WIDTH: 100px; HEIGHT: 50px" alt="alt text" src="sheet.jpg"></img></br>
<DIV class='footer' style='width: 100px;'>Here comes the footer</DIV></DIV></a>

The problem:
The image is not clickable and the footer is, while the image must be clickable and the footer not.

This because the footer text falls in the <a> tag but the code is generated from a cms and cannot be althered that easy.

Already tried several option with div and span tags but all fail.

Anyone have an idea to make the image clickable and the footer not ?

Thanks!
Jul 18 '07 #1
1 3105
Are you asking to somehow turn off the link on the text while NOT updating the HTML code? Local styles will over-write an external CSS ...

Otherwise you can just put the anchor tag around the image:

<DIV style="width: 100px;">
<a href="empty.html" target="_blank"><img style="WIDTH: 100px; HEIGHT: 50px" alt="alt text" src="sheet.jpg"></a><br />
<DIV class='footer' style='width: 100px;'>Here comes the footer</DIV></DIV>

Putting the <a> tag around the entire DIV like you have it will link up everything (IE may not recognize that; Firefox does).

Also, use <br /> not </br> as that's a closer.

If you absolutely can't change the code, you can add too your footer class no style attributes for links ... so it won't be apparent that it's a link ...
Jul 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari...
3
by: d3vkit | last post by:
Okay I've got a problem which wouldn't be a problem if IE was not around, but yeah, IE is giving me trouble. I've got a tag-cloud that is on my page; everything was fine. Sort of like this:...
3
by: Sven C. Koehler | last post by:
Hello, the html below displays a box (#container) with a #footer and an #image inside. Is there any way how I could get rid of declaring max-width and max-height for the #image? The #image...
0
by: Iain | last post by:
Hi I am using Borland Developer 2006, C# web application. Fairly new to the .net platform and very new to repeaters. I have 2 repeaters on a page, both of which are filled from a database....
4
by: yatin | last post by:
hi, friend. i have a problem in image validation plz check it. i have to include a image validation in foam 1. but i sending a details through form2. But when i include a image validation in foam1,...
1
by: gnewsgroup | last post by:
I have a user control called Footer.ascx, in which a background image is inserted like so: <div id="footerdiv" style="background-image:url('Images/ mybackground.jpg');...
16
by: stevedude | last post by:
CSS newbie again. I have a problem trying to get coffee mug images within anchor tags to center with my link text for a vertical list menu. If I use the horizontal/vertical properties of...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
2
by: studentofknowledge | last post by:
For some unknown reason ie is placing images I have in a div in a weird way. One image is overlapping another but this problem is not occuring in mozilla. I have looked at my code over and over again...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.