I want to create a site with a background one color and the centered content section another color. I am having trouble setting up custom tags to achieve this. Here’s what I have:
A custom body tag –
<body style="background-color: #000000" >
<div style="text-align:right; padding: 10px; background-color:white; width:800px">
<jsp:doBody />
</div>
<n:footer></n:footer>
</body>
It seems to me that anything that I include between the custom body tags on my jsp should have the background-color = white and everything else around it should be color = #000000. This isn’t the case. Instead I only have a band 10px high across the page. What am I doing wrong?
The
<div>collapses if there is no content. Give it some text.