Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Doctype screwing up page?
Old 10-28-2007, 12:20 PM Doctype screwing up page?
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Hi all.

I'm currently working on some project I thought of, it involves lots of Javascript and of course CSS, but I've encountered a very strange problem.

I wanted to get my work XHTML 1.0 valid and so I added the usual stuff.
It all got validated (Link) but it got all screwed up (Link).

Now here's how it should be (Link) and the validation of that page (Link).

The only thing different between those two pages is the missing of a doctype in the second, correct page.

Regards,
Insensus
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-28-2007, 12:38 PM Re: Doctype screwing up page?
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
You are using the wrong file extension for css. Rename style.php to style.css. The webserver is seeing .php as php files.
joder is offline
Reply With Quote
View Public Profile
 
Old 10-28-2007, 12:42 PM Re: Doctype screwing up page?
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
That's exactly what it should do.
My style.php contains some PHP code to read the styles from config files.
The problems isn't in extensions or something, I'm sure of that.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 10-28-2007, 12:48 PM Re: Doctype screwing up page?
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Well I took the css code and named it style.css and it worked. So maybe it's in your php code and how the browser see's it because of the DOCTYPE.

Last edited by joder; 10-28-2007 at 12:50 PM..
joder is offline
Reply With Quote
View Public Profile
 
Old 10-28-2007, 12:50 PM Re: Doctype screwing up page?
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
I've changed it now too.
Still nothing.

I already expected it wouldn't make any difference because I put the style and script in separate files only, because it was screwing up when using doctype.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 10-28-2007, 04:08 PM Re: Doctype screwing up page?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
On the validated page, this is what comes up as styles.css
Quote:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /ded/style.css was not found on this server.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
<HR>
<ADDRESS>Apache/1.3.37 Server at praediniuslustrum.nl Port 80</ADDRESS>
</BODY></HTML>
Clearly, the proper CSS file is NOT coming in, so I'd have to say it's a problem with your scripting.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-28-2007, 04:10 PM Re: Doctype screwing up page?
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Oh oops.
I forgot to change it back. :$

Will do.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Doctype screwing up page?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.21228 seconds with 12 queries