THE ART OF LAYOUT CODING: INTRODUCTORY CHAPTER

Mademoiselle; a layout tutorial thread
INTRODUCTORY CHAPTER: THE ART OF LAYOUT CODING

 Layout, as defined by the Merriam Webster dictionary, is the design or arrangement of something: the way something is laid out. Layouts are also the outer appearance, design and placement of elements in web pages and graphical arts. Here in asianfanfics, layouts are understood as themes, templates formatted in an eye-cathing way and used for particular threads. Normally, it eases the navigation (though not all layouts possess that characteristic tbh sorrynotsorry even I make this mistake if I can refer to it as one) and gives a neater look on the threads. A layout in asianfanfics uses html and css for styling and positioning but layout designing is very distinct from coding because when you design, you let your imagination overcome you and you draw how you want it to look like on your mind whereas in coding, you let your logic and knowledge work and you encode codes that gives life to your design (in other words, make your imagination come true lol). There are actually tons of languages for websites that can be used and creates a more creative look on a page such as Java, JavaScript,  JQuery, MYSQL, PHP, ASP etc. But unfortunately, aff doesn't support those (even CSS3 isn't supported by the server which is so meh). Therefore, artistic talents are an advantage/elements for aff layouting. A coder, who has a graphical/multimedia talent, has an incentive than other coders who uses plain divs and the likes (but you can style divs like these and these). It is all about resourcefulness, strategic ideas as a substitute for things that can't be done in pure html and css. But for now, I'll be teaching you about tag/element/elements first.

 

< p >< / p > - Paragraph. This can be styled with css such as text-align, text-formatting attributes and a lot more (to be discussed in the next chapters.)


< div >< / div > - Divider/Division/Block. This is, let’s say the heart of a layout. It holds everything in place. It's a block you should always have to make your codes flexible. Thus it's an essential element. And everything goes here. This can also be styled with css.


< table > < / table > - Table (obviously LOL). This tag/element/elemet basically makes a table. With the help of its mighty friends the tag/element/element which is for the table row and the tag/element for table cells.

 

Here is the structure of a table:

< table >
< tr >
< td >< / td >
< td >< / td >
< / tr >
< / table >

 

But in aff, there’s a button there where you can easily insert a table so you really don't need to code this manually.

 

< ul >< / ul > - Unordered list. It just makes a bulleted list of items.  According to W3SCHOOLS, “Each list item starts with the tag. The list items will be marked with bullets (small black circles).”

 

< li > < / li > - Comes under the unordered list. Knowing these two (ul and li) essential helps when creating navigation bar for your website (but you also have to learn CSS).

 

< ol >< / ol > - Ordered list. It’s typically, a numbered/alphabetical list of items

 

< blockquote > < / blockquote > - Blockquote. It's used to quote a paragraph/div. Tbvh I dunno how to explain this any further. But according to https://developer.mozilla.org, “it indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how to change it). A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the element.”

 

< you >< / you > - You tag/element. This exists only in AFF. We can say it's a custom tag/element that works with the accompaniment of JavaScript. When you use this, whoever views that page will have his/her username written on that page, specifically on the space where you encoded the “you” tag/element.

 

Sample:

Hi! < you >< / you >

 

Output:

Hi!

 

< br / > - Break. Sometimes, to make everything better, you have to use the break.

O...kay what was that.

Anyways, this tag/element has the beginning and the end in it. You know what I mean? Yep it's a single tag/element that does not need anything between it. This tag/element separates your words into lines.

 

In the default editor, this can be achieved by using the shift+enter. No need to type it in the source.

 

< hr / > - Horizontal line. When I was a total beginner, I wondered how this works. Now, guess I could explain it already. This simply creates a horizontal line, as the name suggests. And that magical horizontal line let's your paragraphs or anything around it be separated (surely separation is a good thing sometimes) and lets you give different alignments to those paragraphs. Kinda cool no?

 

Sample:
 

Lorem...
< hr / >

Lorem...

Output:


Lorem...


Lorem...

See the magic?

 

