i added some css code to make an element have less margin. it looks fine on desktop but mobile things look off and overlap. any thoughts on how to make this look better on mobile? The second area of code doesn’t seem to apply.
p.p2 {
margin-top: -50px;
}
@media only screen and (max-width: 769px) {
.p.p2 { margin-top: 0px; !important; }}
Hey elsrick91,
You’re targeting the class p instead of the element p in your code, try this instead:
@media only screen and (max-width: 769px) {
p.p2 { margin-top: 0px; !important; }}
Best regards,
Rikard
ok. thanks that worked . so take out the period.
Hi,
Yep, remove the period. I’m glad you were able to get this issue solved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon