Member Avatar

I would like the background to appear underneath the horizontal menu on this page. My code currently looks like this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en" xml:lang="en">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="/style/equalcolumns.js" type="text/javascript"></script> 
<link rel="stylesheet" type="text/css" href=""/>
<title>FURTHER FLIGHT</title>


	<?php include($_SERVER['DOCUMENT_ROOT'].'/style/mainmenu.php');?>



body {
background: url("/media/background.gif") repeat fixed 0px 50px;

Suspect it's a simple fix - could anyone point me in the right direction, please?

Recommended Answers

All 7 Replies

background-color: transparent;

Member Avatar

I'm afraid that's not corrected the problem.

Are you applying it to the body, or to the objects within the body. It must be applied to all of the objects you want to see the background through.

Note that it doesn't work with form text boxes.

just redo your background image
there should be 8px of white to match the padding, 10px of dark green because of the borders, 147 of the lighter green, and another 10 of the dark green

you have 10px of white, not 8 :P

Member Avatar

The background would still be positioned incorrectly, surely? It's the vertical alignment that is causing the issue.

Try using two divs, with a background image in each one.

Be a part of the DaniWeb community

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