6 years ago
3
Topic

Hi,

I have a field that has a linked image, but the link assumes the entire width of the field and not just the image.
How can I leave the link in the image only?

Here's the field, I just want the link in the icon and it's also in the blue part: http://prntscr.com/jv8yp0

In Typography->HTML, I have the code:

<a rel="nofollow" href="/$cck->getLink('link_facebook_ht')" target="_blank"><img src="/*value*"></a>

Get a Book for SEBLOD
1283 Posts
Bucklash
6 years ago
0
Level 1

What about adding css to your image?

Make it max-width:100% etc

4229 Posts
Kadministrator
6 years ago
0
Level 1

This is a css problem, not really something for this forums, there are plenty of sources for this on the internet. You probably need to set this element to display: inline-block; and width: auto;

6 years ago
0
Level 1

Hi,

Many thanks for the answer Bucklash and Klas!

With the indicated tips, I was able to solve the situation...

Thank you!

Get a Book for SEBLOD