Click to See Complete Forum and Search --> : Simple question about rectanlges


Taruto
September 27th, 2005, 04:23 AM
Tell me please how the colorful rectangles as you see in http://www.yahoo.com/ on the right or left with links inside are created ? I only know they are not images. Thanks

olivthill
September 27th, 2005, 05:44 AM
The source code includes everything.
The rectangles are made with <div> sections, e.g. one for the header, and another for the paragraphs below.
Each div has a "class" name (e.g. "r" and "ct"), and with each class is associated a style.
The styles are defined with CSS properties, i.e. "border", "background", "border-color", "padding", "margin-right", etc.