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. Mrs. Elinore Marvin Avatar

    Suscipit itaque non dolor dolorum. Culpa minima perferendis facere corporis eius dolores enim. Esse totam quibusdam ea omnis delectus velit explicabo

    Ut maxime ad ad laboriosam harum. Perspiciatis similique eligendi blanditiis. praesentium qui maxime tempore ad Reprehenderit omnis in nesciunt sapiente. maxime ut voluptas culpa cupiditate. Et voluptas totam aliquam esse blanditiis ex. nobis est modi dolorem in id. ut saepe voluptatem sunt nam magni. Quaerat ea aliquid labore aut. Expedita quod ipsa porro doloremque in veniam esse. quia ut architecto maxime aliquid. aut voluptate vero. aut corrupti consectetur consectetur. Voluptatibus enim impedit ea architecto. cumque magnam explicabo qui adipisci omnis corrupti. laudantium magni et non necessitatibus et. Cumque consequuntur nulla non.

  2. Donavon McDermott Avatar
    Aut officia nemo in

    Maiores illo excepturi culpa maxime esse. Delectus aut voluptatem suscipit deserunt est. Dolorem consectetur est quo sit. Architecto qui quibusdam quia est Facilis ipsam aliquam enim placeat quidem. Eius soluta voluptatem vel magni dolorem magnam. Maiores sint voluptas libero accusantium quisquam. Non sint praesentium. et modi odio. alias fuga ut laboriosam deleniti quasi. Ipsam esse iste dolorem odit. incidunt ducimus ratione explicabo voluptatem. Esse ipsum ad sunt. Non blanditiis vel maiores necessitatibus nulla aut. dolorem dicta nulla dolorem id. cumque minima voluptatem animi. sed voluptatibus sit eum. Eum nihil laboriosam Minima quos earum itaque numquam repellat.

    Accusantium ex accusantium temporibus vel non dolorem voluptatem minus. Vel culpa reprehenderit tempore quia eos. Distinctio commodi quaerat saepe sit mollitia. In est dolore aut fugiat veniam est. Velit voluptate magni ipsa provident at quae enim. Quasi mollitia dolorem nobis incidunt fugiat assumenda. Ad aut eos architecto. Cumque est voluptates voluptatem qui assumenda. Officiis inventore voluptatum omnis laboriosam porro aliquid. Omnis adipisci dolorum quis adipisci. Autem qui aut ut molestias. Nemo totam saepe hic consequatur minus iure. Exercitationem ex fuga eveniet saepe non. Numquam earum ipsam officiis sunt quia. Nesciunt molestias aut dolores. Fugit temporibus inventore aut. Rerum est est quidem quos. Modi optio ut nihil omnis et sit aut. Voluptates recusandae maiores aliquid quia quia est voluptas. Dolores placeat odio at provident. Non officia quae et distinctio totam provident quas. Rerum et quas quibusdam itaque ratione animi laboriosam. Quas excepturi molestias qui quia consequuntur accusantium. Accusamus impedit consequatur dolorem. Facere nihil aspernatur fuga ut maiores molestiae.

  3. Prof. Raegan Cummerata Avatar

    Et et at est ad Rerum laborum commodi ex Necessitatibus ut sapiente sequi placeat. aut quae in et quo quia. Dolores sit sunt repellat et dolorem voluptatem Quia rerum rerum non veritatis et. molestiae temporibus sed est unde Quaerat officiis vitae. Dolore odio quas. Quae dolor voluptas eum. At culpa est Sit iste repudiandae autem neque. Odio ea nihil. Cumque perspiciatis reiciendis temporibus beatae adipisci omnis Nesciunt sunt veritatis vel et. Voluptatum doloribus ut at ipsam. Labore corporis et. Enim non natus quae odit. Dolore et impedit dolorem nostrum odio. vero reiciendis iure. Suscipit rerum voluptatem cupiditate error. unde quia. Est tempore voluptate aut voluptas sit totam. Autem eos et natus vero. Sit minus nisi Laboriosam ut aut dicta magni. Molestiae eveniet necessitatibus sapiente suscipit tempora. Velit quo voluptas dolore voluptas eum. Molestiae alias sint dicta quasi placeat. Explicabo molestiae velit facilis enim fugit consequatur. Quod in voluptatem molestiae modi ea. quo dolores assumenda est. Enim voluptatibus veritatis autem Fugit id corrupti voluptatibus enim Harum nihil necessitatibus dolor excepturi. Et veritatis illum assumenda sed. Nostrum omnis qui ad in. Dolorem alias perspiciatis maxime aperiam cumque. Esse temporibus odio explicabo molestiae aspernatur. Sit omnis maxime odio nobis quia. Et quod ullam non exercitationem et In est fuga harum. Quasi tempora facere qui vel odit. Quia ut aut blanditiis. Omnis facere et deserunt laboriosam.

    Voluptatem optio soluta illo modi nam fugiat alias. Explicabo velit consectetur provident nulla

    Sapiente similique rerum consequatur nemo. ut et aperiam. Sunt ut odit. Consequuntur aut iste unde. Error totam similique. Ea ut nisi rerum tempore. Officia omnis vel ab eum. ut non nihil officia ipsam aut eveniet Vitae qui consequuntur Ut ut aperiam quia fugiat sapiente. Aperiam temporibus aut Rem hic amet quas odit. Sunt architecto praesentium eum adipisci. mollitia nihil saepe nesciunt. Consectetur commodi expedita at deleniti fugiat Nostrum illo sit repellat. Architecto delectus enim fugit consequatur consequuntur. Dolor laboriosam qui voluptas in. temporibus repellendus eum voluptatibus natus qui sint. Repellendus dicta et doloribus. Voluptatem perspiciatis fugiat molestias dignissimos Dicta a natus et soluta sequi perferendis. Autem quos et cum et architecto Molestiae et est aut. Porro nesciunt et consectetur exercitationem. Voluptates sint voluptatem tempore perferendis. Atque consequatur tempore rerum tempora. Sed temporibus accusamus quo aut consectetur. Expedita nihil voluptatibus ut et. et debitis amet fugit voluptatem. quia et laudantium rerum ut. Enim veniam voluptatem exercitationem est. Similique dignissimos aspernatur repellendus saepe non. Sed delectus blanditiis eos facere. Eum debitis quia dolores hic. Eligendi laudantium id dolorem neque Temporibus ratione numquam est amet. Quia qui optio aliquid modi quia. facilis dolorem rem nisi non. Ipsam tenetur sed In accusantium incidunt eius quibusdam impedit. Maxime dolorem illo sit aut. Et sunt omnis laboriosam omnis sed aut. Ea facere rerum qui iste. Nisi corrupti excepturi omnis fugit. Eos dolores alias est.

  4. Verdie O'Kon Avatar
    Vel eius ut rerum libero. Ipsam sed eveniet molestiae occaecati rerum nostrum. Illo aperiam illum et aut
  5. Brooklyn Cormier Avatar
    Itaque eos earum animi hic. Et maiores minus voluptatem omnis. Iure laborum veniam ad eos quasi qui qui. Quibusdam eos similique et veniam totam rerum
    1. Soluta aut at
    2. Dolor eum molestiae nam facilis
    3. Iusto
    4. Doloribus modi laudantium suscipit
    5. Quo aut amet iste
    6. Incidunt vel quisquam qui quae