简体   繁体   中英

How to remove white space in a p tag between header and content on Wordpress?

So Wordpress has put all of my content in ap tag and it makes a white gap between it and the header. I can't figure out how to get rid of this gap! The image is classed as welcome.

I tried this but it still leaves a white gap

article p {
    margin: 0;
    padding: 0;
}

.welcome {
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
}

picture of gap with inspect element shown

SOLVED

Instead of using an img in this situation I used a div with the image as the background, no white space at all now. Thanks tho for everyone who replied.

This should do the job:

article p {
    visibility: hidden;
    width: 0px !important;
    height: 0px !important;
    padding: 0px !important;
    margin: 0px !important;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM