Environment: SharePoint 2013
I`ve 2 WebParts created in SPS2013, in order to align the WebPart on my SharePoint homepage. I had set the width of WebPart 1 using CSS. However that impact the size of the other WebPart.
Reason - value: div.section-content-wrap (responsible for the body of the webpart) is set as the same value for both WebPart.
My CSS Code -
div.section-content-wrap {
height: 400px;
}
Please suggest how can I just decrease or increase the height of content area for WebPart 1 only?
div.section-content-wrap
CSS rule; with seeing more of the markup, we can suggest a sufficiently unique selector that only gets applied to the one web part you want.code
/* div.section-content.warp for webpart named NEWS / p:nth-child(div.section-content-wrap) { height: 450px; } / div.section-content.warp for webpart named EVENTS */ p:nth-child(div.section-content-wrap) { height: 400px; }code