Forum Moderators: not2easy
[edited by: not2easy at 3:16 pm (utc) on Feb 20, 2018]
[edit reason] (depersonalized) [/edit]
background="images/left.gif" width="169" height="100%" appears to be from a html4 (or older) page. Compliant browsers need to have hints to understand how to parse html and css. Browsers depend on finding instructions in the document (page) to tell them how to read and display the page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
because that inline styling would conflict with just about anything else today. That tag belongs on the first line in the document before anything else. HTML 4.01 started going away long before 2009 but some site creation software continued cranking it out. and in fact are .htm not .htmlIt's the same thing. The .htm extension simply means that either the page was created, or the designer started coding, years and years ago when certain operating systems only permitted 8+3 filenames. It's as meaningless as the difference between .jpg and .jpeg.
[edited by: not2easy at 2:10 pm (utc) on Feb 21, 2018]
[edit reason] Please see WebmasterWorld TOS - no urls [/edit]
td.lefthalf {background: url("images/left.gif") center right no-repeat; height: 3px;}
td.righthalf {background: url("images/right.gif") center left no-repeat; height: 3px;}
(and background-position set so the two halves touch) paired with <tr>
<td class = "lefthalf"> </td>
<td class = "righthalf"> </td>
</tr>
Although it is not technically necessary in modern browsers, I've found that putting an in any empty cell is a good way to absolutely guarantee that it retains any desired properties such as background or border. They are 3 px tall but as a repeated background.Aha! That's not 100% height; it's "background-repeat: repeat-y" in the css. 100% height would mean that the image is stretched vertically to fill the available space--which is also perfectly legitimate, but again it has to go in the CSS as "background-size".