I have been messing around trying to figure out some basics of html/css. I have a tan background with a white table. I want the background only to show up on the left and right sides(table is centered). The problem is the background is showing up on the top and bottom also. Why is it doing this? How can I fix it?

    <title>test page</title>

        body { background : url(images/tan-sponge.jpg) tan }


<div align="center">
<table style="height: 100%;" valign="top" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="752">


Recommended Answers

All 2 Replies

    body { 
      background : url(images/tan-sponge.jpg) tan;

Thanks :-) I got so much to learn.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.