CSS dissappears after using PHP code. -
Jernu - 30.12.2012
Basically guys, I need help.
I want to use .php so I removed this code from my index.php:
PHP код:
<html>
<head>
<link href="css/main.css" rel="stylesheet" type="text/css">
<title>Name</title>
</head>
<body>
<div class="headerMenu">
<div id="wrapper">
<div class="logo">
<img src="img/test.png">
</div>
<div class="search_box">
<form method="GET" action="search.php" id="search">
<input name="q" type="text" size="60" placeholder="Search ..." />
</form>
</div>
<div id="menu">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Sign Up</a>
<a href="#">Login</a>
</div>
</div>
</div>
<br />
<br />
<br />
<br />
and paste it another file and save it to "inc/incfiles/header.inc.php"
I then add at the top to the index.php:
<? include("inc/incfiles/header.inc.php") ?>
And all CSS is removed..
Help?!
Re: CSS dissappears after using PHP code. -
Forever Alone - 30.12.2012
change <link href="css/main.css" rel="stylesheet" type="text/css">
to <link href="../../css/main.css" rel="stylesheet" type="text/css">
Re: CSS dissappears after using PHP code. -
Jernu - 30.12.2012
And I add that where?
Re: CSS dissappears after using PHP code. -
Forever Alone - 30.12.2012
In your code. IT IS IN THE THIRD LINE ON THE CODE YOU PROVIDED US
You'll have to do the same thing to that image
Re: CSS dissappears after using PHP code. -
Jernu - 30.12.2012
Basically this is what I get.
Re: CSS dissappears after using PHP code. -
Forever Alone - 30.12.2012
Quote:
Originally Posted by Jernu
Basically this is what I get.
|
Looks like you didin't change it from *html to *.php
Re: CSS dissappears after using PHP code. -
Jernu - 30.12.2012
I did.
Re: CSS dissappears after using PHP code. -
[HiC]TheKiller - 30.12.2012
Post the whole findFriends/index.php page if it's not an extension issue.
Re: CSS dissappears after using PHP code. -
BlackBank - 30.12.2012
Quote:
Originally Posted by Jernu
I did.
|
What do you use in your PHP file, <? ?> or <?php ?> ?
Re: CSS dissappears after using PHP code. -
GWMPT - 30.12.2012
-.-
is this so hard?
PHP код:
<? include("inc/incfiles/header.inc.php") ?>
That's what you have.
PHP код:
<? include("inc/incfiles/header.inc.php"); ?>
That's what you need, a freaking ";".
This isn't lua mate.