Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans - Include CSS for all files

Tags:

html

css

netbeans

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?

like image 557
Laire Avatar asked Oct 20 '22 05:10

Laire


1 Answers

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{

}
like image 159
ubgsdnhfj Avatar answered Oct 23 '22 03:10

ubgsdnhfj