Jump to content

[SOLVED] changing inside main.php


ilikephp

Recommended Posts

hello,

I am creating my website and I am using footer.php and menu.php ...

 

inside the main, I need to mofify each time and all my web contains a background.

I divided my web into small pictures and everything is going fine.

 

the main point is:

If I need to change the background picture for the whole website:

I access the footer.php, menu.php and I change

but how can I change inside the main.php because this page is the main and many pages are related to it?

 

thks

Link to comment
https://forums.phpfreaks.com/topic/87241-solved-changing-inside-mainphp/
Share on other sites

i am using footer.php in order to change the background anytime without opening all pages.

in the middle of my website that is my main.php , I need to type everything and change it each time and it contains a background.

the question is: if I need to change this background should I open all pages?

sounds to me like it's time you meet our little friend called CSS.

 

link to 1 or 10 css files and you can make changes to backgrounds and LOTTTSSSS of other things across the whole site.

 

http://www.google.com/search?q=css+tutorial

 

 

:)

 

Nate

 

 

 

Css can control every visual aspect of the webpage.

 

Check out http://www.csszengarden.com/

 

On the right side there is a set of links to change the css style of the page. Take note of how the sites all look completely different but are indeed the same site. This is done with CSS.

 

Learn CSS because it is the Key to visual web design.

 

For another example, if you use firefox.. .browse to your favorite website, then click on View->Page Style->No Style and watch how the site looks extremely different. Click basic page style to return to normal view.

 

Nate

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.