This is a discussion on "Xhtml Layout" within the Starting Out section. This forum, and the thread "Xhtml Layout are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Xhtml Layout
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
This may seem like a silly post, but I have something to ask about basic layout principles.
If I had a xhtml + css based website with alot of pages, but wanted to change the layout (i.e. the colours and graphics etc) is there a quick way to move over all the content of the pages without having to copy and paste the content into each pages html? I hope that makes sense :/ Thanks! |
|
|
|
||||
|
Re: Xhtml Layout
Yes ... you need to use includes
see the article - Using includes to add common elements to your sites. Last edited by karinne; Sep 21st, 2007 at 18:12. |
|
|||
|
Re: Xhtml Layout
Thanks for your reply.
I see. So will I be needing to convert my site from html to php then? |
|
|||
|
Re: Xhtml Layout
Ok, thankyou.
Don't suppose you can throw me towards a post about how to convert to PHP could you? |
|
||||
|
Re: Xhtml Layout
There is a short post here.. Basiclly put your div in a file then link to it. This may help: http://www.webtutorialz.com/28/.
|
|
||||
|
Re: Xhtml Layout
I'm pretty sure I explain in the article.
it's just changing your extension really
|
|
|||
|
Re: Xhtml Layout
Thanks Marc, i'll go take a look now.
|
|
||||
|
Re: Xhtml Layout
Quote:
The article I wrote is simpler I think Seriously tho ... don't know how simpler this can be Using PHP to include files Syntax
Here's your index.php file (note that all your files using the php include() function must have the .php extension) ...
Last edited by karinne; Sep 21st, 2007 at 18:23. |
|
|||
|
Re: Xhtml Layout
Thanks, thats all great, just I don't have a index.php, i have an index.html...
I get the idea of what an include is and it definatly is just what I need, what i'm struggling with now is just how to get started. At the moment all I have is a load of .html pages. I have never even attempted to use php, so don't have a clue where to start! |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fluid layout - IE6 clichés the layout when resizing | cyberseed | Web Page Design | 7 | Jun 16th, 2007 05:14 |
| xhtml 1.0 | ivyholly | Web Page Design | 2 | Sep 28th, 2005 14:36 |
| What makes a layout a good layout? | Miles Lombardi | Graphics and 3D | 4 | Jul 26th, 2005 03:22 |