Quick CSS question

Stationery-Direct

Free Member
Jul 12, 2005
1,305
124
I have a table and I need to add something to the CSS that makes the bottom line visible, for example (please excuse the crude illustration).

Instead of like this...

--------------------------------------
|oooooooooooooooooooooooooooooooo|
--------------------------------------

I just want it like this, with just the bottom line visible...


--------------------------------------

Is this possible? The code I have so far is...

.tt460 {
width:460px;
}

Many thanks for any help.
 
Last edited:

fisicx

Moderator
Sep 12, 2006
46,741
8
15,405
Aldershot
www.aerin.co.uk
table {
border: none;
border-bottom: 1px solid red;
}

or

table {
border: none;
}

and add an <hr> to the page.
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,741
8
15,405
Aldershot
www.aerin.co.uk
I am just waiting for the "Table are the spawn of the Devil" type comments to appear. ;)
Once did a review of a site with nearly 100 nested tables on the homepage. I seem to remember something like 3000 lines of code.

Nothing wrong with tables, I wish everybody used them except me. And of course you Dotty.
 
  • Like
Reactions: DotNetWebs
Upvote 0
I am just waiting for the "Table are the spawn of the Devil" type comments to appear. ;)

Regards

Dotty
I cba to argue with other developers over using tables anymore ;) I don't employ anyone that does use them and those that do are not my problem, simplez ;)
Although for antiquated MS and email newsletters in HTML then tables are the only route to go in order to get it to look right in Words renderer and have a full as possible audience. WTG M$ ;)

Damon, look at using lists instead, much quicker to render, any probs gimme a shout.
 
Last edited by a moderator:
  • Like
Reactions: Stationery-Direct
Upvote 0

cmcp

Free Member
Jun 25, 2007
3,340
846
Glasgow
So much nonsense talked in that thread, I decided not to get involved since FireFleur was on a crusade to prove it was possible, completely disregarding the fact that they're a pain in the arse for screen readers and don't group content semantically.

Screen readers group content sections by header. If your content is laid out in a table, the user has to tab through everything to get to it.

It was also claimed that tables would be the easiest method to achieve what the OP was after, which again is misleading because to build an accessible table you have to understand the summary, caption, scope, id and headers tags.

Yes it's physically possible, but it depends on your stance of whom you build for. I'm of the belief that my sites should be accessible with anyone using a browser, not just visual users.

It got ridiculous when folk started spouting rubbish like what does layout really mean and semantics is a blind em with science word etc.
 
Upvote 0

cmcp

Free Member
Jun 25, 2007
3,340
846
Glasgow
Upvote 0

Latest Articles