Okay
  Public Ticket #1929895
media + text block format
Closed

Comments

  •  3
    gfaniz started the conversation

    Dear support,

    It seems that the default vertical alignment of the text in the "media+text" block in a page, is at the center (check the 4th photo, a lady standing among marble portico).

    I would like to align it with the bottom side of the foto.

    How should I do that?

    I already tried adding in the custom css box

    .has-large-font-size
    {vertical-align:text-bottom}
    .wp-block-media-text
    {vertical-align:text-bottom}

     but it seems not to work.

    Thanks

    Kind regards

    Giuseppe


  •  296
    Paul replied

    Hello Giuseppe!

    As I checked the source code of your images, it looks like you are currently using the Gutenberg editor (Block editor) for adding those images. I personally have never created this kind of layout with the block editor so I am afraid I am not sure if there is an option to change the location of the image caption of the image block (but I believe it has).

    I would recommend trying all the options of the image block and look for the option to change the location. But if you need custom CSS to completely override the styles of the block, please try:

    .wp-block-media-text {
        display: block;
    }
    .wp-block-media-text .wp-block-media-text__content {
        padding: 0;
    }
    

    Regards,
    Paul

  •   gfaniz replied privately
  •  296
    Paul replied

    You're welcome, Giuseppe!smile.png