|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Resident AMD enthusiast
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
|
Borders?
I'm working on a new look for my web-site. In the end, I want the overall look to have a red background, with white boxes with a thin black border. I've managed a ghetto makeup of this with a bunch of tables, but that gives me the default gray "3d" borders, I simply want a thin sold black line.
Here is a link to the site which inspired me: http://www.thetechguide.com/ And the page I'm working on for my re-design. http://users.pld.com/djohns/restart.html TIA, L J
__________________
Main: Gigabyte GA-770T USB3 - Phenom II 840 - 4GB DDR3 - Radeon 5750 1GB HTPC: MSI K9N6PGM2-V2 - Athlon II 250 - 4GB DDR2 - Radeon 5670 512MB HTPC: Zotac GeForce 6100E-E - Athlon X2 5800+ - 4GB DDR2 "Play a Windows CD backwards and you'll hear satanic voices, thats nothing, play it forwards and it installs Windows." |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
|
Here ya go. All you have to do is set all the border colors to black.
PHP Code:
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Actually all of the bordercolor tags are now deprecated. You should use CSS instead.
Example: In the head section or on an external stylesheet: <style> .blackborder {background-color: #FFFFFF; border : thin solid Black; </style> In your TD tags: <TD class="blackborder">Text Here</TD> Instead of thin, you can also specify pixel sizes and you can use dotted, dashed, grooved, ridged or double lines. |
|
|
|
|
|
#4 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Another reason to use CSS is that if you do decide to change colors or anything, you will have to change all of your bordercolor tags instead of just changing the class in css.
Here is a little test page done to show some of the styles. |
|
|
|
|
|
#5 |
|
Resident AMD enthusiast
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
|
Thanks for the help! Mairving, I cant see any difference between the last 3. (haven't looked at the code yet).
L J Last edited by Colonel Sanders; 06-03-2004 at 01:04 PM. |
|
|
|
|
|
#6 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
You don't see much difference in the last three since the border was also specified as thin. Removing the thin reference yields this .
The bottom two look fairly similar in this case mostly because of the background. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|