[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
[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.
Re: [RESOLVED] css: background
Try using ../ or ./ instead... I never like absolute url's.
eg.
../images/papier.jpg