Since I will be using this numereous times per page, then I cannot use the div ID tag and must go with the .class tag. Is this correct?
Yes. You can define multiple elements in CSS with the class property.
Ex:
Code:
.blank {
border: none;
width: 100%;
height: .5em;
}
...
<div class="blank">
There's nothing wrong with this at all actually.
But one problem:
The height (.5em) won't even work if you don't set the overflow to hidden. Take a look at this:
Code:
.blank {
border: none;
width: 100%;
height: .5em;
overflow: hidden
}
A div naturally has the height of a line, so if you make that height invisible the height specified will be it's actual height.
Bookmarks