»padding and borders

♔Leviosa Academy ; CLOSED.
Please Subscribe to read the full chapter

 

The first lesson is a simple introduction to Source button, padding and borders.

First step is to find a photo of your liking.

You can place the picture by clicking that image icon and then click the magical “Source” button.

You'll see that very confusing code seen like this:

You just need to find the end of the code and go in between the    ; inhere " /> < / p > which is at the end of the code.

 

Padding is the space between the image and the border, written like this: padding: 1px; The larger the number, the wider the space gets.
e.g.
   
xxxxxxxx 5px xxxxxxxxxxxxxxxxxx 10px xxxxxxxxxxxxxxxxxxxx 30px

Border is those lines outside the image and it's written like this: border: 1px style; Similar with the padding: the larger the number is, the thicker the border gets.
e.g.
  
xxxxxxxx 1px xxxxxxxxxxxxxxxxxx 4px xxxxxxxxxxxxxxxxxxxx 8px

 

px stands for pixels. No matter what you do, do NOT forget to put the px at the end of the sizes. Otherwise, it won't work.
Place a colon : to costumize a particual style ( ex. border: 2px solid; ) and use a semicolon ; to end the style. ( ex. border: 2px solid; )

 

Now we go to the border styles:

There are nine different types of borders; solid, dashed, dotted, double, 

Please Subscribe to read the full chapter
Like this story? Give it an Upvote!
Thank you!
tadhana
I don't have time to reply but I read all your comments. Thank you for the kind words!

Comments

You must be logged in to comment
mrs_shawty
#1
Chapter 5: Hello! I learn a lot from this tutorials. Thank you! C; but for some chapters, the pictures don't work. So it's quite difficult for me to understand how the 'effect' (or what should i call? sorry, i can't think of the word right now) of the codes.
MafiaLoveRp
#2
Chapter 10: I have a question, we can used the same step on the text box with the picture?
btsrmjk
#3
Chapter 10: I need kind of help and this is for roleplayrepublic and its for my profile, I want to add a textbox under a picture, and i'm reading how to do it but I'm confused. Would you help me?
littlemrstaro97
#4
Chapter 2: Thank you for this! :D
jindaebutt #5
Uhh, how can I put textbox on a picture..?
-rawrgrowl
#6
Chapter 10: how can you hide the scroll bar?
megamax #7
Chapter 10: Hello. Can I ask something.
I've been looking many layout but how to do the overflow one but no borders.

I dunno whut im asking but hope you understand
lifestooshort_1902
#8
Can you please take a look at my story and tell me whats the problem? The format is wrong.
http://www.asianfanfics.com/story/view/832640/never-let-go-angst-romance-exo-kris
kim-shoemin
#9
Chapter 6: Where in the source do I put the code for the text boxes? After what code???
Angel110
#10
Chapter 2: and I want the following picture to be neatless above the box, is it possible?
http://www.roleplayrepublic.com/roleplay/view_desc/11248/