Making A Box Under Your Image | 2 vers.

simple // ur most basic layout tutorials thread

Okay so, someone requested for a tutorial.
Well, they didn't really request. It was more like, "Can you help me with this?"
And I was like, "Hey it can be a tutorial!"
So yeah.
Just thought it'd be nice to know.

In this tutorial, I am going to show you 2 different ways to do this. The tutorial after this is a more complex way of doing it so it was put into a separate chapter. So for this tutorial, we'll be using the < img src > tag. Don't worry, all this tag's use is for putting in images so no biggy there. So here's the first way! :D
**If copying my examples, don't forget to remove spaces after every "<" and before every ">" in order to get the code working properly.**

VERSION 1

Example: 
< img src="
http://i1307.photobucket.com/albums/s587/MagicalDreams1/Icons/SakuraIcon12_zps87a9b454.png" style="width: 100px; height: 100px; border-style: solid; border-width: 20px; color: 
#2e2e2e;"/ >

SakuraIcon12_zps87a9b454.png

You already know what border-style does and what it is so no point in explaining that. If not, the border-style is simply how you want the border to be. In this case, I kept the border to solid. Now, the border-width is what's making all of this black stuff around the image. I set the border-width to 20px and 20px it is. As for the color, I left it black but it's a lighter shade of black for some reason..

VERSION 2

Example: 
< img src="
http://i1307.photobucket.com/albums/s587/MagicalDreams1/Icons/SakuraIcon12_zps87a9b454.png" style="width: 100px; height: 100px; border-style: solid; border-width: 1px; color: #ff9ca2; background-color: #212121; padding: 20px;"/ >

SakuraIcon12_zps87a9b454.png

So once again, we use border-style and border-width. However, this time when use color, it only changes the color of the border. Use background-color to fill in the inside and DON'T FORGET padding. If you forget padding, you can forget about even having a box.

So the reason why these two tutorials are separated from the other one is because of the border. Do you see how at the corner's, they're round and not sharp and edgy? Well, the next tutorial will tell you how to make a box around your image WITHOUT having the round little corners. Heck, I'll just tell you now about why it does that. Do you notice how in the < img src > tag, there's the img src part with the link to the image right after, and then after the image link, there's something that says "style"? That's where we've been placing everything and well, placing it inside the "style" part of the < img src > tag automatically adds that round corner to it.

So that tells you a little bit about our next tutorial right? We're definitely not using the "style" part of our < img src > tag for that.

ALSO; important notice!

I've been wanting to revamp the shop and change the shop of the name but in order to do that, I actually need a name for this place. So! All I'm asking you to fill out this quick survey for me! :D It'll be short, I promise. :3 Click here!

Like this story? Give it an Upvote!
Thank you!

Comments

You must be logged in to comment
starfan24
#1
Chapter 13: ⋆。°✩Reader Comment⋆。°✩

Hi author -esque!!

Love this tutorial!! Thank you so much!!

Reader
⋆。°✩starfan24⋆。°✩
Krystal_Luu
#2
Thank you for creating this!!!!
godna24
#3
Chapter 38: hi erm i wanna ask is it possible to use background image instead of background color in the scroll box?
Mael517 #4
Chapter 32: Thank you; this was very helpful!
sikakira
#5
Chapter 18: I wish text shadow worked :((((
Sakarafreak
#6
Chapter 7: Im still confused on the strikethrough..
Dark_History45 #7
Chapter 23: how to change the background image?
Jisoori #8
Chapter 8: why do i have this 'lorem ipsum dolor sit amet' on my preview?