|
How can I apply a border to my table, including it's cells? I've tried using border="1px" but that doesn't draw anything in the preview?
Even, the toggle borders on the table is on.
Is there any other way to achieve this, without using inlne styles?
|
|
|
|
|
Does this have anything to do with an article?
|
|
|
|
|
Pete O'Hanlon wrote: Does this have anything to do with an article?
Yes, it does, I have to insert a table in my article and i can't get the borders drawn!. The contents are quite long (enum values), so it is hard to recognize that content is of which row and might create confusion.
|
|
|
|
|
Try an inline style like this:
<table style="border:1px solid blue">
|
|
|
|
|
That draws a border around the table not the cells, the cells still remain joined to each other without any border.
|
|
|
|
|
You can apply a similar trick on the td element as well.
|
|
|
|
|
|
That's what I was wanting to avoid!
Anyways, I got one...
|
|
|
|
|
We actually have an official one. Please see below and let me know if you have any questions:
<table class="ArticleTable">
<thead>
<tr>
<td>Tables with borders. This cell a bolded and colorized border because of thead</td>
<td>This cell in this row ALSO has a bolded and colorized border because of thead</td>
</tr>
</thead>
<tr>
<td>This cell in this row is not bolded and colorized</td>
<td>Neither is this one</td>
</tr>
</table>
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Thanks, that's what I was looking for!
|
|
|
|
|
That is perfect... I've asked for help on my two last tip review and didn't get anything... with this it's much easier to do the tables look nice.. thx
There are no secrets to success. It is the result of preparation, hard work, and learning from failure. Colin Powell
|
|
|
|
|
use this : <table style="border:5px solid black">
-- modified 7-Jul-13 22:08pm.
|
|
|
|