Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

55 users online



Problem with Background and PHP

Problem with Background and PHP

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
Neo

Neo

Neverside Newbie
Status: Offline!

Problem with Background and PHP

Alright, my problem is this:

Whenever I try to change the extension of my main index file to .php from .html, the background color dissapears. I wanted to change it to .php to perform the @include () function.

The site is http://bigkoch.alphazap.net.

You'll notice the background color is that orange, but when I change the extension to .php it changes to all white.

The site is done completely done in CSS, and the stylesheet is fine. The url to the stylesheet it: http://bigkoch.alphazap.net/styles/main.css

Anybody have any idea why it is doing this, and more importantly, how to fix that?

Thanks a lot.

___________________

-Zach

angelessme

angelessme

Neversidian
Status: Offline!

More information needed.. what does your .php file look like? show the difference between .php and .html ..

___________________

angelessme, antagonising neverside members, staff and administration since 2001.

Neo

Neo

Neverside Newbie
Status: Offline!

There is no different between the two. The minute I go into FTP and rename the file from index.html to index.php the background goes away.

___________________

-Zach

angelessme

angelessme

Neversidian
Status: Offline!

What the fook...

It's probably something to do with xhtml compliance or something kooky like that.. totally beyond my meagre understanding.. sorry Sad

___________________

angelessme, antagonising neverside members, staff and administration since 2001.

SSLight

SSLight

Status: Offline!

That shouldnt be happening...

dafrabbit

dafrabbit

Neverside Newbie
Status: Offline!

You realize that you can include HTML files too? And yes, it shouldn't be happening. And it has nothing to do with XHTML compliance. Grin

gromy

gromy

Status: Offline!
PHP:

<?php
<style type="text/css">
body {
    
background:#FFF;
?>

Makes the background white Wink

Neo

Neo

Neverside Newbie
Status: Offline!

Lol, yes it does. That's why I have:

body {
background-color:#FBD965;
margin:0px;
padding: 0px;
color:#333;
text-align:center;
font-family:times new roman,times,serif;
font-size:13px;
}

Wink

___________________

-Zach

gromy

gromy

Status: Offline!

Well remove background:#FFF; from the php page and the background will not be white anymore, or change it to #FBD965

Neo

Neo

Neverside Newbie
Status: Offline!

Where are you seeing that at?

___________________

-Zach

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0182 seconds.