/    Sign up×
Community /Pin to ProfileBookmark

Problem displaying image inside DIV tags

My logo image won’t display. I’m trying to load an image and mouseover nav bar, and a search input all within div tags. Any suggestions on what is wrong?

CSS:

[CODE]#canvas{margin:0 auto;width:950px;}
#header{color:#b60022;
background:url(images/header.gif) no-repeat;
width:835px;
height:275px;
margin-left:auto;
margin-right:auto;
padding:0;}
#logo{text-align:center}
#globalnav{ padding: 225px 0 0 0; background-image:url(../img/navheader.gif) no-repeat;}
#globalnav a{background-image:url(../img/nav.gif);background-repeat:repeat-x;color:#A6A6A6;display:block;font-family:helvetica, arial, sans-serif;font-size:.9em;font-weight:bold;padding:10px 12px;text-align:center;text-decoration:none;text-transform:uppercase;}
#globalnav a:hover{background-image:url(../img/nav_h.gif);background-repeat:repeat-x;color:#A6A6A6;margin:0;padding:10px 12px;}
#globalnav ul{list-style-type:none;margin:0 auto;padding:0;}
#globalnav ul li{border-left:1px solid #3676c4;border-right:1px solid #1957aa;float:left;margin:0;padding:0;}
#search{float:right;margin:6px 0 0;}
#search input{background-image:url(../img/input.gif);background-repeat:repeat-x;border:0;color:#696969;font-family:helvetica;font-size:1em;padding:8px 5px 7px 0px;width:118px;}[/CODE]

DIV tag:

[CODE]<div id=”canvas”>
<div id=”header”>
<div id=”logo”>
<img src=”img/boobmagnetlogo.png”>
</div>
<div id=”globalnav”>
<ul>
<li><a href=”<{$xoops_url}>”><{$smarty.const._YOURHOME}></a></li>
<li><a href=”<{$smarty.const.XOOPS_MODULE_URL}>/soapbox/”>News</a></li>
<li><a href=”<{$smarty.const.XOOPS_MODULE_URL}>/wfdownloads/”>Magnets</a></li>
<li><a href=”<{$smarty.const.XOOPS_MODULE_URL}>/contact/”>Contact</a></li>
</ul>
</div>
<div id=”search”>
<form method=”get” action=”<{$xoops_url}>/search.php”>
<input type=”text” value=”Keyword Search …” onfocus=”if(this.value==this.defaultValue)this.value=”;” onblur=”if(this.value==”)this.value=this.defaultValue;” />
<input type=”hidden” name=”action” value=”results” />
</form>
</div>
</div>[/CODE]

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @codefantom 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.28,
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,
)...