I am currently building a portfolio and I want to get a display: inline element to work when the screen gets shorter.
I have the following code:
HTML
<div>
<p> Hello there! </p>
</div>
CSS
div {
margin: 80px;
}
div p {
font-size: 70px;
margin: 0;
display: inline;
background: orange;
padding: 50px;
}
LINK: https://jsfiddle.net/bwn8c4gr/
When I resize the width of the web browser, you can't read the text and there is no 'padding-right' and 'padding-left' on the p-element.