< img / >- Image. This lets you put an image in your layout. Use the src="imglinkhere" attribute to add the image link, title="here" attribute to add a title that can be seen when you hover an image and also when preloading the image and the style="attributes here" to style the image. That title att. also works for a div or a text. Great huh?

 

Format:

< img src ="link.jpg" style="atthere" title="yo"  / >
title and style can be rumbled.

 

< iframe>< / iframe > - iFrame. A powerful tool that thank God works in AFF. This lets you embed music/playlist, YouTube videos and any other thing that AFF can support.

 

< span >< / span > - Span. Lets you format your text in a separate manner. For example, you wanna change the spacing of just a word, you should use this tag/element and place the breaking tag/element () on the end of that word and it'll be applied only to that word. But let's say you have a paragraph and you have used span for the whole text. That word will still adapt the attributes you've placed there as long as it's enclosed in the span tag/element. If not, that particular span style will only work on those inside it. Understood? A sample might help.

 

Sample:

< span style="text-transform:lowercase;" >HEY YO< span style="letter-spacing:-4px;" >Goooo< / span >< / span >

 

Output:

HEY YOGoooo
 

Don't freak out. I'll discuss what those stuffs are on the succeeding chapters.

 

< em >< / em> - Emphasize. It makes a letter, a word, a phrase, a paragraph, a number, or a set of numbers ITALICIZED.
 

< b >< / b > - Bold. Makes something bold. (I’m lazy to re-state what I have stated above orz).
 

< s >< / s > - Strikethrough. Draws horizontal line on a text.

(You really don’t have to manually encode these tags/elements though. I meant the em, b and s)

 

Did I forget to include something? Oh well but I also want to discuss that & nbsp; on your source code. That means non-breaking space and it lets you move one character to the right. And also some alt characters are transformed into actual characters. How do I say this. Hmmm... like those <> that becomes & lt; (less than) and & gt; (greater than) when you do something wrong eg. forgot to add one essential thing like "" or <> (it's annoying believe me. Everything becomes freaking words -_-).

And also, to give you more information, here is a
list of deprecated HTML elements. But still, some of those are used here (AFF is completely old-fashioned in some sense haha).

Ahuuu so this is an introductory chapter. I have a lot to discuss and rant about on the next chapters!
 

I'll discuss attributes one by one. They're very essential for styling and formatting so stay tuned ♪

-RienRien, with love ♥

Like this story? Give it an Upvote!
Thank you!
RienRien
HI EVERYONE! BEEN LESS OF A CODER AND MORE OF A PROGRAMMER NOW. STILL, IF YOU HAVE REQUESTS PLEASE COMMENT BELOW ^_^

Comments

You must be logged in to comment
Janmidget
#1
I made my own code for chapter layout following some instructions in every tutorial I happen to scan here in aff but can you help me how to make a picture as text background? Every time I am following the <div tag with <img tag its just topping my text box. It didn’t turn out as BG and I’mma lil bit frustrated abt it.
Theartdevotee
#2
Is the layouting on tumblr the same with aff?
Leonny
#3
Chapter 7: I'm still confused about the float thingy-- like, does it save you time from writing the "margin border this" or smtg like that¿? It's been many months since I last coded.
slategrey
#4
Chapter 5: Thanks for making this thread! Quick question though, does the positioning of the div apply the same even if you add links on it, or images? I don't use "float" generally as it doesn't work for me both for images and divs so I just use "margin" to position the boxes (I hate this part most in coding like for real since it's very hard to align them using margins, and although float seems easier, I can't make it work like GAH). I've seen you do the same with images and a div together (using margin) so no problem with that I guess, but how do I do it with two divs?
aleric
#5
This is so awesome of you to create! :)
xiutease
#6
i'm in literal tears after reading this chapter i realized how i could fix the code i was so frustrated over. T H AN K YOU
Rinkou
#7
Chapter 3: Thanks for creating these tutorials, it helped me understand what layout is about :)!
MlRAGE
#8
Chapter 2: omg thank you
Fantabulously
#9
Chapter 2: Just wondering, are there ways to put the sscrollbar on the left hand side or make crescents with the "border-bottom-right-radius:" thing?