Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML CSS Background image not displaying 1

Status
Not open for further replies.

gwhitehe

Programmer
Apr 6, 2009
9
0
0
IE
I'm switching from HTML Transitional to XHTML Strict.

I ran it through a validator and everything seems fine.

However, the background image in "podBacker" div does not display.

Any ideas why this may be?

Cut down version of code below.

Any help greatfully appreciated.

HTML
=====
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
<html xmlns=" xml:lang="en" lang="en">
<head>
<title>Get Adobe Flash Player</title>

<link rel="stylesheet" type="text/css" href="./noplayer.css" />

</head>

<body>
<div class="podDiv">
<div class="podbacker">
<div id="noPlayerText">
<br />
To view, you will need Adobe Flash Player version 9.0.28 or greater.
<br />
<br />
<br />
</div> <!-- noPlayerText -->
<div id="noPlayerButton">
<div id="noPlayerAnchorDiv">
<a class="noPlayerAnchor" id="noPlayerAnchor" href=" title="Click here to download Flash Player">Get Adobe Flash Player</a>
</div>
</div> <!-- noPlayerButton Div -->
</div> <!-- podBacker Div -->
</div> <!-- podDiv Div -->
</body>

</html>


CSS
====

body {
background: url("../img1.jpg") no-repeat;
/* This is the same size as the application window */
width: 959px;
height: 604px;
z-index: -1;
margin: 0%;
}

.podDiv {
padding-left: 220px;
width: 100%;
}

.podBacker {
background: url("../img2.jpg") repeat-y;
}

#noPlayerText {
margin-left: 20px;
font-family: arial;
font-size: 0.75em;
color: #000000;
}

#noPlayerButton {
margin-left: 20px;
}

#noPlayerAnchorDiv {
position: relative;
top: -20px;
background: url("../img3.gif") no-repeat;
width: 202px;
height: 24px;
}

#noPlayerAnchor {
text-align: center;
line-height: 24px;
padding-left: 3px;

font-family: arial;
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
font-size: 0.9em;
}
 
have you uploaded the image?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Hi

HTML:
<div class="pod[COLOR=red pink]b[/color]acker">
CSS:
.pod[COLOR=red pink]B[/color]acker {
Next time please post you code between [tt][ignore]
Code:
[/ignore][/tt] and [tt][ignore]
[/ignore][/tt] TGML tags.

Feherke.
 
feherke, thank you.

D'oh! I guess that's why they call it "Strict"!

Sorry about the code tags, completely forgot.

 
nice spot! star for you!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top