eHow launches Android app: Get the best of eHow on the go.

How To

How to Add Line Bars to a Website

Contributor
By Jade B.
eHow Contributing Writer
(0 Ratings)

A line bar is a line with varied thickness that runs across a web page. It can be a horizontal line or vertical, running top to bottom onscreen. You might use a line bar to break up two sections of a web page and make it easier for the viewer to understand where new information is being discussed. Many times a line bar is just used for decor on a website--to add color and give the site more flair.

Difficulty: Moderately Easy
Instructions
  1. Step 1

    Insert the content of your website as normal. This includes text, images, videos and other pieces of information. Then determine the locations where you want to add your line bars. You can use any of the following methods to create line bars that run across or up and down the page.

  2. Step 2

    Create a table using HTML. When you use this method, you can easily change the length, height, positioning (left, right or center aligned) and color of the line. If you want a vertical line, just add a "height" attribute to your "table" tag. Scroll to "References" and click on "Table Code" to view the full HTML code for a table that looks like a line.

  3. Step 3

    Create a line in Adobe Photoshop or another image-editing program. Simply use the "Line Tool" to create a straight line across a blank document. Change the color according to your preferences. Then save the file as a .JPG or .GIF file and insert it as an image to the area where you want the line bar to be displayed (use the "img src" tag).

  4. Step 4

    Use the underscore on your keyboard ("_") repeatedly for a simple, thin line bar on your website. To change the color of this line bar, use the "font color" tag in HTML. Enclose the line in "bold" tags (<b>) if you want it to be slightly thicker. This is only good for a horizontal line---doing this vertically could cause problems in your HTML code, and you won't be able to position it optimally on your page with other elements.

Tips & Warnings
  • Make sure that your line contrasts well with your background. For example, if you have a black background, a white line bar will show up on screen the best. If you want the line bar to have intricate designs, grab a predesigned line from a free line bar site (see an example under "Resources") or create the design in Photoshop.

References

Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Tags
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics