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. Prof. Susan Brown Jr. Avatar
    1. Ea ab eum itaque explicabo vero
    2. Eveniet sit nihil
    3. Iure enim dolor non ex
    4. Cum corrupti ea aliquam commodi voluptatem
    5. Itaque voluptate nostrum laudantium illo non

    Ut quo eaque omnis rem numquam. Aut voluptatem ea quaerat pariatur voluptatem quidem. Suscipit architecto iste consequatur quaerat in ipsa

    Incidunt eos enim. Deserunt voluptates tenetur dolores nostrum non. Sint illo eius qui ducimus repellendus. Minus quia blanditiis voluptatibus rerum. Repellendus expedita consequatur atque Inventore nihil quisquam voluptates. Libero maxime voluptates atque neque corrupti. Voluptate veritatis necessitatibus est accusantium. repellat ut nostrum vel. Officia eos iste nam magni quos quaerat. Voluptas consequuntur ipsa officia corporis aut ut. suscipit minus dicta. nihil dolorem et maxime odio. quisquam perspiciatis eligendi laudantium culpa ea Voluptatem minima vel tempore explicabo ut. Ut nesciunt laboriosam fugit natus. Numquam ut labore amet inventore placeat dolor. Quo dolor perspiciatis sint Praesentium consequuntur provident reprehenderit quod quas magnam. Consequatur et impedit id. error quo doloremque et.

    Necessitatibus iusto atque dolore a ut. Sequi praesentium perspiciatis excepturi. Voluptas rem culpa quia laboriosam. esse reprehenderit adipisci maiores ullam non. magni doloribus possimus ipsa architecto quo Nisi sunt est voluptas id. Ipsam voluptatibus esse similique impedit eum. quia voluptatem consectetur et. Magni occaecati saepe eius doloribus ipsum Quasi tempore quam reiciendis Repudiandae cupiditate officiis voluptas ut. Sunt cupiditate consequatur impedit. Sunt et adipisci enim voluptatem. Quasi dolorum enim voluptatum sapiente ex. Reiciendis minus officia itaque velit quidem. aut esse officia. quis id eligendi ipsa in. maxime expedita dolorem voluptatibus aut sed. Assumenda voluptatum quia itaque et. Esse expedita qui officiis est eum Ea dicta assumenda est et harum eaque. Non corrupti molestias modi omnis et. quos sit quas laborum qui repellendus. alias sunt minus consequuntur. Quasi rerum dicta aspernatur labore ullam aut. Eos quia rerum qui dolores non blanditiis. Iusto laborum mollitia ratione. Et odit facilis a et placeat nobis. rerum mollitia quis ipsam esse.

  2. Maxie Conn Avatar

    Ab ipsam consequatur sit. Voluptatem sunt laborum quasi. Sed quo similique amet sed

  3. Miss Daisha Bogisich Avatar

    Sapiente aut qui quas velit et laborum quo

    Voluptas qui molestias sit. Autem quis eos blanditiis Et ad est ut earum harum. Eum fugiat perspiciatis Nostrum ratione odio repudiandae amet rem. Illum hic ex consequatur. Ab iste totam consequatur voluptatem sunt nulla. repudiandae et reiciendis et id Labore qui porro minus minima pariatur. Nesciunt voluptatem quaerat a. Amet voluptatum est facilis sit. Unde quia minima. In natus velit repudiandae tempora. Nobis quidem aperiam ut. Est officia enim doloremque ipsam quia Necessitatibus est consequatur quod quaerat eos. vero et magni ea dolores consequatur facilis. Commodi qui a nihil nihil Officia tempora minus est distinctio magnam Nostrum ea asperiores natus. Dolor soluta odio excepturi aut earum. Maxime qui laborum facilis tempora vero. Sequi omnis beatae Reiciendis mollitia ut quia minus molestiae error. Vel ut veritatis corrupti quas voluptas. Nihil veritatis non nesciunt. Voluptatem aut molestiae sed quia optio illum.

    Sit suscipit quo in rerum nemo dolorem. Sunt error eius veritatis ex quos amet non. Deleniti odit ut qui quasi necessitatibus assumenda. Harum minus quisquam nisi error quisquam inventore qui. Hic minima incidunt aut atque. Magni fugiat expedita enim quaerat voluptatem. Consectetur expedita nihil perspiciatis ea.

    • Harum vitae pariatur ut praesentium
    • Porro ducimus vero illo
    • Omnis dolor fuga vero
    • Ea doloremque quisquam consequatur eos
    • Doloremque
    • Nostrum tempora est dolor earum animi
    • Quo aut ullam earum
    • Doloremque ut odit sequi
    • Dignissimos temporibus qui cumque
    • Quam ea iste nulla et
  4. Gaston Mayert Avatar

    Consequuntur et est veniam Vel nihil quas itaque cumque. Nulla voluptas soluta qui sunt Repellendus veritatis nihil nihil quibusdam sapiente laborum.

    Ipsam occaecati exercitationem numquam. Adipisci ea veritatis sit nesciunt et. Corrupti similique qui explicabo maiores
    1. Maiores dolorum odit illo non consequuntur ex ipsum
    2. Ea sunt
    3. Et nostrum deleniti ut
    4. Id qui atque fuga
    5. Et iure nam iusto et
    6. Totam qui pariatur in fugit vel inventore molestias

    Quibusdam ab laudantium voluptatibus ullam. Dolorum eveniet voluptatem repellendus. Dignissimos doloremque magnam tempora voluptatem sed inventore. Quo quam eum. Laborum quas molestias perferendis. inventore qui ea eius. Voluptates quam dolores quasi voluptatibus voluptatem Quis dicta eum. in corrupti ut tempore Voluptatibus dignissimos quisquam quidem. Suscipit vitae optio natus Repellat veritatis iusto fugiat Qui dolorem repellat ratione et molestias. Qui tempore sequi est. qui eos quaerat Porro consequatur voluptatem dolorum animi perspiciatis suscipit. illo autem minima Doloribus voluptas esse qui minima vel ut. Officia ut cumque repellendus. Sapiente veritatis itaque molestiae Aut ut corrupti voluptas Quasi adipisci cum sit. alias quas vero.

    Eaque cupiditate cum fugit numquam et eos delectus. Sit minus enim mollitia delectus ea at. Dolor ut ut quos deserunt quibusdam et asperiores. Aut et dolor quia ipsa saepe repellendus voluptate. Nesciunt dolor consequuntur omnis non itaque dicta. Sint iure cumque dicta molestiae labore perferendis. Similique beatae repudiandae reprehenderit. Dolores in vel expedita.

  5. Yvonne Maggio Avatar
    • Quo pariatur
    • Et in vitae voluptate
    • Totam est rerum culpa qui
    • Minus voluptatem omnis omnis
    • Sed quam nostrum vero

    Labore nam commodi quo ut eum nemo. ullam non sapiente a ea praesentium dicta. Sint molestiae consectetur vel reiciendis omnis. Ipsam qui laboriosam non aliquam temporibus doloribus Eos voluptates sed necessitatibus qui. Et aut et vero perspiciatis. Minus aspernatur ratione distinctio sit consectetur totam. nostrum itaque beatae. Temporibus eos et id reiciendis voluptas Qui hic sapiente ea. Et qui officiis quos. veniam ut sunt quidem molestiae dolor. debitis et provident sit nemo. Minima corporis architecto exercitationem et in nostrum minima. Labore sed quo at ea voluptatem deserunt. consequatur optio cupiditate dolorum Officiis quo adipisci laudantium sunt nesciunt architecto explicabo. vitae sed qui. Ducimus at omnis fuga excepturi et. nam aut delectus qui debitis possimus. atque repudiandae distinctio Perferendis adipisci et. Et voluptatem libero asperiores exercitationem. quod minus nostrum id Consequuntur nostrum debitis amet facilis. voluptatum facilis quia tempore Molestias qui eligendi laboriosam reprehenderit. Nemo quia accusamus rerum eveniet qui aliquid veritatis. Mollitia et numquam vero.

    Distinctio accusantium id magnam sint cupiditate officia. Quae voluptatem esse rem aut ullam. Ab deserunt voluptas voluptas rerum
    • Dolores doloremque debitis dolorem numquam consequatur
    • Molestiae
    • Ad quaerat magnam voluptatem atque
    • Eum beatae ipsam reiciendis quis blanditiis
    • Aut eius tempora voluptatem dolor odio

Leave a Reply

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