Author |
Topic |
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 24 October 2003 : 14:59:55
|
I've made a template page for a site I'm working on. It's a simple HTML file with a linked stylesheet. Because I was planning on making it an ASP site using includes, I simply changed the file extention to .ASP and all of a sudden the menu displayed much wider than in the exact same file with .HTML extention. I think the problem lies in display: block; and the accompanying height and width settings for links which are in seperate cells of a table. But as I said, I only think that that's where the problem lies as I haven't troubleshooted it because the site will have to be plain HTML files in the end anyway
Any ideas on why an HTML-file with CSS would work exactly as planned while the same file won't work correctly as soon as the extention has been changed to .ASP? |
|
D3mon
Senior Member
United Kingdom
1685 Posts |
|
CarKnee
Junior Member
USA
297 Posts |
Posted - 24 October 2003 : 15:07:03
|
Which browser is it doing it on?
Maybe it is the doc type definition? |
|
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 24 October 2003 : 15:51:37
|
Both are on the same browser (IE 6), DTD doesn't have anything to do with it because I tried with and without it and it doesn't make a difference.
HTML file: http://www.frutzle.com/mac/ ASP file: http://www.frutzle.com/mac/template.asp
Except for the removed DTD line in the ASP file, they're exactly the same but display differently. |
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 24 October 2003 : 16:06:46
|
The two pages look the same on my IE6 on XP
|
====== Doug G ====== Computer history and help at www.dougscode.com |
|
|
CarKnee
Junior Member
USA
297 Posts |
Posted - 24 October 2003 : 16:07:38
|
IE Bug I guess... Mozilla Firebird .6 shows it the way it looks as the asp page. |
|
|
|
CarKnee
Junior Member
USA
297 Posts |
Posted - 24 October 2003 : 16:08:44
|
BTW... IE6 Win2K shows them differently as you stated. |
|
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 24 October 2003 : 16:22:38
|
I'm using IE 6 on XP Pro and I get different displays... I don't know what's causing the problem, but as I said, I'll have to use HTML files, so I'm not going to bother going on a bug hunt. I'll save that for if this ever happens again |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
D3mon
Senior Member
United Kingdom
1685 Posts |
Posted - 24 October 2003 : 19:03:43
|
It appears to be the table containing
Current visitors: Total Visitors:
Set to 100% width that's throwing it out... maybe.. Raises an interesting question about whether the HTML in .asp files is parsed by the standard DLL or a 'standard HTML' section of the ASP DLL, and whether the two sets of code in those DLL's don't quite agree... |
Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
Edited by - D3mon on 24 October 2003 19:17:10 |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 24 October 2003 : 19:21:03
|
there is one difference that I see between the two files: <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
that's at the top of the htm file. I saved the source of the asp file on my machine and when I inserted that line, the tables lined up correctly. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 24 October 2003 : 19:35:10
|
quote: Originally posted by Nikkol
there is one difference that I see between the two files: <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
that's at the top of the htm file. I saved the source of the asp file on my machine and when I inserted that line, the tables lined up correctly.
That line should not be in a HTML file, it's an asp directive that should never get off the server.
|
====== Doug G ====== Computer history and help at www.dougscode.com |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 24 October 2003 : 19:59:03
|
well, it was in his htm file and it was the cause of the difference. so, i would say that the css needs some tweaking to get the tables to line up. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 24 October 2003 : 23:29:03
|
quote: Originally posted by Nikkol
well, it was in his htm file and it was the cause of the difference. so, i would say that the css needs some tweaking to get the tables to line up.
Yep, I looked in the source after you found that line. My guess is the difference in lining up isn't css related, but instead a glitch in the browser. When the browser sees the < it thinks it's a html tag and doesn't display the text in the tag. However, in this case the tag is invalid HTML, the browser discards the invalid tag and/or does some kind of error trapping response that throws the alignment off a bit.
When the same page is processed by an asp page, this tag doesn't get to the browser, the asp page grabs it and does whatever, so there is no invalid html tag.
|
====== Doug G ====== Computer history and help at www.dougscode.com |
|
|
Topic |
|