Hello everyone, i want to make a status bar which will have there Login and Status of the user but i want that to be in one class and when im working in other classes just to copy the name of the "statusbar" in the other classes. I dont know what it need to be named that class for example "status.php, status.css, status.html etc..." and also i dont know how do i make it to just copy the class name into other classes. i have this code but its not working:
statusbar.php
<html>
<body>
<?php
function statusbar(){
?>
.navbar {
position: fixed;
height: 20%;
width: 100%;
top: 0px;
left:0px;
background-color: #48a770;
}
<?php
}
?>
</body>
</html>
and
index.html
<?php
require 'statusbar.php';
statusbar();
?>
I know that is bad explained but i dont know how to explain better i hope you will understand it :)
- Thanks and merry Christmas :D