Forum Discussion
Need help with position of details box after enlarging promoted links
Hello everyone,
I've successfully resized my promoted links and everything looks great, except the details box (AKA the overlay tile that includes the tile and description) isn't working exactly the way I would like it to.
When I enlarged my tiles, the details box before hovering was far too high on the tile. So I nudged it down by setting the top-margin of the details box @ 40px. Now it looks great before hover, but after hover the details box retains the 40px top-margin. In other words, after hovering there is still a 40px gap between the top of the details box and the top of the tile, wheras I would like it to completely cover the tile.
I have searched everywhere online, have tried so many different combinations of code, but nothing works. I am not a CSS programmer just a lay-person figuring this stuff out. Usually I am able to get it own my own, but I am super stuck here. Thanks in advance for any help you are willing to offer.
My code:
/*change the size of the tile canvas*/
#WebPartWPQ8
.ms-tileview-tile-root {
width: 186px! important;
height: 186px !important;
</style>
/*change the size of the tile*/
#WebPartWPQ8
.ms-tileview-tile-content {
width: 181px !important;
height: 181px !important;
</style>
/*change the size of the details box*/
#WebPartWPQ8
.ms-tileview-tile-detailsBox {
width: 181px !important;
height: 181px !important;
margin-top: 40px;
</style>
<style>
/*change the size of the image on the tile*/
#WebPartWPQ8
div.ms-tileview-tile-content > a > div > img {
height: 181px !important;
width: 205px !important;
}
</style>
/*changes height of text on the details box*/
#WebPartWPQ8
.ms-tileview-tile-titleMediumCollapsed {
height: 20px !important;
</style>
1 Reply
- Rainy ReganFormer Employee
I finally figured it out by myself. Posting the final code here - perhaps it will help someone else down the line.
Note that "WebPartWPQ8" is the id of the specific promoted links list I'm working with on the page, as I'm using multiple promoted links lists. This ID can be found using inspect element (right click while hovering over your promoted links part on the page).
<style type="text/css">
/*change the size of the tile canvas*/
#WebPartWPQ8
.ms-tileview-tile-root {
width: 186px! important;
height: 186px !important;
</style><style type="text/css">
/*change the size of the tile*/
#WebPartWPQ8
.ms-tileview-tile-content {
width: 181px !important;
height: 181px !important;
margin-bottom: -40px !important;
</style><style>
/*change the size of the image on the tile*/
#WebPartWPQ8
div.ms-tileview-tile-content > a > div > img {
height: 181px !important;
width: 205px !important}
</style><style>
/*changes height of text on overlay*/
#WebPartWPQ8
.ms-tileview-tile-titleMediumCollapsed {
height: 20px !important;
</style><style type="text/css">
/*change the size and position of the overlay box*/
#WebPartWPQ8
.ms-tileview-tile-detailsBox {
width: 181px !important;
height: 181px !important;
margin-top: 40px;
</style><style type="text/css">
/*remove the top margin from the details box after hovering with your mouse*/
#WebPartWPQ8
.ms-tileview-tile-detailsBox:hover {
margin-top: 0px;
</style>