View Full Version : CSS, Tables and <hr> tags

07-28-2006, 10:39 AM
The plot thickens...

OK I put my hrs in a table and for some reason (despite setting the width) they all stretch across its entire width.

Any ideas?


07-29-2006, 06:23 AM
Well, <hr> doesn't belong in a <table> exactly, if that's exactly what you mean. They could go in a <td> within a <tr> within a <table> which is probably what you meant. I mention this just in case and also because for the width of the <hr>, if expressed as a %, to have much meaning within a <td>, the <td>'s width must also be set. If you set an <hr>'s width in absolute units like pixels (not generally a good idea) they should appear that width no matter what, unless you made an error in setting their widths or placed them somewhere that they don't belong.