Hello everyone, there is a block with a width of 20%, it is wrapped in a link, everything is fine, but for some reason, the link only takes 100% of the width of the document, tried and set the width, and so on - it doesn't work out, I can't understand The reason, I read how to wrap the block in a link, but as described - it does not work, can someone tell me. Here is the code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>border-spacing</title> <style> .div1 { display:block; width:20%; height:80px; background:red; } </style> </head> <body> <a href="#ler"><div class="div1"></div></a> </body> </html>