Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253292
    luislema
    Participant

    Hello, I would like to center a gallery caption “Baby angry bird” here https://themagicalhook.com/animals/

    I tried

    figcaption,
    .wp-caption .wp-caption-text{	 
        text-align: center !important;
    }
     
    #content .gallery dd.gallery-caption {
        text-align: center !important;
    }

    But the first one only centers the image caption not the gallery caption. Any help would be much appreaciated!

    Thanks.

    Luis

    #253306
    luislema
    Participant

    I tried this:

    figcaption{
    	position: absolute;
    	bottom: 60px;
    	left: 400px;
    }

    It shows ok on desktop but it doesn’t show the caption on mobile.

    #253310
    luislema
    Participant

    I got it to work!

    figcaption{
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #253324
    Skandha
    Participant

    @luislema: Glad you were able to figure it out. Have a good day! 🙂

    Kind Regards,
    Skandha

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Gallery caption alignment’ is closed to new replies.