L003. coding basics

on CLOUD 9 || graphics & layouts tutorials
Please Subscribe to read the full chapter

coding basics

 

 

 

1. You'll need to go into source to start coding. Click "source" to code and click it again to go back to the normal editor.

 

 

 

2. The most important thing about coding is the <div> tag. The <div> tag groups different part of the code together. <div> starts the group and </div> ends the group.

For example, the blue <div> and </div> groups 1 part of the code, and so any other tag applied to this <div> group will apply to the whole group.

 

 

 

3. Click on the preview button to preview how your layout would look like.

 

In this case, this is the preview of my layout:

 

 

 

4. The <div> tag groups, adding the word style to it enables you to add style to the group.

 

So when you put
<div style="width:200px;">text here</div>
that text box would have a width of 200.

 

 

Notice how you'll need to put an  =  sign, followed by the  "  and  "  to group all your styles together, so if you want to set the height of the group as well, you'll put
<div style="width:200px;height:200px;">

Also, you'll need to add px behind any value of size in your code, take it as a unit

Please Subscribe to read the full chapter
Like this story? Give it an Upvote!
Thank you!

Comments

You must be logged in to comment
LilMinMinniexx
#1
I'm currently learning how the coding works here (since there are quite a lot of code pieces that don't work here.) These are pretty good guides :)
gagnant
#2
Chapter 4: hi?
can I ask you how to make this one "like this story? give it an upvote"
schneizel
#3
i'm not a beginner, but i really need this to learn how to use more textures and stocks, and omf.
thanks for this; i'll be waiting for more!

also, may i request typography? it's always been a matter that i've been struggling with.
Vonchic
#4
Chapter 11: You have, by far, the most helpful tutorials I've seen around! Seriously, I've been reading coding tutorials these days and I still had questions left hanging even after I read those tuts! I think it's because you're not just showing one way to do something but that you're showing what happens if you do this and not that. I'm looking forward to your scrollbar tut as I'm having problems making the scrollbar transparent on top of a background image. I know it will take a long time before we even get to that tutorial but I'm hoping it's one of things you will address! Thank you and have a good day!