 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Dec 20, 2004 11:28 am Post subject: Script Showcase Bug: <pre> is not understood |
|
|
I have been using IE when viewing the script showcase, but now I installed NS7.2 & Firefox & I noticed the previously <pre>'d text is not <pre>'d...I found out that you didn't close any of your <font> tags...so the standards compliant (too standards compliant if you ask me...can't they make it just do the right thing instead of being "standards compliant"? Don't even get me started on the <br/> instead of <br> thing...<br> is so much better, but now to be "standards compliant" you're supposed to close tags that don't have a close tag? sheesh! no!) NS7.2 & Firefox get confused...
Find...
Replace With...
| Code: | | </PRE></font></font></font> |
...in all of the script showcase. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Mon Dec 20, 2004 12:25 pm Post subject: |
|
|
Ey that's usefull information. You don't have to act like a shy guy/guest
Why not using a nick  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Mon Dec 20, 2004 8:52 pm Post subject: |
|
|
Yeah, at least BoBo goes halfway.  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Dec 21, 2004 3:20 am Post subject: |
|
|
| Quote: | Replace With...
</PRE></font></font></font> | Thanks for the info. You've verified that the above is enough to fix it? |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Dec 21, 2004 3:38 pm Post subject: |
|
|
| Chris wrote: | | You've verified that the above is enough to fix it? |
...yes, I saved the page on my hd when trying to figure it out & used the w3c validator to get a clue as to what was wrong (I looked at the source & it looked fine...couldn't figure it out). There are more errors the validator mentions, but it's nit picky, closing the font tags is enough to work.
But since then, I've found more...on...
...(possibly on other pages too...I just noticed it here)...text is fine in IE, but extremely small in NS7.2 & Firefox. Ok, hrm, it's TRYING to be that small...the css has "font-size:x-small;" for many tags. For some reason IE isn't listening. But x-small is too small anyway...could you use whatever css normal is or use 12px? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Dec 21, 2004 11:30 pm Post subject: |
|
|
| Anonymous wrote: | | closing the font tags is enough to work. | I put the tags in where you suggested, so hopefully its fixed now (it looks okay in my version of Firefox and in MSIE). Link: script showcase
| Quote: | | text is fine in IE, but extremely small in NS7.2 & Firefox. Ok, hrm, it's TRYING to be that small...the css has "font-size:x-small;" for many tags. For some reason IE isn't listening. | Yes, I've noticed that. It think it's a known issue for MSIE that it uses blatantly different font sizes than the standard requires. Since the help file and the web site use the same HTML source files, I'm not sure how to fix it without making it look wrong in one.
Also, since the paragraphs in the help file tend to be short, I like the small padding distance between paragraphs. But I've not found a way in all browsers to have a small amount of vertical space between paragraphs while having a large font.
I appreciate your taking the time to report these. Please let me know if you spot any others. |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Dec 23, 2004 1:00 pm Post subject: |
|
|
| Chris wrote: | | Anonymous wrote: | | closing the font tags is enough to work. | I put the tags in where you suggested, so hopefully its fixed now (it looks okay in my version of Firefox and in MSIE). Link: script showcase |
...hrm, now this is weird, at 1st it looked like it didn't work, but I know about the cache, so I hit reload alot to try to get new version & it wasn't working, then I finally got it to look ok by going back (off it) & forward (on it), when you reload or shift-reload in a certain way it messes up again...it didn't do this on my comp...only for a remote file. So currently when I bring up a page, it looks fine, but when I shift-reload it goes to the non-<pre> look. It's workable like it is, but it's still weird & I can't think of why, mr standards compliant browsers, can't figure out a page that only has a little html. The only other (untested) thing to try, would be closing the font tags as soon as they're not needed, the 1st one is used up to the 2nd one, the 2nd up to the 3rd...the other thing might be...either removing the "<!DOCTYPE" specification from the page or finding a doctype the actually conforms to the html you use. I think you might be holding your page to a standard it's not following...if you specify no standard it might help the browser not care. ***wait*** I might've just figured it out (untested, tho), the 1st font tag, specifying the face, might be bleeding into the <pre>, close it before the <pre> & only apply the <font size> to the <pre>. Before you fixed it, did you see what it's doing when it's not <pre>ing? I really think this is it, I just noticed that when it's messed up it IS preserving the spacing (indent), so it's using the <pre> rules for preserving the formatting, but using some "feature" allowing any font to be used for a <pre> tag.
Ok, my new recipe for a fix (untested, would have to upload to a server), move 2 of the </font>'s from the last edit (leaving one to close the <font size> for the <pre>) to just before the <pre>...so...
Find...
| Code: | | </font></font></font> |
Replace With...
Find...
| Code: | <hr>
<FONT SIZE=3><PRE> |
Before Add...
| Chris wrote: | | Since the help file and the web site use the same HTML source files, I'm not sure how to fix it without making it look wrong in one. |
...can you link to the current style sheet, but then...
| Code: | <script>
if (!navigator.appVersion.match('MSIE')){
document.write('<link href="css/default-ns.css" rel="stylesheet" type="text/css">')
}
</script> |
| Chris wrote: | | But I've not found a way in all browsers to have a small amount of vertical space between paragraphs while having a large font. |
...I don't know what you mean by..."small amount of vertical space between paragraphs while having a large font"...are you saying, what I'm seeing now, with the small font, has this small amount of vertical space? Can't you apply CSS to the <p> tag (or whatever tag you use) to specify the vert size? line-height? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Dec 23, 2004 5:53 pm Post subject: |
|
|
I'm quite a novice at HTML and CSS, so thanks for all the great info. I'm going to try it out and see if it can be made to load more consistently on all browsers.
| Quote: | | Can't you apply CSS to the <p> tag (or whatever tag you use) to specify the vert size? line-height? | I'll give that try too.
Thanks for sharing your HMTL, CSS, and javascript(?) knowledge. Mine is pathetic. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Wed Dec 29, 2004 6:03 pm Post subject: |
|
|
I got rid of a lot of <FONT> tags and other questionable practices throughout the site. Thanks for motivating me to improve the HTML and CSS to be more browser-neutral.
Hopefully the script showcase and other pages display correctly in all browsers now. They seem to be okay in MSIE 6.x and FireFox 1.0 at least. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|