PDA

View Full Version : hmm. why doesn't it work?



Zokoli
21-07-2009, 04:46 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zokoli ~ Ah yes!</title>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana;
font-size: 11px;
font-weight:bold;
color: #000;
}
body {
background-image: url();
background-repeat: no-repeat;
background-color: #FFF;
}
#header-wrap {
width: 100%;
height: 100px;
background-color: #3F4C6B;
}
#header-wrapper {
width: 50%;
display: block;
margin: 0 auto;
}
#header {

background-image:url(../zokoli.png);
background-repeat: no-repeat;
width:220;
height:60;
}

-->
</style></head>

<body>
<div id="header-wrap">
<div id="header-wrapper">
<div id="header">

</body>
</html>


It's probably a easy fix, and I'm just not seeing it right.
Obviously I want to display the logo [zokoli.png], but for some reason it isn't showing.
The reason I have coded it into a Style Sheet is because it will be much more cleaner after I have converted it into a proper .css file and link it with the site.

wsg14
21-07-2009, 04:51 PM
you have to include a valid path...
background-image:url(../zokoli.png);
that's not a valid path, i'm sure you don't have a folder called ".."

bruno
21-07-2009, 04:56 PM
save your work into the same folder as your logo and then simply put logo.png (or other filename) this was a genuine post, what's the point in -repping me? ****** dont know how to upload a logo.

Fehm
21-07-2009, 05:23 PM
you have to include a valid path...
background-image:url(../zokoli.png);
that's not a valid path, i'm sure you don't have a folder called ".."

.. usually [I think] means you go back a directory..
e.g. if you had an index page in a folder called pages, and your images was in the public_html then you'd put ../ (Might be 3 dots) to go back a directory

It could be that you just need to remove the ../ :)

Zokoli
21-07-2009, 06:47 PM
I have tried that.

I have tried (zokoli.png); but it doesn't work...

Jahova
21-07-2009, 06:54 PM
.PNG < Caps.

Or you have made a mistake as that is looking for zokoli.png in the upper directory, not the same one as index.php. Also, that code looks similar ;)

Zokoli
21-07-2009, 06:55 PM
Shh Tom! :(

also, i'm giving you credits :)
and thanks&+rep if it works.

RastaLulz
21-07-2009, 06:57 PM
You have to close the the div tags, you silly goose.

Zokoli
21-07-2009, 07:08 PM
You have to close the the div tags, you silly goose.

Still doesn't work, you silly goose.

RastaLulz
21-07-2009, 07:21 PM
Zip/Rar it, and upload it here (http://foskett.ws/u), and post it. I'll take a look at it, if you have not yet got it already.

Zokoli
21-07-2009, 07:29 PM
It was literally a blind error that nobody pointed out, I forgot to add 'px' on the end of width&height.

Problem Solved!

iDenning
21-07-2009, 08:04 PM
you forgot to add 'px' at the end of width/height, that should solve it!



Edited by Catzsy [Forum Super Moderator]: Please do not make pointless posts.

RastaLulz
21-07-2009, 08:15 PM
you forgot to add 'px' at the end of width/height, that should solve it!
Congrats' on posting the same exact thing as the person above you. ;)

Excellent2
21-07-2009, 08:19 PM
Congrats' on posting the same exact thing as the person above you. ;)Also, 35 minutes later.

iDenning
21-07-2009, 08:43 PM
gosh wheres your sense of humour

Zokoli
22-07-2009, 06:04 AM
I don't find it very funny... :rolleyes:

Want to hide these adverts? Register an account for free!