Lessons: 1, 2, 3, 4, 5, 6

Lesson 3. Changing borders


There are three border types in Tornado skins.
  1. The borders between cells are defined by the "background:" parameter of the ".TS" (Table Style) class
    (that's because each table in Tornado templates has cellspacing="1" and the table background color appears through these "slots". We made this to get the accurate 1 px borders).
  2. The borders around the tables - defined by the "border" parameter of the <table> tag
  3. "3D" cell borders - defined by the "border" parameter of any cell class. It's typical for Brick series

We'll study everyone.








Please open your /tornado/css/OceanAbove/style.css file (or style_ns4.css for NS4 browser) and familiarize with classes, which you can change now.
.TS - for Type1
table - for Type2

If you work with flat skin - change Flat (F) classes:
.TS - for type1
table - for type2
border: there are no "3d" borders in the flat skins

.TS { background:#2e386b }

table { background:#008ac9 url(images/dolphins.jpg) no-repeat; border: solid 1px #82a7d9 }


To study "3D" borders open your /tornado/css/BrownBricks/style.css file.
Look at the "border" parameters - for C1, C2, R1, R2 and other classes


.C1 { color: black; font-weight: bold; background: #eaeaea url(images/cstrip2bg.gif); text-align: left; padding-top: 3px; padding-left: 3px; border-style: solid; border-width: 3px; border-color: #ececec #666 #666 #ececec }

.C2 { color: #fff; font-weight: bold; background-color: #ce740c; text-align: left; padding-top: 3px; padding-left: 3px; border-style: solid; border-width: 3px; border-color: #ffa048 #813b2a #813b2a #ffa048 }

.R1 { color:black; font-weight: bold; background:#bdbdbd url(images/cstrip2bg.gif) repeat; padding-right: 3px; padding-left: 3px; border-style: solid; border-width: 3px; border-color:#ececec #666 #666 #ececec }

.R2 { color:white; font-weight: bold; background-color:#CE740C; padding-right: 3px; padding-left: 3px; border-style: solid; border-width: 3px; border-color:#ffa048 #813b2a #813b2a #ffa048 }



CSS border syntax

CSS parameter Description Suggested values
background:#nnnnnn
or
background-color:#nnnnnn
Table background color (in this context we discuss only .TS bg color) any color - its html name or number (#NNNNNN)*
border: solid
or
border-style: solid
Border style none
solid
dotted
dashed
border: solid 1px
or
border-width: 3px
Border width Npx
border: solid 1px #82a7d9 Border color - the same for all 4 borders any color - its html name or number (#NNNNNN)*
border-color: #ffa048 #813b2a #813b2a #ffa048 Border color for each border side (3D type only). Begins from the top edge of a border and then clockwise. any color - its html name or number (#NNNNNN)*.
It's recommended to pick the main cell color and make the top and left borders lighter, and the bottom and right - darker.

         *N - any number or (for html color) A-F letter in HTML color code
























R1. Change "{ color:white" to "{ color:YourValue"row2row1row1row2row2

Lessons: 1, 2, 3, 4, 5, 6