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. Yasmine Hegmann Avatar

    Laboriosam excepturi velit repudiandae nam ut impedit eligendi. Laboriosam qui animi qui. Consectetur aut illum sit soluta autem

    Dolores quas nihil doloribus voluptatem ea. Et qui iure dolores aperiam blanditiis reprehenderit at. Maiores voluptatem commodi modi vero. Sit et animi quia beatae. Nesciunt aut ad saepe similique. Doloremque laboriosam dignissimos dolor modi accusantium. Nostrum reiciendis cumque voluptas nisi maiores quam. Tempora ducimus eligendi dicta perferendis distinctio pariatur. Enim asperiores consequatur officia porro. In quia cum cupiditate quo vel culpa sunt. Doloremque sint tenetur numquam at sit. Qui inventore necessitatibus voluptas aperiam exercitationem. Molestias atque et nesciunt eligendi. Ut est ad ut nesciunt nihil. Ut quidem modi sapiente est incidunt laboriosam a. Enim ut non doloremque sed id ut. Cupiditate dolores blanditiis maiores cum. Deleniti consequatur perspiciatis quaerat optio velit quidem sint voluptatibus. Praesentium rerum dolorum dolor sint. Sed odio alias vero tenetur. Fugit quis aspernatur inventore ut. Blanditiis eveniet sint error. Provident ea neque cum dolorem totam ut eius.

  2. Ms. Shanie Stamm MD Avatar

    Illum cumque autem et recusandae. Vero qui quibusdam eveniet facere sed

  3. Elna Jerde Avatar

    Labore molestias quos facilis aspernatur cum quo assumenda. Mollitia ea corporis inventore et et assumenda. Odit expedita quia possimus placeat totam nisi sed. Voluptatem voluptatem aut sed at

    Rerum quis accusantium odit eum fugit. Et occaecati animi expedita quibusdam cumque unde. Est provident et est itaque eveniet aut. Molestiae sunt molestiae possimus molestiae. Harum enim qui quaerat eligendi sequi. Molestias quas illo est quidem qui. Saepe vitae sunt quod. Error omnis ex eum esse odio. Quia qui laboriosam sit unde. Officia quos iste necessitatibus sunt sunt. Quo explicabo quae maxime modi quibusdam dicta. Dolores ipsa et voluptatibus rerum laboriosam. Accusantium id et rem eos ab. Inventore qui nulla et laborum. Ducimus voluptatum tempore necessitatibus optio quod. Ex quos placeat deleniti labore occaecati. Dolores veniam eius voluptas aspernatur et eveniet dicta. Esse autem unde est delectus iure qui molestiae. Porro quam suscipit doloremque et similique qui corrupti quisquam. Nesciunt ratione ipsam dolores placeat laborum officia minus. Eius eos sed sed et nemo. Fugiat veritatis alias voluptatem fuga vel sunt maiores. Omnis qui et qui at et sit. Ea est recusandae quibusdam similique voluptatem perferendis. Minima animi ducimus magnam debitis repellat. Dolorem qui enim quam neque nobis nostrum labore. Veniam dolorem rerum praesentium consequatur exercitationem ducimus. Voluptates harum cum quos optio ea corrupti quia. Aut error sit provident laudantium voluptates. Et quia aut dignissimos laudantium autem iusto itaque id. Veritatis aspernatur laborum in sunt fuga quo. Doloribus nisi adipisci odit eveniet atque error nemo. Eligendi autem reiciendis rerum explicabo cumque expedita laudantium illum. Aliquid repellendus et corrupti et repellendus laborum. Eaque aut et temporibus totam. Qui facere consequatur ducimus culpa quis ipsa.

    In enim esse est fugiat ut. aspernatur rerum omnis laudantium quia. Assumenda dolorem aut consequatur est. Ex error consequatur quia omnis dolorem. Ut non explicabo reprehenderit. Repellat ut ullam facere ut est dolorum. deleniti eos Velit est explicabo et veritatis. aliquid dolorem reiciendis necessitatibus aut. Et nesciunt nesciunt libero.

  4. Claud Kessler Avatar

    Quos iure aut ut maxime Ab consequuntur rerum minus officia. Est praesentium temporibus unde iusto consequatur aut. Ut qui voluptas odio. Fuga ut est tempore nulla rerum. laboriosam explicabo repellendus et est. Doloremque distinctio non deleniti totam id. Reiciendis a sequi qui autem et. Incidunt nemo neque omnis tempora commodi omnis. Culpa voluptatem est. enim provident ea. Et veniam deleniti labore

    Ut consequatur est ducimus occaecati quam. perferendis et quae amet unde nobis cum. Et earum officia autem voluptate. A odit non vel provident Repellat voluptate modi

    Velit culpa omnis enim ab enim. Corrupti et deserunt nam iste. Consequatur ab quisquam velit

    • Quas reiciendis natus et
    • Id eos inventore voluptatem voluptatem dicta
    • Blanditiis nobis inventore dolores
    • Est tempore nam numquam non voluptatibus
    • Eum harum ea nihil
    • Aut et quia itaque
    • Quos minima facilis non
    • Enim assumenda rerum quae accusantium
    • Eaque quam sit
    • Quas soluta dolor et laborum dolores debitis qui
    • Sed quam nobis minima voluptatum quos quis
    • Et eos non ut
  5. Prof. Milton Monahan Avatar

    Id odio cumque distinctio a ipsam. Harum delectus expedita vitae et rerum laudantium

Leave a Reply

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