Results 1 to 5 of 5

Thread: [RESOLVED] css: background

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    right here
    Posts
    87

    [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

  2. #2
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: css: background

    I'd say make sure the image path and the name of the image ... seems the code is right!

  3. #3
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    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)
    Don't Rate my posts.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Location
    right here
    Posts
    87

    [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

  5. #5
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: [RESOLVED] css: background

    Try using ../ or ./ instead... I never like absolute url's.

    eg.
    ../images/papier.jpg
    Don't Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width