Log in

View Full Version : css on php page?



cymru78
04-29-2007, 10:40 PM
Is there a way of using css on a .php page?

Reason being because my menu could be changing regularly (and my logo will be changing too) and it would obviously be easier to change it just the once when required rather than changing the css and then the php page which will be the home page.

For a preview of what i mean, the (new) home page is viewable at http://www.rhylfc.co.uk/new_site_test/index2.php
It is a php page because of the permanent poll which will be on that page.

The other pages on the site will be css with file extension of .shtml
See http://www.rhylfc.co.uk/new_site_test/table_test.shtml

thanks in advance

boxxertrumps
04-30-2007, 12:26 AM
Your already using CSS on those pages...

Also, you have an html doc inside an html doc on your main page, i suggest you validate everything.
Also, instead of tables for layout, use css. tables are for tabular data.

cymru78
04-30-2007, 12:55 AM
Thanks for the assistance.

I am still rather new to webdesign, and learning as i go along in spare time that i rarely have.

Because of this, it is currently easier for me to use tables as i really have not got a clue about how to use css.

My main aim at the moment is just to get my menu to work as it should on the home page which is .php while all other pages will be .shtml so they will be sorted out.

As an example, if i am not clear, take another look at my two pages.
What will be the league table page, the menu has been done so it changes automatically.
But i can't get the menu on the home page to do the same thing - why? and how can i get it to?

Edit* I have now just noticed that my menu has vanished off my homepage, but it is still there on dreamweaver. That has really confused me now.
Edit(again) I have sorted it and the menu is back again.

boxxertrumps
04-30-2007, 01:54 AM
for a css tutorial: http://www.w3schools.com/css
there are also some tutorials on html, JS, php etc.. on the main site.

your site would also do well going through the validators below.