I built my own template system with php. A short example just to explain my problem:
<!DOCTYPE HTML>
<html lang="de">
<head>
<link rel="stylesheet" type="text/css" href="../css/main.css" />
</head>
<body>
<?php include('body.html'); ?>
</body>
</html>
Now, when I open with Netbeans the body.html file
<div class="content">
Hello
</div>
Netbeans say: Class content not found
Is it possible to assign the css file to the html file, so that Netbeans find the class?
best to shoot it for the help of PHP but in the opposite way:
pgup.php
<!DOCTYPE HTML>
<html lang="de">
<head>
<link rel="stylesheet" type="text/css" href="../css/main.css" />
</head>
<body>
index.php
<?php include('pgup.php'); ?>
<div id="content" class="content">
Hello
</div>
<?php include('pgdown.php'); ?>
pgdown.php
</body>
</html>
main.css
/*(for id)*/
#content{
}
/*(or for class)*/
.content{
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With