Forum Moderators: open

Message Too Old, No Replies

HTML to PHP changes layout

html xhtml

         

ianternet

3:20 am on Nov 1, 2006 (gmt 0)

10+ Year Member



I have just downloaded a webtemplate from <edited> - great site for xhtml templates html templates - but when converted to .php the format is disoriented - I use a lot of PHP scripting - i have looked at the css style and it seemed fine - not sure y it would change because the extension is change to .php - need help here as lots of my content are php based - please assits

thanks

[edited by: tedster at 3:42 am (utc) on Nov. 1, 2006]

eelixduppy

3:43 am on Nov 1, 2006 (gmt 0)



There should be no difference. I have a feeling that there is something that you added to the php file that affected it in some way. I'm sure if you take the working file and save it with a .php extension without changing anything that it will work just the same. If this isn't the case, then there is something definitely fishy about this.

Good luck!

tedster

3:55 am on Nov 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One thing I can think of is that perhaps you some how changed, added, or removed the DTD at the top of the file by running it through some application you opened the file with.

Also, it's a good idea to validate the templates at the W3C

W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]

ianternet

3:23 pm on Nov 1, 2006 (gmt 0)

10+ Year Member



the DTD was left in tact

the only thing I added is a php command right before all the html syntax - it is what I can think of - I will test it with the original file and see what happens. expect some updates