|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Newbie question:
How can I make HTML tables with 1px borders? Like the tables for this forum? ![]()
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#2
|
|||
|
|||
|
You could use CSS, which is the easiest and most flexible way, but unfortunately not all browsers support this too well (especially the old browsers).
To be sure your page is displayed correctly you have to use tables, but I'm not sure which one of these was the most compatible way.. maybe someone else does... PHP Code:
or PHP Code:
Yeah, I know it isn't PHP, but I like the colors.. ![]() And in case you'd like to know the CSS way (which could be applied to almost any html-tag that's a "box"): PHP Code:
__________________
Best Regards, Håvard Lindset |
|
#3
|
|||
|
|||
|
Those work...
All of Harvard's ideas work. However, the first one would (I think) load the fastest as there isn't as many tables for the browser to read.
If you know that the majority of your audience will be using Internet Explorer (this MAY work in Netscape) use: PHP Code:
)You could also remove the bordercolor="#000000" attribute and it would kind of look black... Hope that helps -Corbb |
|
#4
|
|||
|
|||
|
I think WebGuy's technique makes a border wider then 1px. Thanks for the help guys.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Tables with 1px borders |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|