Home › Forums › Support › Image align left or right doesn´t work on mobile This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts April 30, 2019 at 10:40 am #884667 Sonja Hi there, I have some small images with alignleft or alignright. But if i make the browser smaller or look at it on mobile, then these images are displayes as center. This looks not so nice, because the text does not float around them anymore. What could be the problem? April 30, 2019 at 1:38 pm #884805 DavidStaff Customer Support Hi there, you could add this CSS to force them to the width of the content for mobile devices: @media (max-width: 768px) { .alignleft, .alignright { width: 100%; margin-bottom: 1.5em; } } April 30, 2019 at 1:48 pm #884822 Sonja Hi David, no, that does not work. With that code, the images get very big and does not align left or right. April 30, 2019 at 1:53 pm #884830 DavidStaff Customer Support To keep them floated then this CSS should do the trick: @media (max-width: 768px) { .alignleft { display: inline; float: left; margin-right: 1.5em; } .alignright { display: inline; float: right; margin-left: 1.5em; } } Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In