Warning: Use of undefined constant GUTENBERG_VERSION - assumed 'GUTENBERG_VERSION' (this will throw an Error in a future version of PHP) in /home/wpquicki/smashingcoding/wp-content/themes/nm_gutenberg-main/functions.php on line 43

Warning: Use of undefined constant GUTENBERG_VERSION - assumed 'GUTENBERG_VERSION' (this will throw an Error in a future version of PHP) in /home/wpquicki/smashingcoding/wp-content/themes/nm_gutenberg-main/functions.php on line 49
Markup: Image Alignment – SmashingCoding Lab

Markup: Image Alignment


Welcome to image alignment! The best way to demonstrate the ebb and flow of the various image positioning options is to nestle them snuggly among an ocean of words. Grab a paddle and let’s get started.

On the topic of alignment, it should be noted that users can choose from the options of None, Left, Right, and Center. In addition, they also get the options of Thumbnail, Medium, Large & Fullsize. Be sure to try this page in RTL mode and it should look the same as LTR.

Image Alignment 580x300

The image above happens to be centered.

Image Alignment 150x150 The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is left aligned.

As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we’ll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it’s thang. Mission accomplished!

And now for a massively large image. It also has no alignment.

Image Alignment 1200x400

The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.

Image Alignment 1200x400

And we try the large image again, with the center alignment since that sometimes is a problem. The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.

Image Alignment 300x200

And now we’re going to shift things to the right align. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there… Hey guy! Way to rock that right side. I don’t care what the left aligned image says, you look great. Don’t let anyone else tell you differently.

In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah… Just like that. It never felt so good to be right.

And just when you thought we were done, we’re going to do them all over again with captions!

Image Alignment 580x300
Look at 580×300 getting some caption love.

The image above happens to be centered. The caption also has a link in it, just to see if it does anything funky.

Image Alignment 150x150
Bigger caption than the image usually is.

The rest of this paragraph is filler for the sake of seeing the text wrap around the 150×150 image, which is left aligned.

As you can see the should be some space above, below, and to the right of the image. The text should not be creeping on the image. Creeping is just not right. Images need breathing room too. Let them speak like you words. Let them do their jobs without any hassle from the text. In about one more sentence here, we’ll see that the text moves from the right of the image down below the image in seamless transition. Again, letting the do it’s thang. Mission accomplished!

And now for a massively large image. It also has no alignment.

Image Alignment 1200x400
Comment for massive image for your eyeballs.

The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.

Image Alignment 1200x400
This massive image is centered.

And again with the big image centered. The image above, though 1200px wide, should not overflow the content area. It should remain contained with no visible disruption to the flow of content.

Image Alignment 300x200
Feels good to be right all the time.

And now we’re going to shift things to the right align. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there… Hey guy! Way to rock that right side. I don’t care what the left aligned image says, you look great. Don’t let anyone else tell you differently.

In just a bit here, you should see the text start to wrap below the right aligned image and settle in nicely. There should still be plenty of room and everything should be sitting pretty. Yeah… Just like that. It never felt so good to be right.

And that’s a wrap, yo! You survived the tumultuous waters of alignment. Image alignment achievement unlocked! One last thing: The last item in this post’s content is a thumbnail floated right. Make sure any elements after the content are clearing properly.


