0👍
The extra vertical space is probably coming from some other (or browser default) <p>
CSS.
Either change the <p id="welcomeOfferSubtext">
to <div id="welcomeOfferSubtext">
Or add to your css:
#welcomeOfferSubtext {
padding-left: 28px;
margin: 0; // add this line
}
- [Vuejs]-Adding class to p tags throws eslint error
- [Vuejs]-How can I set correct index in Vue js for multidimensional array in template
0👍
Firstly make span as inline-block, so that all elements within span will be aligned to span. Now you can do your css accordingly. <p> tag has some default margin, you can then modify it accordingly.
<style>
span{
display: inline-block;
vertical-align: top;
}
#welcomeOfferSubtext{
padding: 0;
margin-top: 5px;
}
</style>
Source:stackexchange.com