Forum Discussion
SharePoint Online Classic - Increase size of promoted link tiles to 275px using CSS
Hi Joel,
That's it exactly. I am still learning the right terminology.
If you are viewing the tile, you see the title only.
If you hover over the tile, you then see the title and description.
Thanks.
My latest attempt:
<style type="text/css">
/* tile row height */
.ms-promlink-body {
height: 285px;
width: 870px;
}
/* tile dimensions, including space between tiles */
.ms-tileview-tile-root {
width: 285px !important;
height: 285px !important;
}
/* tile overlay dimensions */
.ms-tileview-tile-content {
width: 275px !important;
height: 275px !important;
}
/* title and description overlay dimensions */
div.ms-tileview-tile-detailsBox {
width: 275px !important;
height: 275px !important;
}
/* tile background image dimensions */
.ms-tileview-tile-content > a > img {
width: 275px !important;
height: 275px !important;
}
/* image dimensions */
.ms-tileview-tile-content img {
width:275px !important;
height:275px !important;
}
/* title and description text */
.ms-tileview-tile-detailsListMedium {
background-color: rgba(0, 0, 0, 0.3);
height: 275px;
padding: 4px 7px 7px;
font-size: 14px;
line-height: 17px;
top: 40px !important;
}
/* description text class */
.ms-tileview-tile-descriptionMedium {
padding-top: 15px;
font-size: 14px;
}
/* title text when description not shown */
.ms-tileview-tile-titleTextMediumCollapsed {
background-color: rgba(0, 0, 0, 0.3);
width: 275px;
height: 40px;
position: absolute;
top: 130px;
left: 0px;
padding: 4px 7px;
font-size: 14px;
line-height: 17px;
}
.ms-tileview-tile-titleMediumCollapsed {
height: 200px;
overflow: hidden;
vertical-align: bottom;
top: 200px !important;
}
</style>
Yields an additional background/layer between the title and the image when just viewing the tile: