View Full Version : Table border width
loosestring
24th Jan 2005, 02:56 pm
With regular html tags I set my table border width to 1px, but it's still wider than I'd like. I have seen many a site where the border is more fine like these phpBB forums. How do I set my borders to be thin like that? Is it a different language than html (xml, php, etc.) or is it maybe something that can be set up in a css style?
CADTutor
24th Jan 2005, 05:54 pm
By far the best way to get single pixel table/cell borders is to use CSS. A declaration like this:
table {border: 1px};
will give you what you want.
See here (http://www.w3.org/TR/REC-CSS2/tables.html) for more information.
You can achieve the same thing with plain HTML by using 1px width/height rows and columns but this is not recommended :wink:
loosestring
24th Jan 2005, 06:20 pm
ok thanks. now i just have to read up on css. i just started getting my feet wet with it last week.
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.