Last.Fm Records
[resolved] Centering Album Images (4 posts)

  1. timfernandes
    Posted 1 year ago #

    Hello There! Your plugin works perfectly, I am just wondering how to center the group of albums in a page.

    I have tried creating a <div> in the page and putting the shortcode inside (with text-align:center) but the images show up all cropped in weird rectangles and with big horizontal spaces between them.

    Any help will be much appreciated.


  2. timfernandes
    Posted 1 year ago #

    Well just improved it a bit, still not 100% centered yet.

    I edited lastfm-records/last.fm.records.js in the following way:

    _css += _elemname + ' ol, ' + _elemname + ' li { margin: 0; padding: 0; list-style: none; text-align:center;} ';
    --> inserted text-align:center

    and set overflow:visible to _css += _elemname + ' a

    Now the albums are centered, but there seems to be an indentation that moves the whole thing a bit to the right...

  3. jeroensmeets
    Plugin Author

    Posted 1 year ago #

    Hi Tim, it's hard to answer these questions, as usually it's caused by css added by the theme you use.

    I'm working on new css for the next version of the plugin.

  4. timfernandes
    Posted 1 year ago #

    Yes, I just noticed that fooling around with the plugin CSS had some effect on the main menu CSS (which is very weird, since they have different CSS selectors).

    Anyway, thank you for the reply. Looking forward to the new version!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Last.Fm Records
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic