简体   繁体   中英

How to make the font of an HTML button bigger with CSS

I am trying to create a question mark button with no background color and a black font border but, despite on what I am writing on the font-size the button does not become bigger can someone help me on how I can achieve that? Also onclick I would like the button to have a textbox with a definition if you could give me an insight of how to do that too it would be perfect I am assuming JavaScript. Thank you: :)

 .btn{ background-color:rgba(252, 252, 252,0); border: 0 none; color:rgb(0,164,224); font-weight: 800; font-size: 60; size: 300px; -webkit-text-stroke: 2px black;}
 html: <button class="btn" id="button?">?</button>

You forgot to add px .

 .btn{ background-color:rgba(252, 252, 252,0); border: 0 none; color:rgb(0,164,224); font-weight: 800px; font-size: 60px; size: 300px; -webkit-text-stroke: 2px black;}
 html: <button class="btn" id="button?">?</button>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM