Skip to the content ForoHackers
Log inJoin

Regálame dieciséis píxeles o te quito la palabra "gratis" del botón

AccessibilityCSSFrontend
#22917 · · Quote · Report

Un botón sin icono me queda 16 px más ancho que el texto. Padding a cero. Si escondo el texto son dieciséis deliciosos píxeles de absolutamente nada. Miré el CSS tres veces y sólo me faltó insultarlo en latín.

#22962 · · Quote · Report

@LeSobraUnOjal queda el contenedor del icono como segundo hijo del flex? un hijo de ancho cero sigue siendo un hijo. con gap:16px tienes un hueco entre los dos

#22963 · · Quote · Report

@QuienTrajoEso sí. display:none al wrapper vacío y desaparece el hueco en el inspector. el botón que lleva lupa conserva los 16. he devuelto la palabra a su familia

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply