Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
turning background image into a link
Old 06-28-2008, 04:55 PM turning background image into a link
Novice Talker

Posts: 6
Name: Andrew
Trades: 0
Currently on my site I have these product boxes that show the product name and it's respective pricing. I am trying to turn it into a button so that clients can click on the jpeg as well and be led to the application process. I have not been able to get any clickable area, the text and pricing remain the same. I have posted the coding for the product box below. Any insight would be great.

PHP Code:
<tr>
<td width="94"><table width="100%" height="90" border="0" align="center" cellpadding="0" cellspacing="0" style="background-image:url(images/last_will.jpg); width:92px; height:107px; background-repeat:no-repeat;">
<tr>
<td align="center">&nbsp; </td>
</tr>
<tr>
<td height="6"></td>
</tr>
<tr>
<td align="center" >&nbsp;</td>
</tr>
<tr>
<td align="center" class="main_text_21">&nbsp;<a href="last_will/index.php?link=lastwill" class="new_but24"><?php echo $last_will ?></a></td>
</tr>
<tr>
<td height="8" align="center" ></td>
</tr>
<tr>
<td align="center">&nbsp;</td>
</tr>
</table></td>
tizpsyko is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2008, 01:05 PM Re: turning background image into a link
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
define a rule so the <a>nchors that are inside the container are set to display:block they will then fill the height and width of the parent
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-30-2008, 10:15 AM Re: turning background image into a link
Novice Talker

Posts: 6
Name: Andrew
Trades: 0
I set the display:block code in the css file. It does work but only for firefox. In explorer the jpegs remain the same and for some reason the display:block code only works on some buttons and not others. Is there another way to define a rule not through css? I am not a coder, just trying to do this on my own without having to pay someone to do something simple like this.
tizpsyko is offline
Reply With Quote
View Public Profile
 
Old 06-30-2008, 01:02 PM Re: turning background image into a link
Novice Talker

Posts: 6
Name: Andrew
Trades: 0
here is the coding that is currently on the site. It works perfectly fine in FF but in explorer right now only the borders are clickable. The display:block; command is referenced in the CSS. If someone can take a look and see if there is an error in the coding that would be great. I am really frustrated at the moment.

PHP Code:
<td width="94"><a href="last_will/index.php?link=lastwills" class="new_but24"><table width="100%" height="90" border="0" align="center" cellpadding="0" cellspacing="0" style="background-image:url(images/last_will.jpg); width:92px; height:107px; background-repeat:no-repeat;">
<tr>
<td align="center">&nbsp; </td>
</tr>
<tr>
<td height="6"></td>
</tr>
<tr>
<td align="center" >&nbsp;</td>
</tr>
<tr>
<td align="center" class="main_text_21">&nbsp;<?php echo $last_will ?></td>
</tr>
<tr>
<td height="8" align="center" ></td>
</tr>
<tr>
<td align="center">&nbsp;</td>
</tr></table></a></td>

Last edited by tizpsyko; 06-30-2008 at 01:04 PM..
tizpsyko is offline
Reply With Quote
View Public Profile
 
Old 07-01-2008, 09:06 AM Re: turning background image into a link
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You have an ENTIRE table wrapped inside an anchor element!!!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-01-2008, 11:22 AM Re: turning background image into a link
wchua24's Avatar
Ultra Talker

Posts: 357
Location: florida
Trades: 0
i will try this thanks..
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

wchua24 is offline
Reply With Quote
View Public Profile
 
Old 07-01-2008, 07:31 PM Re: turning background image into a link
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Use an area map?
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Old 07-02-2008, 03:13 PM Re: turning background image into a link
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
You might give this a try. I can't see everything, so I am just kind of guessing here, but I would venture to guess something like this might work...or get you a little closer.
Code:
<div style="background-image:url(images/last_will.jpg); width:92px; height:107px; background-repeat:no-repeat;">
<a href="last_will/index.php?link=lastwills" class="new_but24"><?php echo $last_will ?></a>
</div>
Try using this in place of the linked table and be sure new_but24 has "display:block" set.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to turning background image into a link
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30135 seconds with 12 queries