| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | Hey! Basically I have a valid XHTML 1.1 page with valid CSS (www.rbashots.hostmatrix.org) I want to cut my page up into a few parts and use a php include so that if I want to change/edit my links or on one page have a different logo then I only have to change my file. How do I determine how big each php include will be? I've got a link to a picture of my site I've drawn on to show more clearly what I mean (Just follow the black lines) http://www.rbashots.hostmatrix.org/andreas.PNG If I was to do this does it mean my page becomes unvalidated, or is there a way to do this and keep the validation? |
| |
| | #3 (permalink) |
| NamePros Member | OK That's good it won't effect the validity of it. What I'm trying to say is that if I made 50 pages with the code I have now on my index.html then I added all my information in each of the 50 pages and I wanted to add another link to the menu I would then have to go through 50 pages and add it manually. WELL I don't want to. I want to cut the menu bar out, and use a php include to add it in so that if I wanted to add another link I could add it to 'that' file (where the php include links to) and it would update on every page. How do I customize how the include goes? What code to keep my page the same do I use so it doesn't get all mucked up. Do I just take the bits of code I want in the include and place it in the .php file and then it will work JUST LIKE THAT? Thanks |
| |
| | #5 (permalink) |
| NamePros Member | AHa!! It actually worked flaw-lessly for me! I do need one bit of help though. My title/logo area is made up of CSS and I want to cut that up also so that I can have the "Page Title" and "Second Title" on the left (how it is now) and then if I want to add a logo or a google ad or something in to the RIGHT HANDSIDE (Where all the space is) at a later time using the php include how do I edit the CSS so that I can do this?? CSS: www.rbashots.hostmatrix.org/stylesheet.css PAGE: www.rbashots.hostmatrix.org/index.php |
| |
| | #6 (permalink) |
| Senior Member | well this part: HTML Code: <h2>Favorite Links</h2> <ul class="menublock"> <li><a href="http://www.redbluearmy.com">Red Blue Army </a></li> <li><a href="http://www.shotsweb.co.uk">Shots Web </a></li> <li><a href="http://www.theshots.co.uk">The Shots.co.uk</a> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1" height="31" width="88" /></a> <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a> </li> </ul> <div class="small box"> </div> </div>
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #7 (permalink) | |
| NamePros Member | Quote:
I just need help on doing the top area with my CSS and doing the right hand side bit of it... | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |