PDA

View Full Version : Table borders...?



Lucky13
April 30th, 2001, 16:47
Is there a way to make it so that the top of a table or cell doesn't have a border? so that it would look something like this:

| |
| |
|______|

Please reply if you know. Thanks a ton!

~Lucky13

meow
April 30th, 2001, 17:06
Theoretically - yes. With CSS. border-top, border-right and so on. But the support for it is too bad.

You have to use tricks to mimic table borders. Like 1 pixel gifs that you stretch to lines or bgcolor in thin/low cells, tables in tables. Lots of tweaking but it works.

Lucky13
April 30th, 2001, 17:07
sigh. ok...thanks. So wold you make a table class?

<table class="notop" etc> ???

meow
April 30th, 2001, 17:53
I would go for straight old HTML for this. But don't take my word for that this is the best way. It's just that I know how to do it that way, what browsers it will work in and so on.
If you just want a couple of lines/borders it shouldn't be so hard.

BTW another way is to use a background picture with a line at one side. Either a big one that fills the whole cell or table or a thin one and use CSS to make it repeat only in one direction. You just have to do it so it doesn't look like ---- in the browsers that don't handle it if that is a concern for you.