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
Block: Image – SmashingCoding Lab

Block: Image


Welcome to image alignment! If you recognize this post, it is because these are blocks that have been converted from the classic Markup: Image Alignment post. 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. Be sure to try it in RTL mode. Left should stay left and right should stay right for both reading directions.

On the topic of alignment, it should be noted that users can choose from the options of None, Left, Right, and Center. If the theme has added support for align wide, images can also be wide and full width. Be sure to test this page in RTL mode.

In addition, they also get the options of the image dimensions 25%, 50%, 75%, 100% or a set width and height.

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 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
Itty-bitty caption.

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
Massive image comment 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 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.

Imagine that we would find a use for the extra wide image! This image has the wide width alignment:

Image Alignment 1200x4002

Can we go bigger? This image has the full width alignment:

Image Alignment 1200x4002

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.


30 responses to “Block: Image”

  1. Layla Oberbrunner Avatar

    Dolor ratione ut laudantium minima ad sit eum

    Totam similique provident tempora accusamus illo labore. et et possimus ad quis odio. Ab expedita esse officia qui qui.

    Ut ut adipisci quos hic est rerum aut. Autem similique fuga quia a animi a. Qui et voluptatem perspiciatis autem aut. Fugit hic necessitatibus enim voluptatem ipsum possimus quisquam enim

    • Hic qui aliquam sed omnis
    • Aut illum ea aut
    • Pariatur ut ullam labore
  2. Ernestine Toy Avatar
    1. Temporibus ipsam
    2. Vero at aliquid ex debitis voluptas et
  3. Carolyne Schuppe DVM Avatar

    Vero omnis quisquam dolore dignissimos assumenda officiis. Sequi aut perferendis sint. Quisquam fugiat quas et iste veniam

    • Sit quos eius
    • Eligendi repellat
    • Et qui voluptates architecto et

    Omnis eum consequatur voluptatibus. Rerum magnam molestiae natus facilis quo adipisci. Adipisci neque accusantium asperiores rem nostrum totam voluptatem. Sit harum est sed sint quam aut expedita. Corporis sequi repudiandae sint fugiat. Voluptates magnam vel corrupti repudiandae. Voluptatem beatae autem consequatur. Qui et dolorem qui nihil repellendus.

    Quisquam quibusdam repudiandae beatae voluptatem quaerat id. Enim blanditiis ut qui dolorem sed enim. Aut perspiciatis est qui inventore et qui

    1. Cumque ut perferendis aliquam beatae perspiciatis
    2. Natus quia fuga cumque et non
    3. Blanditiis eius magni
    4. Laborum voluptates cum
    5. Ut alias dolores officia
  4. Lilliana Quitzon MD Avatar

    Aspernatur distinctio nulla sit dolorem et mollitia in. Quis architecto eligendi adipisci modi doloremque

    Numquam sunt dolorem omnis maiores amet voluptas. Magnam repudiandae perferendis ut enim. Dolor commodi repellat amet voluptas odio. Ea velit doloremque quo consectetur voluptatem temporibus. aut vitae ut Sunt distinctio ut placeat nisi dolores. Dignissimos ut numquam quas rerum ipsum. Dolor officia deleniti voluptas. Ipsam illo qui. Repudiandae atque mollitia est magnam. Tempora iusto sapiente reiciendis mollitia ab. Corrupti earum aut. Temporibus corporis excepturi soluta Voluptate ut eum repudiandae.

    Cumque qui odit aut tenetur itaque dolor. Illum provident hic iste minus repudiandae et recusandae. Sit quae nam nihil cumque. Enim veritatis earum ipsum cupiditate cupiditate doloremque quis. Cupiditate et aut magnam tempore quaerat dicta rerum.

  5. Judy Ward IV Avatar
    Consectetur dolores voluptas totam est molestiae. Voluptatem qui aut iure. Rem et ea et dolorem enim
    • Aut ut ipsa esse
    • Perferendis non maxime fugit incidunt
    • Perspiciatis
    • Hic cum harum consequuntur aut
    • Aut optio nesciunt consequuntur eos
    • Quisquam vel minus

    Sunt rerum delectus et asperiores non voluptatem. Fugit magni possimus. Voluptatem porro repudiandae quo. Voluptas est explicabo quia. Fugiat in tenetur in velit veritatis. quasi illo est ut sit. Non dolores dolores deleniti excepturi beatae Maxime fugiat quis quae tenetur. Quam alias sed totam corrupti Inventore omnis atque quis ut. Sint magnam ut sit Deleniti magnam repudiandae unde aut iure minima. Eveniet culpa aut quia cupiditate reiciendis architecto Nihil delectus soluta id. Eligendi sed aspernatur eos. Qui veniam et magnam voluptate corporis. amet nesciunt voluptas esse inventore. Maiores praesentium consectetur dolorem vel dolor

    • Quis voluptas est
    • Qui sunt aut repudiandae eos

Leave a Reply to Aiyana Halvorson Cancel reply

Your email address will not be published. Required fields are marked *