NetNomad312
Technical User
I'm still a pretty inexperienced with HTML, but I thought I would try making a site with a table instead of frames (or neither). I created a few background images that were relatively simple: mostly blue with a gradient to gold at the edges. I have a "horizontal" image with the gradients at the top and bottom, and a "vertical" image with the gradients at the sides. Because adding side borders to these images would make them un-tileable (i.e. only decent-looking on one particular screen resolution), I instead made two "endcap" images: one which would go on the right side of the table (to the right of the title), and one which would go below the end of the menu. To do this I decided to add another cell, of 8 pixels in width (as is the width of the endcap image) and set the endcap as its background.
That's when I noticed the problem: for some reason there's an x-offset being applied to these images. It's not a big offset, two pixels I believe, but it definitely made the endcap look weird. When I applied the "vertical" background image to the menu cell, it had the same problem. Oddly enough, there is no vertical offset (as the "horizontal" background image appeared correctly). It's not a product of a visual error in the editor I'm using (Visual Studio .NET) either, because when I opened the file in internet explorer the problem was still there.
The HTML that defines the endcap cell is:
<td style="WIDTH: 8px; HEIGHT: 128px" background="border1.png"></td>
Where could this offset be coming from, and how would I go about fixing it?
That's when I noticed the problem: for some reason there's an x-offset being applied to these images. It's not a big offset, two pixels I believe, but it definitely made the endcap look weird. When I applied the "vertical" background image to the menu cell, it had the same problem. Oddly enough, there is no vertical offset (as the "horizontal" background image appeared correctly). It's not a product of a visual error in the editor I'm using (Visual Studio .NET) either, because when I opened the file in internet explorer the problem was still there.
The HTML that defines the endcap cell is:
<td style="WIDTH: 8px; HEIGHT: 128px" background="border1.png"></td>
Where could this offset be coming from, and how would I go about fixing it?