Solved

Clickable Image With Description (Example Shown)

Posted on 2010-09-18
3
279 Views
Last Modified: 2012-05-10
Good Evening Experts,

Hopefully there is someone around that can answer this. I'm trying to mimick something that was in a temporary wordpress blog of mine, into my new asp.net webpage.

Here is the problem

I need to have an image, with a black bar at the bottom at 75% opacity that has the title of the blog post in it. The image and bar as a whole needs to be clickable as a link.

You can see what I'm doing at http://www.wowplatinum.com - Please look at the 5 images at the bottom of the home page.

Now please look at http://blog.wowplatinum.com and you will see a similar setup in the top three images.

Essentially I'm trying to mimick this look and feel into the 5 images posted at the bottom of the first page described.

If someone can help me I would be very grateful!

Thank you in advance for your time!

- Tsqlguy
0
Comment
Question by:tsqlguy
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
arweeks earned 500 total points
ID: 33710086
The second link, the image isn't clickable, just the link below.  

Have you tried replicating what they are doing?  They start with a holding div, (background image is the tile image), then a link, then a table to hold everything with another div using the opaque image as a background.  Then they close it all off.  It's not particularly elegant, but it seems to answer to your needs OK

<div style="width: 188px; border: 0px; height: 188px; background-image: url('Images/Articles/Mini/PiratesDay.png');
                                        vertical-align: bottom;">

                                        <a href="CP.aspx" style="text-decoration:none;">
                                            <table style="width: 188px; height: 188px; border-collapse: collapse;" cellpadding="0">
                                                <tr>
                                                    <td style="vertical-align: bottom;">
                                                        <div style="background-image: url('Images/Background/OpaqueBack.png'); color: White;
                                                            font-family: Arial; padding:2px;">
                                                            [Event: Pirates' Day]
                                                        </div>
0
 
LVL 3

Author Comment

by:tsqlguy
ID: 33710105
It seems as if the code you posted back to me is exactly what I have on my website right now.

It seems to work part of the time in firefox but some of them aren't working... This is the code i have right now that doesn't always seem to work...


<div style="width: 188px; border: 0px; height: 188px; background-image: url('Images/Articles/Mini/PiratesDay.png');
                                        vertical-align: bottom;">
                                        <a href="CP.aspx" style="text-decoration:none;">
                                            <table style="width: 188px; height: 188px; border-collapse: collapse;" cellpadding="0">
                                                <tr>
                                                    <td style="vertical-align: bottom;">
                                                        <div style="background-image: url('Images/Background/OpaqueBack.png'); color: White;
                                                            font-family: Arial; padding:2px;">
                                                            [Event: Pirates' Day]
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </a>
                                    </div>

Open in new window

0
 
LVL 3

Author Comment

by:tsqlguy
ID: 33710113
Ahh excuse me I see what you're saying for some reason I thought the image on the second link was clickable.

Do you know of a way that I could do it that would work, because what I have now seems to work about 60% of the time.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
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…

914 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

18 Experts available now in Live!

Get 1:1 Help Now