M
M
musya14532015-03-20 16:07:59
Layout of letters
musya1453, 2015-03-20 16:07:59

How to make width and height of element a in letter?

Greetings. I ran into the same problem while writing a letter. here is the image. de497717b5274a63bc99f1a7ca511b37.png
there are 4 links. the first link (which is clumsy) should look like the right three. but the right ones are made wrong because the whole green zone is not clickable. tell me how to fix this and make the entire field clickable.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Shvedov, 2015-03-20
@mmmaaak

display: inline-block? And set the width and height as a block element? https://jsfiddle.net/q8nada5p/

A
Arthur Koch, 2015-06-30
@dudeonthehorse

Basically, no way. There are several points here:
- support for inline-block in email clients is a big question
- if you don’t bother with touch devices, then you can simply make a green table cell and insert a white text link into it
- if, nevertheless, the entire area should be clickable, which is important for touch screens, it is better to make it up with a picture that needs to be pushed into a link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question