How do you make an HTML table with a table border on only one of the
sections?
Ian
2009-10-14 20:36:03 UTC
I'm really trying to have here an html table that has a picture on the left, and in the same row a paragraph with a table border around it... I got this far, but am really confused, it doesn't work! Please help! Here's the code:
blah blah blah...
Three answers:
bABy Boo
2009-10-14 21:04:02 UTC
hi,
heres the right code.
blah blah blah...
Corrections:
1. When you open a style attribute dont forget to close it with qout(")
2. div tag will not obey in the table tag so I eliminate the div in the blah blah blah...and put the style attribute at the
tag
2009-10-15 04:15:01 UTC
Table coding is incorrect, but ALL you have to do is use CSS. Set an id for the border property and place that id in the ONE cell where you want the border to show:
td#b_order {
border: 1px solid #f0f;
}
Then where you want this border:
cell contents
Ron
djlazi
2009-10-15 03:40:30 UTC
You use css, in the td tag you would add something along the lines of style="border: thin;" or whatever you want the border style to be...the way you have it puts borders on the whole table.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.