Vertical Lines

⎡Designs of a Muse⎦« Layout Tutorials »
 
 
 Vertical Lines

Hope you've all had a wonderful day!

I'm back with another guide, it will be short and sweet...I hope ^.^.

So from the title, vertical lines. There are two ways to do this and both require the use of < div > tags.

The first requires you to 'turn off' the border lines for top and bottom of the text box and another used the entire text box. Confused? No worries! Let's start!

Method 1: 'Turning OFF' Lines

From text boxes part 1. you may remember that four the 'double' style, you were required to split up the border attributes into width, color and style. We will make use of the 'style' part. Generally, 'style' will only be attached to ONE type, either solid, dotted or double. However, by manipulating this and splitting it into four, you can easily define the 'style' type of each edge of your text box, like so:
 

border-style:double solid dotted dashed; 

 

Here you can see that each lines' style is specified based on the order that the style appears in 'border-style'.

border-style: top right bottom left;
 

So along this line, if you change the top and bottom styles to 'none', you will get two vertical lines on either side of your textbox (use solid for right and left). Simply adjust how far apart they are by using 'width' in the < div > tag.


Method 2: Fill in Text Box

This method uses the entire text box as the vertical line. Simply make the width of the box no more than 5px (any larger and it looks kind of odd), and make the height any value you like.

 

 

 This line is 5px wide, 50px high and background color has been changed to match border color #000000. 

 

   

 


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^^