Font size issue
by jmjjeena
HTML
<div id="app"></div>
CSS
body {
background: white;
padding: 20px;
font-family: Helvetica;
}
#app {
background: white;
border-radius: 4px;
padding: 20px;
transition: all 0.2s;
}
.container {
background-color: white;
box-sizing: border-box;
border: 1px solid red;
border-radius: 5px;
width: 316px;
height: 81px;
}
.subContainer {
display: flex;
flex-direction: row;
padding: 16px 16px 12px 28px;
}
.amount {
font-style: normal;
font-weight: 500;
font-size: 32px;
line-height: 40px;
color: black;
padding-right: 8px;
}
.currency {
padding-top: 17px;
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 18px;
color: black;
}
React
class FontSize extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
return (
<div className='container'>
<div className='subContainer'>
<div className='amount'>$100000000000.00</div>
<div className='currency'>USD</div>
</div>
</div>
)
}
}
ReactDOM.render(<FontSize />, document.querySelector("#app"))