Amending image and content layout on category page

  • rodeboy

    #4843

    I’m sure is staring me in the face, but on my page

    http://www.jazzjam.org.uk/category/the-musicians/

    I wish to get rid of the grey border around the images, and in addition put the text vertical alignment in the middle. I know how to do this on pages/posts but just can’t find the right place to do it for the category page.

    Many thanks in advance.

    Regards, Chris

    Mod

    Kenneth John Odle

    #29457

    Moved to Support.

    For the images, try this custom CSS:

    img.attachment-thumbnail {border:none;}

    Not quite sure what you mean by the other bit.

    rodeboy

    #29458

    Brilliant, efficient as ever Kenneth (sorry I didn’t put in Support)

    Just looking to put the text in the middle (not top or bottom) like the actual posts are, where I would click on ‘Middle’ for vertical alignment in cell properties.

    Hope that this is clear.

    Thanks again, Chris

    Mod

    Kenneth John Odle

    #29459

    Those excerpts are each wrapped in their own <div>. They are not part of a table, so there is no vertical alignment. There’s no way that I know of to control the vertical alignment.

    Tables are problematic for a variety of reasons. They should be used to display tabular data, but not for page layout.

    rodeboy

    #29460

    Thanks Kenneth, it’s not vital! I appreciate you taking the time to consider.

    Have a good day,

    Chris

    Mod

    Kenneth John Odle

    #29461

    There is probably a way to do this, but it would involve creating a child theme with a separate category template, with a tweak to the code to adjust the margin on top and bottom. How comfortable do you feel creating a child theme and playing around with some PHP?

    rodeboy

    #29462

    Now that I’ve put some content on the posts I think it looks okay now. When there was just the one line it looked like the text had floated to the surface, leaving too much empty space.

    I’m happy.

    Thanks very much though,

    Chris

    P.S. I know that the pictures aren’t quite right, I need to take some more and will then upload those on to the site.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.