problem with article gallery borders

  • Author
  • #120031

    Original poster

    Hi to all of you,

    love the Oxford theme so far. Perfect for my plans to set up a portfolio.
    I am not very experianced with CSS but so far it worked fine for me.

    Recently I needed to ad borders to the images in the article gallery because most of them are pages from books with lots of blankspace.

    A .gallery-item bordercommand worked well on all sides but the frame around my preview picture is a little to long at the bottom.

    can someone help me remove it ?

    I tried removing margin and padding from .gallery-item, img, dl,dt and dd.

    display: block;
    font-size: 0px;
    and line-height: 0px;

    had no effect eighter. Maybe this is connected to the “Preview Grid” Gallery type I am using.

    You can look at the issue and sourcecode at :

    I am thankfull for any clue. :)

    The blog I need help with is:


    Theme Author

    Hey there, Florian 👋

    You’re very close! Try adding this snippet to remove that unwanted space below your gallery images:

    .gallery-item img {
        margin-bottom: 0 !important;

    Let us know how that works!


    Original poster

    Perfect, that solved it.

    Thanks a lot


    Theme Author

    Great! Glad to help, Florian.

    Let us know if you have any more questions 😀

The topic ‘problem with article gallery borders’ is closed to new replies.