T ; making a box inside a box (boxception)

random freebies.

 

This tutorial is requested. If you have any more questions, feel free to ask.
Note : Please hover over ther underlined texts, if you want or can't understand what I mean.
Click here for pictures: 1  |  2  |  3  |  4  |  5. It's different from the one below.
height:70px; width:440px; margin:10px 30px 0px
height:70px; width:460px; margin:0px 20px
height:70px; width:480px; margin:0px 10px
height:70px; width:420px; margin:0px 40px
 
< div style=" height:300px; width:500px; background-color:#EF5B4D; float:left; margin:5px 50px; ">
< div style="height:70px; width:440px; background-color:#FA898B; float:left; margin:10px 30px 0px; ">< /div >
< div style="height:70px; width:460px; background-color:#FDB1C8; float:left; margin:0px 20px; "> < /div >
< div style="height:70px; width:480px; background-color:#CDDE4E; float:left; margin:0px 10px; "> < /div >
< div style="height:70px; width:420px; background-color:#DEBA4E; float:left; margin:0px 40px; "> < /div >
< /div >


first, just create a box. make sure the size is easy to subtract to or divide (if you're making multiple boxes inside the box).
next, add another box inside the 'div' tag. adjust the size according to your margin.
the 'margin bottom' can be set to 0, so it'll be easy to code. it'll make your work less, it's easier than doing '-10, -32, -53, etc.

I really don't know how to explain this, but I hope at least my example can be understood. ^^;

 
Like this story? Give it an Upvote!
Thank you!
randomgull
i am now realizing how messy everything is now lmao
and i have the urge to fix them,,,,
but i won't

Comments

You must be logged in to comment
gymnopedia
#1
i know you published this so far back but THANK YOU SO MUCH!!
you are a life saver. ugh <3
Karenkwan01
#2
Chapter 52: ooh sounds interesting but the link links back to this chapter XDD might want to edit it even though you literally typed the link out already haha
aleric
#3
I should've subscribed sooner haha, please excuse my lateness!
You have such an amazing range here, it's great to see your thread still active :)
debbiesiro-official
#4
Chapter 51: hi! do you know how to make full screen layouts?
thank you^^
btw, thank you for your tutorials, they do help me a lot!
ChaeWon1stShipper
#5
Chapter 51: Have you watched Hell Girl? It's an old anime but to me it was good c:
starliet
#6
Chapter 29: if you're accepting requests, could you do a chapter like this one, but with green?
that's a hard color sorry, but it's my bias' favorite so it would be cool to see what pretty pictures are green!
(p.s different shades of green, like mint green, is cool too!)
AloisDA
#7
I have a few requests if you're looking for some!
I would like to know how to make the scroll bar invisible? or at least out of sight.
I really liked your chapter of palettes and patterns. If you find more and would like share I would love to see them!
Who's vs. Whose lol
I really like this shop/thread!!
COMlCSANS #8
Chapter 21: hello! this may be really (really) late, but i just saw that you mentioned my shop (hana-emi/wabi-sabi) in your layout shop list and i'm v honored to be a part of it! this aff thread is suuuper useful to me, and i'm glad you still have it up. thanks for all the hard work you put into it, as well as mentioning me in it! hope you see this soon, and have a lovely day. < 3

- old mikoshibas.
Graysome
#9
hii, can i ask how to centre a 2 column div? i've been trying margin-left on the second column and margin: auto; on the main div but it doesn't seem to centre ;;