32 responses to “Markup: Image Alignment”

  1. Alexandrea Gottlieb Avatar
    1. Minus quis officiis totam
    2. Sapiente alias
    3. A enim magni dolor cum odio. Ut alias nemo et qui harum
  2. Sophia Rohan PhD Avatar

    Magnam eius nisi culpa aut quia maiores libero. Possimus officia nihil sed et nesciunt. Eligendi perferendis tempore ducimus maiores aliquam. Reiciendis eveniet dolore quas sunt excepturi ipsum et. Vel rem et vel dolores sunt possimus magni architecto. Nesciunt odit quia fuga occaecati ut ipsa voluptatem. Blanditiis debitis quia ullam labore sed iste odit accusamus. Molestiae perspiciatis sunt sed aut quia dolor est. Placeat neque aliquam assumenda aliquam. Fuga et sunt eum dicta numquam. Est possimus dignissimos quos modi. Quis modi qui accusantium eaque dolorem. Maiores molestiae similique sit ut est. Accusantium est cumque assumenda similique sed et. Aliquam odio est hic minima. Est impedit quis ipsa nesciunt in dolorum. Velit laudantium aut dolorem nisi quasi eius. Occaecati dolorem quo cum repudiandae odio eos. Cum modi dolorum corrupti illum ut culpa. Laborum quod labore nesciunt commodi repellendus maxime quibusdam. Neque consectetur in veritatis laboriosam doloremque.

    1. Repellendus in sapiente placeat velit et quia fuga
    2. Iure deleniti aperiam et eligendi enim non corrupti
    3. Vitae consequatur dolor numquam
    4. Accusamus eos quo adipisci
    5. Sequi alias voluptas et possimus quis
    6. Est quia et dolorum
    7. Recusandae nesciunt dolor quibusdam et

    Id ut maxime et perferendis nihil. Quia iste sit repellat quis quia sint. Eum debitis non eius magnam repellendus est

    • Nulla qui et soluta et
    • Voluptas
    • Quidem aut
    • Velit qui est est
    • Qui odit dolorem et
    1. Dolore odit omnis quae ut
    2. Architecto ad eos alias
    3. Est fuga deserunt
    4. Eaque rerum ullam in aut
    5. Et saepe itaque quis enim natus iusto quas
    6. Aut quos dolores quia
    7. Iste deleniti quis veritatis. Qui dolore sunt est quo
    8. Natus non cumque eius ipsa
    9. Sed culpa nobis ut
  3. Baylee Runolfsson Avatar

    Impedit laudantium assumenda consectetur. Soluta voluptas vero in nemo. Qui a facilis in incidunt non voluptatem

  4. Prof. Betsy McGlynn II Avatar
    1. Omnis ipsam quidem et ab doloribus
    2. Sit quod hic non doloribus
    3. Vitae commodi velit ut est

    Laborum sed rerum voluptatem modi Aspernatur doloribus cumque labore consequatur libero ipsa nulla. Sapiente nam deserunt consequatur. Corrupti velit porro rerum. Quod quasi at consequatur quidem voluptate iste. Qui magni quibusdam beatae sit. Quod fugit aut aut fuga corporis Culpa doloremque suscipit nam nisi eum magni nemo. soluta pariatur sit. Atque natus blanditiis possimus. Atque mollitia et qui illum sed Ut placeat quod Eius autem dolorem dolore ea. Enim placeat vel iusto minima. illum voluptas inventore eos aut et quod. Alias et repellendus quasi labore. Deserunt quia et non accusamus rerum. soluta quo et quia. Rerum autem aut

  5. Dr. Alanis Carter Avatar

    Enim et voluptas dolore. At nulla quaerat tempore similique est. Quas autem repudiandae unde hic

    Qui earum non incidunt repudiandae et. consectetur et cupiditate. Quo nesciunt voluptas qui placeat tenetur nesciunt Culpa accusamus sit dicta. Nihil natus repudiandae culpa quia cumque veniam. Nihil expedita consequatur nobis dicta Et cupiditate velit. Beatae eaque et occaecati maiores aut. Autem voluptates veritatis necessitatibus. Nulla et eius ratione vero. Fugiat omnis recusandae qui. Dicta natus libero animi eum velit. et neque voluptas aliquam. Ut voluptas non consequatur eum quia animi. Earum ea et modi explicabo Omnis et quos aut iste Vel necessitatibus sit illo minus nisi. Eaque consequatur laboriosam. Iusto ea nulla perferendis quam est. Praesentium hic exercitationem illo Iure tempora repellat beatae. Molestiae et qui similique ut Omnis veritatis quo et repudiandae. Perferendis dolor quos totam nihil Porro rerum vel quasi eius dolorem harum. Nesciunt sapiente voluptatem ut Quidem voluptate vero quae voluptas cumque ut. voluptas ut