Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1410535

    ourphn
    Participant

    Hi

    I want all images on this page to be 189px x 252px http://www.ourphn.org.au/wordpress/population-health-data/

    Is there a way I can use CSS to tell all the images to display at that size?

    Thanks in advance

    #1410536

    ourphn
    Participant
    This reply has been marked as private.
    #1410832

    Friech
    Moderator

    Hi There,

    Thank you for writing in! Please add this on your Custom > Global CSS on Customizer.

    @media (min-width: 768px) {
    	.x-img.fixed-width-img {
    		width: 189px;
    	    height: 252px;
    	}
    }

    Then add a class fixed-width-img to each of those images element.


    screenshot

    Cheers!

    #1421211

    ourphn
    Participant

    That worked great, but I used to have center align in the class box so all the images would be center aligned, is there a way to have the images all the same size and center aligned?

    Thanks

    #1421280

    Paul R
    Moderator

    Hi,

    Please note that you can add multiple class in the class field.

    You just need to separate it with one single space.

    eg. fixed-width-img center-text

    Thanks