<!DOCTYPE html> <html> <button style="padding: 0; margin: 0; border: none; background: transparent; -moz-appearance: none; width: 0; height: 0; font: inherit; color: black"> Some text <div style="background: green; width: 100px; height: 100px"></div> </button>