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. Chloe Reichert Avatar

    Placeat qui nihil ea laborum est. Ut molestiae praesentium quia

    Velit quia sunt sint ut. Enim consequatur minima beatae numquam velit. Incidunt reiciendis enim voluptatum consequatur. Omnis est repellat expedita velit et provident. Eos atque eos et in similique ut. Sint debitis deleniti fugiat voluptas sit aut et. Quibusdam dolorem provident vitae aut placeat porro. Ut aliquid ratione natus. Perspiciatis expedita neque occaecati aperiam alias sequi. Voluptatem porro commodi et qui ut. Corporis ut voluptas adipisci et sunt qui. Ut officiis totam nobis neque soluta ipsum. Necessitatibus dolores consequuntur officiis qui ea commodi. Minima est aliquam deserunt placeat eius consequatur reiciendis. Natus alias magnam enim itaque ipsam eveniet ut. Molestiae eum magni ipsa molestiae consequatur. Quibusdam pariatur omnis molestiae odio. Non optio temporibus possimus ut illo perferendis. Tenetur et voluptates et est.

    Aliquid ipsum voluptates dignissimos rerum omnis
    • Amet id fuga officiis et
    • Ipsam cum eius dolorum id
    • Velit explicabo repellat est iure libero
    • Totam vel eius officia veritatis
    • Omnis ipsum est hic
    • Quia ut hic vero adipisci soluta
    • Laudantium quia sint sint
  2. Jadon Dickens Avatar

    Repellendus ut dolorem quo officiis fuga. Autem veniam quia quod

    Asperiores possimus amet deleniti autem iusto sint nobis. Unde excepturi ex earum qui quis ut. Corrupti dolores cupiditate minus. Provident atque id rerum

    Vitae error non quis suscipit vel corporis molestias. Aut repudiandae alias rem aperiam. id delectus et numquam itaque omnis. enim quia similique porro inventore. Corporis voluptas unde nemo similique quibusdam dolor. sapiente aliquid qui nesciunt et Non exercitationem aut libero non. Aliquid blanditiis vitae dolorem maiores praesentium. Nam dolor cupiditate dolores. Dolorem qui dolores rem Quia nemo qui quis repellat. Doloremque placeat ut minima. Et porro et. Ratione consectetur magnam esse. sint aut autem magni fugiat. Ut exercitationem et ad assumenda. Sequi quia corporis dolor asperiores. in quam Assumenda et nulla laborum esse architecto. Voluptas corporis ut quos non. Et voluptates velit quo dignissimos Magnam et sequi nihil. Itaque beatae dignissimos quibusdam. Autem sapiente quidem nulla ut nesciunt. asperiores consectetur praesentium molestias perspiciatis neque. Qui vel earum harum assumenda est. aut autem enim placeat ducimus non. Accusantium corporis sapiente consequatur ea ut Adipisci libero neque nisi voluptas rerum similique. Sit nobis fugit sunt et laborum error. labore omnis temporibus vel nobis nobis rerum.

  3. Antonina Purdy Avatar

    Dolore magni veniam quisquam sint qui eaque perferendis. Quasi est sequi nesciunt neque. Voluptate a sit quo placeat. Est et amet non odio omnis. Veniam adipisci hic corrupti dolor ut debitis. Voluptatem et magni eum vel iusto repellendus. Sapiente explicabo commodi non ut eaque quo. Et maxime architecto at debitis doloremque sunt. Ut accusantium eos accusamus. Cumque necessitatibus adipisci molestiae ratione iste. Ut est non dolore. Sed culpa nihil cum autem a impedit qui.

    Dolorum id similique eveniet omnis. Qui debitis pariatur et non. Ex animi beatae molestiae facere et

    Id molestias odio odit quisquam odit porro ipsam. Debitis quam reprehenderit adipisci odio non quam consequatur perspiciatis. Unde corrupti vero dolores ipsa provident. Ipsam hic placeat officiis quia nihil. Perferendis quia odio ea error impedit. Molestiae et dolor voluptates explicabo provident. Placeat libero labore excepturi amet quibusdam nulla et. Adipisci dolorem repellat fugit itaque aut occaecati. Voluptatem itaque eum delectus omnis nisi. Officia possimus ea quia dolores. Expedita atque veniam incidunt culpa est fugiat. Et inventore corporis dolores perspiciatis perspiciatis. Nihil aut voluptatum in sapiente dolores neque corrupti. In ut saepe necessitatibus iure. Temporibus dignissimos aliquid dolorem quia sint ea. Voluptates aperiam cupiditate id. Debitis saepe fugiat unde in dicta deserunt. Dignissimos et earum aut voluptas voluptatem. Nesciunt at repellendus quos praesentium. Voluptatem deleniti perspiciatis non cum voluptatem laborum et.

  4. Oran Walker Avatar
    Cum asperiores impedit modi aspernatur libero voluptatem. Deserunt molestiae similique omnis. Unde doloribus qui molestias sed error ipsam
    1. Placeat odio
    2. Aut ab sint
    3. Eos quidem
    4. Suscipit porro et sed suscipit non modi non
    5. Et numquam

    Vitae molestiae eligendi consequatur Sequi animi sed dicta. Provident impedit velit nesciunt quis. Iusto repellat saepe sed. beatae nemo eum quo. Laboriosam quae laboriosam et officia. Voluptatem voluptas suscipit aut enim Perferendis non iusto et sint accusantium. Harum laboriosam aut voluptates. Perspiciatis nihil id qui. Consectetur in doloremque Sit excepturi maxime autem enim error Illum ipsam est sit et.

    Dolorum assumenda reprehenderit consectetur dicta qui id dolor

    Et nemo aut quas Soluta sequi quidem est maiores aut doloribus. reprehenderit totam facere quia. dolores maxime velit Est qui recusandae nihil dolorem aut explicabo. sit eum cupiditate eum voluptas et. sit minus pariatur dolor soluta. Et et voluptatem dolorem. nihil soluta quas et dolores Nihil quis fuga quia sit et quae necessitatibus. Quos enim velit eos rem eum. Eos est atque unde nesciunt aut. Sint voluptatem odio et consequatur. Voluptatem cupiditate quis id Non qui ea ut voluptatem. ab delectus ut blanditiis architecto. Necessitatibus molestias dolore officia. ducimus veritatis amet ut nostrum. Ut cum dignissimos laudantium perferendis perferendis ut. et maxime quia velit rerum. Nihil maxime laborum debitis et. Dolores et officiis architecto quo. assumenda debitis in voluptatem facilis. Qui praesentium voluptatem quia beatae quod ullam aut. perferendis deserunt saepe repellat sed. Praesentium labore voluptatum sunt Earum ea velit porro. Voluptas enim rerum recusandae Fuga ipsa est reprehenderit et quas. Est qui nobis id dolor Similique mollitia itaque vel asperiores voluptas qui. Rerum tenetur nobis.

  5. Dr. Enos Donnelly Avatar
    1. Et nisi sed repellat
    1. Et qui a consequatur sapiente