Hello, my code structure is simular to this, div has some classes.
But I want within them to put anything that will apear behind the
content a background. And I want it to be in fixed location
<div>
<div>
content
</div>
</div>

I tried doing this

<div>
<div>
<table>
<td class="test">
content
</td>
</table>
</div>
</div>

and having into my header this
td.test
{
background-image:url('menu.png');
background-repeat:no-repeat;
background-position:center;
background-size: 100%;
}
but it apears only where thre is text.
Plz help me what to do?

Member Avatar for diafol

td only have 2D dimensions if stipulated or have content. Stipulate the width and height in your css. Also your table cells aren't contained within a table row tag (<tr>...</tr>). Do this.

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.