{"id":48,"date":"2018-09-11T01:47:50","date_gmt":"2018-09-11T01:47:50","guid":{"rendered":"https:\/\/demo.wphoot.com\/chromatic\/?p=48"},"modified":"2018-09-11T01:47:50","modified_gmt":"2018-09-11T01:47:50","slug":"markup-image-alignment","status":"publish","type":"post","link":"https:\/\/www.luckintl.com\/index.php\/2018\/09\/11\/markup-image-alignment\/","title":{"rendered":"Markup: Image Alignment"},"content":{"rendered":"<p>\t\t\t\tWelcome 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&#8217;s get started.<\/p>\n<p style=\"text-align:center\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/cdn.wphoot.com\/themedemos\/demo-uploads\/sites\/43\/2015\/05\/placeholder-02-1.jpg\" alt=\"placeholder-02\" width=\"580\" height=\"300\" class=\"aligncenter size-full wp-image-60\"><\/p>\n<p>The image above happens to be&nbsp;<em><strong>centered<\/strong><\/em>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.wphoot.com\/themedemos\/demo-uploads\/sites\/43\/2015\/05\/placeholder-03-1.jpg\" alt=\"placeholder-03\" width=\"150\" height=\"150\" class=\"alignleft size-full wp-image-57\">The rest of this paragraph is filler&nbsp;for the sake of seeing the text wrap around the 150&#215;150 image, which is <em><strong>left aligned<\/strong><\/em>.<\/p>\n<p>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&nbsp;sentence&nbsp;here, we&#8217;ll see that the text moves from the right of the image down below the image in&nbsp;seamless&nbsp;transition. Again, letting the do it&#8217;s thang.&nbsp;Mission accomplished!<\/p>\n<p>And now for a <em><strong>massively large image<\/strong><\/em>. It also has <em><strong>no alignment<\/strong><\/em>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.wphoot.com\/themedemos\/demo-uploads\/sites\/43\/2015\/05\/placeholder-04-1.jpg\" alt=\"placeholder-04\" width=\"1200\" height=\"400\" class=\"alignnone size-full wp-image-58\"><\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.wphoot.com\/themedemos\/demo-uploads\/sites\/43\/2015\/05\/placeholder-05-1.jpg\" alt=\"placeholder-05\" width=\"300\" height=\"200\" class=\"alignright size-full wp-image-59\">And now we&#8217;re going to shift things to the <em><strong>right align<\/strong><\/em>. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there&#8230; Hey guy! Way to rock that right side. I don&#8217;t care what the left aligned image says, you look great. Don&#8217;t let anyone else tell you differently.<\/p>\n<p>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.&nbsp;Yeah&#8230; Just like that. It never felt so good to be right.<\/p>\n<h3>Images With Captions<\/h3>\n<p>And just when you thought we were done, we&#8217;re going to do them all over again with captions!<\/p>\n<figure id=\"attachment_60\" aria-describedby=\"caption-attachment-60\" style=\"width: 580px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.wphoot.com\/themedemos\/demo-uploads\/sites\/43\/2015\/05\/placeholder-02-1.jpg\" alt=\"Look at 580x300 getting some caption love.\" width=\"580\" height=\"300\" class=\"size-full wp-image-60\"><figcaption id=\"caption-attachment-60\" class=\"wp-caption-text\">Look at 580&#215;300 getting some <a title=\"Image Settings\" href=\"http:\/\/en.support.wordpress.com\/images\/image-settings\/\">caption<\/a> love.<\/figcaption><\/figure>\n<p>The image above happens to be&nbsp;<em><strong>centered<\/strong><\/em>. The caption also has a link in it, just to see if it does anything funky.<\/p>\n<figure id=\"attachment_57\" aria-describedby=\"caption-attachment-57\" style=\"width: 150px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.wphoot.com\/themedemos\/demo-uploads\/sites\/43\/2015\/05\/placeholder-03-1.jpg\" alt=\"Itty-bitty caption.\" width=\"150\" height=\"150\" class=\"size-full wp-image-57\"><figcaption id=\"caption-attachment-57\" class=\"wp-caption-text\">Itty-bitty caption.<\/figcaption><\/figure>\n<p><strong><\/strong>The rest of this paragraph is filler&nbsp;for the sake of seeing the text wrap around the 150&#215;150 image, which is <em><strong>left aligned<\/strong><\/em>.&nbsp;<strong><\/strong><\/p>\n<p>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&nbsp;sentence&nbsp;here, we&#8217;ll see that the text moves from the right of the image down below the image in&nbsp;seamless&nbsp;transition. Again, letting the do it&#8217;s thang. Mission accomplished!<\/p>\n<p>And that&#8217;s a wrap, yo! You survived the&nbsp;tumultuous&nbsp;waters of alignment. Image alignment achievement unlocked!\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to image alignment! The best way to demons<span class=\"more-link\"><a href=\"https:\/\/www.luckintl.com\/index.php\/2018\/09\/11\/markup-image-alignment\/\">Continue Reading<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":1794,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["entry","author-luckshi","post-48","post","type-post","status-publish","format-standard","has-post-thumbnail","category-demo-content"],"jetpack_featured_media_url":"https:\/\/www.luckintl.com\/wp-content\/uploads\/2019\/05\/image-i2.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":0,"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/media\/1794"}],"wp:attachment":[{"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luckintl.com\/index.php\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}