I was intending to set the p tag next to my image and moving the top a bit.
The code as following:
<style>
* {
margin:0;
padding:0;
}
p {
display:inline-block;
margin-top: -20px;
}
</style>
<body>
<img src="myimg.png">
<p>this is the intro of the page</p>
</body>
I found no matter what value I set to the margin-top or margin-bottom of the <p> tag, it won't work as expected, is it something problem with calling display:inline here?