|
-
Jan 2nd, 2006, 07:00 PM
#1
Thread Starter
Lively Member
[RESOLVED] css: background
Could somebody help me with the following:
in css file:
Code:
.kader
{
position : absolute;
top : 75px;
left : 330px;
border-style: none groove groove;
background-image:url('images/papier.jpg');
background-position: 70px 10px;
background-color: #FFFF80;
border-right-width: 4px;
height: 530px;
width: 620px;
z-index : 0;
}
and in .php page:
Code:
<!DOCTYPE HTML PUBLIC "-//WC3//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<META NAME="KEYWORDS" CONTENT="">
<META NAME="DESCRIPTION" CONTENT="">
<META NAME="generator" CONTENT="Notepad by Brian Baart">
<link rel="stylesheet" href="css/mainstyle.css" title="Default" type="text/css" media="screen" />
<TITLE> Zuidwest </TITLE>
<?php
@include ("includes/javawindow.php");
?>
</HEAD>
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 LINK="#004080" VLINK="#004080" BACKGROUND="images/xystainless.jpg">
<SCRIPT SRC="boxover.js"></SCRIPT>
<DIV class="kader">Some text</DIV>
</BODY>
</HTML>
The background color can be set but not the background image in the "Kader".
Not in IE nor Firefox
Last edited by brianbaart; Jan 3rd, 2006 at 04:27 AM.
If Not Now Then When
If Not Here Then Where
-
Jan 2nd, 2006, 08:58 PM
#2
Frenzied Member
Re: css: background
I'd say make sure the image path and the name of the image ... seems the code is right!
-
Jan 2nd, 2006, 11:29 PM
#3
PowerPoster
Re: css: background
background-image:url('images/papier.jpg');
That will mean that its looking for images in the /css folder I think... to be sure, try chucking a ./ or ../ in front and see if that helps (one day I'll bother to figure out how that works)
-
Jan 3rd, 2006, 04:26 AM
#4
Thread Starter
Lively Member
[RESOLVED] css: background
Thanks Pc_Madness,
Your reply did it,
I have chanched the adres in:
background:#C0C0C0 url('http://bigmother/zuidwest_new/images/papier.jpg');
I had tried with:
C:\wamp\www\zuidwest_new\images\papier.jpg
But it didn't work but now it does.
Thank you both for the reply.
If Not Now Then When
If Not Here Then Where
-
Jan 3rd, 2006, 04:59 AM
#5
PowerPoster
Re: [RESOLVED] css: background
Try using ../ or ./ instead... I never like absolute url's.
eg.
../images/papier.jpg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|