Home Forums Travel WordPress Theme Centering of images in post content

This topic contains 6 replies, has 2 voices, and was last updated by  Nooriji 3 years, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3775

    Nooriji
    Participant

    http://the.way.is/test-post-intro-page/

    The image doesn’t center although the image is class=”align center”

    Please advice

    Best

    • This topic was modified 3 years, 2 months ago by  Nooriji.
    #3779

    Johnny
    Participant

    Hi, please try open file style.css, find line 256 and add this:
    text-align: center;
    Best

    #3780

    Nooriji
    Participant

    Hi,

    I am very surprised, that this general function of aligning images doesn’t work in your theme.

    Because I did several additions in style.css, it would be good to know, where to add this text-align exactly. (text before)
    In the original file line 256 is .gallery_tip_wrap .tip_con{ margin-bottom:20px; text-align:center !important;}, but this addition shows no results. Image is still not centered.

    Additionally I need to add, that I need the possibility to align the images in all three possibilities (left, center, right), so I am not happy at all, if there is in style.css a general setting for centering all images.

    Please provide a solution, where I can align images according to the choice in the post.

    #3785

    Nooriji
    Participant

    http://the.way.is/video-test/

    Just realized that it is also not possible to center videos although it is “style=”text-align: center; ….. “

    #3788

    Johnny
    Participant

    Hi, because system will automatically wrap a p tag to the post content elements, so you can add a p tag with class value such as ‘aligncenter’ or ‘alignleft’ to the element manually when you eidt the post, something like this:
    <p class="aligncenter"><img class="size-full aligncenter" src="domain.com/img/some.jpg" alt="yellow" width="600" height="400" /></p>
    Good luck

    #3790

    Nooriji
    Participant
    This reply has been marked as private.
    #3791

    Nooriji
    Participant

    btw … centering the video player is solved … it works with <div style=”width:___px; margin-left:auto; margin-right:auto;” >

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

You must be logged in to reply to this topic.