Text Boxes P2.

⎡Designs of a Muse⎦« Layout Tutorials »
 
 
 Text Boxes p2.
Now that you know how to create a text box, let's get to modifying it's appearance. In Part 1, we adjusted the style, color and size of the border.

In Part 2, we will look at adjusting height and width. There are two ways to do this, both can be considered simple, but I do find that one is easier to use than the other.

You can use exact pixel quantities in the code:

< div style="background:#ffffff;border:2px solid #000000;width:400px;height:25px;" > Enter desired text. < /div >

Enter desired text.
Or you can use percentage values:

< div style="background:#ffffff;border:2px solid #000000;width:50%;height:10%;" > Enter desired text. < /div >

Enter desired text.

I find that using pixel values will give you greater control over how small or large you want your box, but using percentage values is  quicker than having to figure out how many pixels will make a box full screen. It should also be noted that the number of pixels to fit a full screen will vary depending on the monitor you use while editing. However, once a layout is saved, it will adjust itself when viewed again.

It is important to remember that the layout you see in editing mode will not be what you see once you save and publish. You need to be constantly saving and viewing your finished layout, in order to make sure that all the colors are what you want it to be and everything is in the correct position.
   

 


S
C
R
O
L
L
Like this story? Give it an Upvote!
Thank you!

Comments

You must be logged in to comment
rolling-thunder #1
Chapter 8: Just a question before I try this out--
Does this work the same way for pictures?
Like if I was to make a horizontal scroll for pictures, would it work the same way as with boxes?
-xttran #2
Chapter 4: I'm still very confused on how to make a vertical scroll ;-; /sobs/
Rose_17 #3
Chapter 1: Hello !! May I ask? Because I've been trying to apply the borders but can't. Do I copy the code you provided to the source? or something else?
CaramelMilkTea98
#4
Chapter 6: Waiting for more tutorials authornim~ I've been wanting to try making a layout or something to make my story more interesting haha. Thank you so much for writing these^^