where is my background image disappearing

Discussion in 'CSS' started by websys, Aug 1, 2006.

  1. #1
    http://www.discusstv.com/ is the site ... i have temporarily just used a image which i want to use as bacground image , below is the code
    You will see it comes once and then disappears .
    Can anyone help ?

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Discuss TV : TV Serials, Gallery, Indian television stars, Reviews, FanClubs</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    .txt {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 10px;
    	color: #666666;
    }
    #navcontainer ul
    	{
    	list-style-type: none;
    	padding: 0;
    	margin: 0;
    	display: block;
    	float: left;
    	background: url("images/navBarBg4.gif") repeat-x 20px;
    	font: 12px/25px "Lucida Grande", verdana, sans-serif;
    	text-align: center;
    	clear: none;
    	}
    	
    	#navcontainer a
    	{
    		color: #FFFFFF;
    		text-decoration: none;
    		display: block;
    		width: 94px;
    		height: 27px;
    		border-top: 1px solid #A8B090;
    		border-bottom: 1px solid #A8B090;
    		border-left: 1px solid #A8B090;
    	}
    	
    	#navcontainer ul#active { background: url("images/navBarBgHover1.gif") repeat-x 20px; }
    	#navcontainer a:hover { background: url("images/navBarBgHover1.gif") repeat-x 20px; color: #000000; }
    
    -->
    </style>
    <style type="text/css">
    <!--
    .tabheading {
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	font-weight: bold;
    	color: #FFFFFF;
    	text-decoration: none;
    }
    .border1 {
    	border: 1px solid #CCCCCC;
    	padding: 0px;
    }
    .midtableheading {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	font-weight: bold;
    	text-decoration: none;
    	font-style: normal;
    	padding-left: 10px;
    }
    .midtext {
    	font-family: Geneva, sans-serif, Verdana;
    	font-size: 11px;
    	font-style: normal;
    	font-weight: normal;
    	color: #666666;
    	text-decoration: none;
    	line-height: 17px;
    }
    .horborder {
    	border-bottom-width: 1px;
    	border-bottom-style: solid;
    	border-bottom-color: #999999;
    }
    .context {
    	font-family: Geneva, sans-serif, Verdana;
    	font-size: 11px;
    	color: #666666;
    	padding-left: 10px;
    }
    .tvtext {
    	font-family: Geneva, sans-serif, Verdana;
    	font-size: 9px;
    	color: #333333;
    	padding-left: 3px;
    }
    .footer {
    	font-family: Geneva, sans-serif, Verdana;
    	font-size: 9px;
    	color: #999999;
    }
    .style1 {color: #003399}
    -->
    </style>
    <STYLE>
    <!--
    BODY
    {
    	[COLOR="Red"]background-image: url(images/bgpic.gif);[/COLOR]
    	scrollbar-face-color:#EDF8FF;
    	scrollbar-arrow-color:#F26520;
    	scrollbar-track-color:#BBD7F9;
    	scrollbar-shadow-color:#000000;
    	scrollbar-highlight-color:#000000;
    	scrollbar-3dlight-color:#808080;
    	scrollbar-darkshadow-Color:#BAD7F7;
    	
    }
    -->
    </STYLE>
    </head>
    
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <!--DWLayoutTable-->
    
    Code (markup):
     
    websys, Aug 1, 2006 IP
  2. deronsizemore

    deronsizemore Peon

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    how about trying this: background: url(/images/bgpic.gif) repeat;
     
    deronsizemore, Aug 1, 2006 IP
  3. websys

    websys Active Member

    Messages:
    841
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    78
    #3
    doesnt work ... same prob
     
    websys, Aug 1, 2006 IP
  4. picklemy

    picklemy Peon

    Messages:
    227
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    Code (markup):
    This is my guess... On your site you have alot of table width's set to 100% (the whole page) with a white background, which will cover the background image
     
    picklemy, Aug 2, 2006 IP