-1
<!doctype html>
<html>
<head>

<link rel="stylesheet" type="text/css" href="style.css">
<title>HEX</title> 
</head>

<header>
<img src="header.png" alt="head"/>
</header>
<body>

</body>
</html>

This first Section is the html I am using, any improvements will help me a lot! I need to get this image in the center of my page and maybe store the header as a separate file so I can use it on every page of the site! I currently don't have anything in my css file as things I have tried are not working!!

Uruk
  • 23
  • 4

2 Answers2

0

<link rel="import" href="your_imported_HTML.html">

this will also import any scripts,css that are in the imported html file
Billy
  • 2,448
  • 1
  • 10
  • 13
0

Place your image in a div and use margin auto, allowing for any text or other content using css.

You can save the header as a separate php file (e.g., header.php), then include the file in any other pages using include('header.php'). in the html body part.

Example:

<body>   
include ('header.php')

Use this in each page for the same effect.

Benjamin W.
  • 46,058
  • 19
  • 106
  • 116