Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 problem: css not the same in HTML file as in ASP
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 24 October 2003 :  14:59:55  Show Profile
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

Posted - 24 October 2003 :  15:01:22  Show Profile  Visit D3mon's Homepage
defies all logic!


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 24 October 2003 :  15:07:03  Show Profile  Visit CarKnee's Homepage
Which browser is it doing it on?

Maybe it is the doc type definition?

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 24 October 2003 :  15:51:37  Show Profile
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.
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 24 October 2003 :  16:06:46  Show Profile
The two pages look the same on my IE6 on XP

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 24 October 2003 :  16:07:38  Show Profile  Visit CarKnee's Homepage
IE Bug I guess...
Mozilla Firebird .6 shows it the way it looks as the asp page.

Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 24 October 2003 :  16:08:44  Show Profile  Visit CarKnee's Homepage
BTW...
IE6 Win2K shows them differently as you stated.

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 24 October 2003 :  16:22:38  Show Profile
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 October 2003 :  17:10:52  Show Profile  Send ruirib a Yahoo! Message
I'm on XP Pro and they both display the same for me.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 24 October 2003 17:11:12
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 24 October 2003 :  17:29:07  Show Profile
I'm on XP Pro and i see the small difference... almost didn't notice it at first.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 October 2003 :  18:17:20  Show Profile  Send ruirib a Yahoo! Message
Yeah, I guess there is small difference in positioning. Didn't notice until you referred to it, Nikkol.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 24 October 2003 :  19:03:43  Show Profile  Visit D3mon's Homepage
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 24 October 2003 :  19:21:03  Show Profile
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 ~
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 24 October 2003 :  19:35:10  Show Profile
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 24 October 2003 :  19:59:03  Show Profile
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 ~
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 24 October 2003 :  23:29:03  Show Profile
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
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07