Simple page update by CSS or PHP?

I’m not sure about this, but is it possible to place a data field in an HTML document that refers to a section in a CSS form so that I only have to update the CSS form and the data will appear in place of the data field in every web page where that class or ID appears?

Something like ‘class=“button1”’ or ID=“button1” and in that section it pulls in the data from the CSS form.

I’m having to update the header with drop down menus that appears on every web page on a site and there are a lot of pages all with the same detail. This is obviously very tedious and time-consuming and I’m sure there must be another way. I’ve started to play with PHP and that seems more like the route I need to go down.

Any thoughts at all?

do I understood you correct, you just want to generalise the navigation menu in your header on all pages?
so you could try something like this:

create your nav.html:


and include your nav in your page.php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include('nav.html');?>

So you’re using the php to call the nav.html and I could just place the php in a div that I can place anywhere in the destination web page. Thanks Max! I’ll go and have a play with it. :thumbsup:

I haven’t played with it yet, but I did find this on the web:
Is that the sort of thing you were referring to Max?

exact droid :slight_smile: (w3school is a cool place to figure out some special and basic things)

and I use, for example in my page (index.php)

<!-- Header -->
<div id="header">
	<?php include "head.php";?> 

you can do a lot of dirty stuff with php, have fun :smiley:


Many thanks Max!! :cheers: