SiteExperts.com Logo Home | Community | Developer's Paradise | Jobs
User Groups | Site Tools | Site Information | Search

Inside Technique : Cool Rules : More Rules

This simple page demonstrates a few rules that can be created. Notice how the width and height of the rule can be customized, and how the alignment argument allows you to insert float the rule to the left or right edge (the vertical rules are not in a table).


Using the alignment argument, you can quickly create rules that are on the left or right edge of the page.


The code used to generate each rule:

createHR("00FF00","FF00FF",32,"50%",3, true)
createHR("CCFF00","FF00CC",16,32,16, true)
createHR("FF0000","FFFFFF",32,5,150, true, true, "left") 
createHR("FFFFFF","0000FF",32,5,150, true, true, "right") 
createHR("FFAA00","AA00EE",32,100,8, true, false, "center") 
createHR("00FFFF","FF00FF",32,32,32, true, true)