/    Sign up×
Community /Pin to ProfileBookmark

Background image not displayed.

Why is the background image not displayed? [URL=http://bokehman.com/family_tree/]Here’s a link to the page.[/URL]

Missing image is [I]id=”tree”[/I]

[code=html]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<html lang=’en’>
<head>
<META HTTP-EQUIV=’Content-Type’ CONTENT=’text/html; charset=ISO-8859-1′>
<title>Family Tree</title>
<style type=”text/css”>
<!–
body {
margin: 0;
padding: 0;
font: medium arial, helvetica, sans-serif;
background-color: white;
color: black;
}

#tree {
text-align: center;
margin:0;
padding:0;
background:url(http://bokehman.com/family_tree/tree_bg.gif);

}
#tree ul {
list-style: none;
margin: 7px;
padding: 0;
clear: both;
}
#tree li {
float: left;
margin: 0 1px;
padding: 0;
}

#tree img{
padding: 0;
margin:0;
}

#tree p {
margin: 0 0 25px 0;
padding: 0;
}

–>
</style>
</head>
<body>
<div id=”tree”>
<ul>
<li>
<img src=”noggin1.jpg” alt=”Carmen”><p>Carmen</p>

<ul>
<li>
<img src=”noggin1.jpg” alt=”Carmen”><p>Carmen</p>
<ul>
<li>
<img src=”noggin1.jpg” alt=”cousin1″><p>Manolo</p>
</li>
<li>

<img src=”noggin1.jpg” alt=”cousin2″><p>Anabel</p>
</li>
<li>
<img src=”noggin1.jpg” alt=”cousin2″><p>Arancha</p>
</li>
</ul>
</li>
<li>

<img src=”noggin1.jpg” alt=”Valentin”><p>Valentin</p>
<ul>
<li>
<img src=”noggin1.jpg” alt=”Jaime”><p>Jaime</p>
</li>
<li>
<img src=”noggin1.jpg” alt=”Begoña”><p>Begoña</p>

</li>
</ul>
</li>
<li>
<img src=”noggin1.jpg” alt=”María Rosa”><p>María Rosa</p>
<ul>
<li>
<img src=”noggin1.jpg” alt=”María”><p>María</p>

</li>
<li>
<img src=”noggin1.jpg” alt=”Ismael”><p>Ismael</p>
</li>
<li>
<img src=”noggin1.jpg” alt=”Pablo”><p>Pablo</p>
</li>
</ul>

</li>
<li>
<img src=”noggin1.jpg” alt=”Merche”><p>Merche</p>
<ul>
<li>
<img src=”noggin1.jpg” alt=”Rocío”><p>Rocío</p>
</li>
</ul>

</li>
<li>
<img src=”noggin1.jpg” alt=”Olga”><p>Olga</p>
<ul>
<li>
<img src=”noggin1.jpg” alt=”Lucas”><p>Lucas</p>
</li>
<li>

<img src=”noggin1.jpg” alt=”Javier”><p>Javier</p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div> <!– tree –>

</body>
</html>[/code]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@BOB101Feb 21.2006 — You have to tell it to repeat it or not, or other words the image won't show. Use this:
[CODE]background:url(http://bokehman.com/family_tree/tree_bg.gif) repeat;[/CODE]
Copy linkTweet thisAlerts:
@bokehauthorFeb 21.2006 — You have to tell it to repeat it or not, or other words the image won't show. Use this:
[CODE]background:url(http://bokehman.com/family_tree/tree_bg.gif) repeat;[/CODE][/QUOTE]
It's not that but it's possible you are on the right track. If I move the following line to the [I]body[/I] styling it works so why doesn't it work under [I]#tree[/I].[code=html]background:url(http://bokehman.com/family_tree/tree_bg.gif);[/code]
Copy linkTweet thisAlerts:
@The_Little_GuyFeb 21.2006 — change this:[CODE]
background:url(http://bokehman.com/family_tree/tree_bg.gif);[/CODE]


to this:[CODE]
background-image:url('http://bokehman.com/family_tree/tree_bg.gif');[/CODE]
Copy linkTweet thisAlerts:
@bokehauthorFeb 21.2006 — Ok! I have solved it now. The above answers are red herrings. The div had no height because it only contained floated elements.
×

Success!

Help @bokeh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...