ilikephp Posted January 22, 2008 Share Posted January 22, 2008 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 Quote Link to comment Share on other sites More sharing options...
PHP Monkeh Posted January 22, 2008 Share Posted January 22, 2008 I think it would be a lot better if you tried rephrasing your question, as I can't for the life of me understand what you're trying to do. All I got out of it was modifying main.php to change a background? :S Quote Link to comment Share on other sites More sharing options...
ilikephp Posted January 22, 2008 Author Share Posted January 22, 2008 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? Quote Link to comment Share on other sites More sharing options...
chronister Posted January 22, 2008 Share Posted January 22, 2008 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 Quote Link to comment Share on other sites More sharing options...
ilikephp Posted January 22, 2008 Author Share Posted January 22, 2008 are images and backgrounds included in the .css styles or only fonts size and font name? Quote Link to comment Share on other sites More sharing options...
chronister Posted January 23, 2008 Share Posted January 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
ilikephp Posted January 23, 2008 Author Share Posted January 23, 2008 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.