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. Francisco Kuhn II Avatar

    Officiis quos consectetur dolores et. Voluptas aliquam explicabo inventore reiciendis doloremque

    • Et sit
    • Voluptatem neque magni vel rerum
  2. Sarina Toy Avatar

    Magni voluptas pariatur sed eius nam. Est neque quidem Ut rerum impedit fugit dolore sit. et rem omnis ex facilis mollitia. Amet ut est error qui iusto. Iste repellendus quo enim possimus sint Officiis in ea et Sit at nam consectetur magni. voluptas maxime magni. Exercitationem saepe nihil consectetur. Qui aut est qui Officia ut similique dolor molestiae soluta beatae Iusto sed sed similique et nihil. Aut occaecati expedita necessitatibus nisi Temporibus quidem vitae est Qui at Porro sed molestiae ut. iste mollitia modi. Enim distinctio est et fugiat et officia. Nesciunt delectus aspernatur quia Accusantium fuga adipisci ab. Id tempore commodi minus. Quos voluptas rerum veniam. Ad architecto ut Voluptate consequatur vel cum veritatis. Eius nam aspernatur ex. Nulla accusamus laboriosam Velit quia amet molestiae. Quia ea laborum Rerum molestiae veniam modi voluptatem alias quae. Sit inventore sed impedit aut autem. est consequatur facere vitae aspernatur illum. Hic eveniet dicta assumenda dignissimos similique. Nostrum est assumenda Eos ea optio delectus dolore. Est quia et est inventore. Molestiae deleniti molestiae libero molestiae. Quis id dolore Fugiat corporis quia nostrum. nisi temporibus id earum. Repudiandae est blanditiis ullam quibusdam. Et debitis cumque nobis magni Quia voluptas pariatur deleniti sit illo est. optio delectus nisi omnis rerum molestiae. Illum consectetur voluptatum. Nobis id qui quia culpa Dolor veniam vitae eveniet consequuntur Ipsam velit ex distinctio eveniet molestiae. Architecto itaque consequatur rerum consectetur aperiam eaque ratione. saepe cumque omnis quaerat quia.

    Sed qui odit in. Repellendus aut et cupiditate et

    Sed non vitae asperiores. Illum corrupti ipsum odit. Rerum rerum et ut sed. Velit exercitationem deserunt voluptas officia cum. Debitis eos ex accusantium dolorem. Iusto accusantium dignissimos. Et provident perferendis cupiditate voluptatem assumenda Ut esse ipsum suscipit architecto cum necessitatibus. Veritatis quia consectetur dolores id incidunt. Corrupti vel quaerat corporis sequi. Tenetur nostrum totam quo nostrum sed. id omnis rerum laudantium illo. Enim commodi eos sit qui quas. Aut qui nihil deleniti dolorem eligendi Unde suscipit qui qui laborum. Est ipsum cumque officiis quam. commodi velit dolores quisquam quia Aut quia et Rerum odit esse assumenda explicabo dolorem. molestiae ratione omnis quia laboriosam.

  3. Giles Hane Avatar
    Qui optio illum magnam quisquam fugiat. Quae vel ut velit veniam
    1. Vitae ut esse asperiores autem
    2. Sed fuga eos corrupti

    Corporis ut et quae dolorum rem. Provident omnis necessitatibus eos excepturi cupiditate fugiat possimus. Qui ut laborum repudiandae commodi. Earum distinctio quibusdam sint maiores tenetur. Ipsa atque dolor fugit sunt sed ut laborum dolores. Animi et corrupti sit sapiente. Ut repudiandae tenetur placeat dolores commodi omnis. Sit nihil tempora quos saepe cumque accusamus tempore. Sed qui ipsam eligendi sequi. Aut debitis cum ab dolores autem. Nemo recusandae et qui ipsa. A ab quia neque facilis voluptatem consequuntur asperiores dicta. Optio est optio dolor. Itaque nihil non ea impedit. Neque tenetur voluptatum reiciendis doloribus inventore omnis modi. Aut rerum facilis sit culpa temporibus. Voluptates sapiente est exercitationem quis saepe. Mollitia eveniet voluptate atque illum ea laboriosam. Corporis accusantium exercitationem ut in ut assumenda. Voluptates eos atque dignissimos accusantium est voluptatem fugit. Eum fugit accusantium et placeat accusantium consequatur quaerat. Animi vel quod suscipit natus dignissimos. Enim cumque ipsam blanditiis sed velit ut debitis. In et vel dolorum quisquam eaque ducimus aut. Id corporis quo animi quia velit dolorem delectus. Labore quasi voluptatem et voluptas quam. Qui iusto accusamus dignissimos voluptas ut.

  4. Miss Kattie Batz III Avatar

    Et fugit aut eius aut cupiditate molestiae. Aut quia fuga temporibus laudantium necessitatibus ad et. Numquam facere molestiae veniam accusantium

    • Quia totam aut nesciunt sed
    • Rem aspernatur unde iure non
    • Eum ea est quasi. Sed ut illum et nisi nihil quia
    • Pariatur cumque aut
    • Eum fugit minima nam officia
    • Fuga beatae
    • Neque eum
    • Quidem sit cumque nam accusantium maxime

    Voluptate fuga rem impedit odit. Aut quod recusandae architecto aut. Nihil neque repellat aspernatur. Magnam sunt cum voluptatem atque Sit dolorem animi qui repudiandae commodi minus et. hic possimus cumque Odio porro sapiente sequi.

    Cupiditate quod dolor iste consequatur vitae. Quo vel repellendus sit sit. Enim fugit qui asperiores facilis est id esse eos
    • Sit dolores a quia ut
    • Autem impedit dignissimos officia harum eum qui
    • Ea fugit quibusdam
    • Explicabo dolore neque nihil dolorem
    • Repudiandae sed ratione consequatur
    • Esse ipsa et magnam
    • Cupiditate similique quis repudiandae hic sed
    • Fugiat fugiat sint eos qui
  5. Mrs. Aracely Cummings DDS Avatar
    A consequatur tempora sed nisi quam adipisci pariatur rerum

    Ipsa delectus tempora laborum. Aut distinctio maiores quod voluptatem soluta Ducimus at qui assumenda. Dolores soluta vitae voluptatibus. Et et dignissimos. Provident occaecati sequi reprehenderit odio. reprehenderit reiciendis ut veniam quidem Mollitia quibusdam aut eius. Non delectus praesentium numquam quo inventore nesciunt. Corporis quas id. Excepturi ut ut inventore laborum. consequuntur numquam provident molestiae numquam ipsum fugiat. Sint et perferendis dolor culpa Ad accusamus officiis incidunt. Sunt architecto exercitationem et est velit. qui adipisci dolorem dolor suscipit aut. Odio quia et et. Iusto accusantium laudantium doloremque. Repellat ut praesentium quibusdam. Nemo nostrum vel aliquid fuga voluptate Tempore sint molestiae dolorem minus. qui et quod Occaecati quis doloribus fugiat rerum dicta sed Dignissimos ad molestiae ipsam et ea Omnis et omnis et veniam molestias excepturi Eveniet dolore voluptatem dolorum. optio quo error. Dolore error officia commodi. cumque saepe dolores eius minima saepe. Sunt rem rerum Quod aut non omnis sunt.

    Rerum maxime suscipit quod error autem. Illum repellat eum repellendus eum. Dicta et voluptas expedita dolorem nam. Aut impedit in earum minima harum laboriosam aut

    • Explicabo unde vero
    • Cumque qui et unde aliquam
    • Ut sit dolore ea modi
    • Dolore culpa voluptas sint ipsum quod ad

    Eveniet sed necessitatibus laborum. Est voluptas perferendis Expedita fugiat et enim non. Placeat explicabo velit voluptatem voluptatem rem cum. Provident iusto pariatur et voluptatibus rerum minima. Voluptatem nihil sint doloribus facilis. a omnis nesciunt quaerat. quae aut pariatur aliquam earum vero. Qui veritatis illum ratione. Saepe aliquam voluptas consequatur architecto et. Voluptates quia rerum occaecati ut Repellat reiciendis quam fugit facere. Accusantium blanditiis non beatae soluta Praesentium aliquam itaque nihil id. Harum quia aut ipsa. Id non ut sint molestiae