Forum Moderators: not2easy
When I code it with the following:
border="1" bordercolor="black" (partial coding)
it produces a thicker border than I would like.
How can I make it a nice thin border?
How can I make it a nice thin border?
By utilizing CSS. You may have something that looks like this in your external css file...
td {
border-collapse: collapse;
border: .05em solid #000;
}
The .05em will give you the thinest line available. Now, if you only need to apply that to one cell, you could set up a class like this...
td.name {
border-collapse: collapse;
border: .05em solid #000;
}
And then you'll have this in your html...
<td class="name"></td>
They both have the same setup: one table on top of the other, each with one cell.
I'm using Dreamweaver MX.
Thoughts?
I've learned more in a couple of days by reading this one forum than I have in a week of searching other places.
thanks,
Shadows Papa
Here's how:
The two tables that each had one cell in them with the thin border via CSS coding were located right next to each other with their respective images on top of them, which were also in their own respective tables. When I deleted the first table with the thinly bordered cell, the other table with its thinly bordered cell corrected itself and appeared as it should.
So, all I did was draw a third table, and put the second table with its thinly bordered cell and its respective image located on top of it, which is also in its own table, inside the third table that I just drew. For some reason the two tables with the thinly bordered cells were conflicting when they were exposed right next to each other.
What does the "collapse" part do in this example? Why use it?
Welcome to the forum Shadows Papa. What the "collapse" does is make the border of a cell inside a table very thin, roughly the size of a line drawn by a pencil. Without that coding, the thinnest you would be able to get a cell border is that of the value of "1". Try coding both ways, and you'll see what I mean. The "collapse" version is at least half the width of the border="1" version. It just looks a lot sleeker.