Wednesday 29 July 2020

Image Handling – Advanced Usage

Image Handling – Advanced Usage
Infinity Blogger
Wednesday 29 July 2020
Welcome to image positioning and sizing! 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 Small, Medium, Large, X-Large & Fullsize.
The image above happens to be centered.

The rest of this paragraph is filler for the sake of seeing the text wrap around the 150x150 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.
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.

And we try the large image again, but this time scaled down


floating image

.content-width.small-width

Scale Methode 1

css-class

Keeps a rational and coherent layout to floating and aligned images, including mobile views.
aligned image

.content-width.small-width


floating image

.content-width img[width="400"]

Scale Methode 2

img-attribute

Hint: Blogger adapts image width and alignment for mobile requests.
aligned image

.content-width img[width="400"]


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!
Look at 580x300 getting some captionlove.
The image above happens to be centered. The caption also has a link in it, just to see if it does anything funky.

Bigger caption than the image usually is.

The rest of this paragraph is filler for the sake of seeing the text wrap around the 150x150 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.
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.

And we try the large image again, but this time scaled down


floating image

.content-width.small-width

Scale Methode 1

css-class

Keeps a rational and coherent layout to aligned and floating images, including mobile views.
aligned image

.content-width.small-width


floating image

.content-width img[width="400"]

Scale Methode 2

img-attribute

Hint: Blogger adapts image width and alignment for mobile requests.
aligned image

.content-width img[width="400"]


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.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Praesent elementum facilisis leo vel. Ipsum faucibus vitae aliquet nec ullamcorper sit amet risus nullam. Morbi tincidunt augue interdum velit euismod in pellentesque massa. Sed euismod nisi porta lorem mollis.

Related Post

Image Handling – Advanced Usage
4/ 5
Oleh

Comments