• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

MG 1.1 Orphan <div id="media"> ...?

Freelancer

Well-known member
#1
In the template...
xengallery_media_view

...there is a <div> with no content but id="media". It has a margin-bottom: 5px and shifts the layout down... does it have anything else as purpose or can it be removed?

media-id.jpg
 

Chris D

XenForo developer
Staff member
#2
It's an anchor, so that when you use the arrow buttons/keys to navigate between media, you are anchored to that element so you don't have to scroll. It may just be that the margin is unnecessary in which case just cancel that out in EXTRA.css:
CSS:
.xengallery_media_view #media
{
    margin-bottom: 0;
}