Valhalla Legends Archive

Programming => Web Development => Topic started by: Adron on June 12, 2003, 02:40 PM

Title: HTML/CSS Experts - what's wrong with this page?
Post by: Adron on June 12, 2003, 02:40 PM
I see a rather big box with no obvious content...

http://scummvm.sourceforge.net/docs/specs/char.php
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: po0f on June 12, 2003, 03:50 PM
What browser are you using? I got the same thing in IE6.

It renders fine in Mozilla, though; probably buggy implementation of white-space (from what I could tell from the css file) on Microsoft's part.
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Yoni on June 12, 2003, 05:03 PM
Do a search for "tag" in that page. You'll end up inside the box.
The CSS source:
PRE.box {
   font-family: courier;
   font-size: small;
   white-space: pre;
   border: 2pt solid #000000;
   margin-left: 10%;
   margin-right: 10%;
   padding: 2%;
   background-color: #F0F0F0;
}

I suspect the offending style is "white-space". In the VS.NET CSS editor, "white-space" is not even recognized...
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: po0f on June 12, 2003, 07:25 PM
Quote from: Yoni on June 12, 2003, 05:03 PMI suspect the offending style is "white-space".

Deja vu.
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Raven on June 12, 2003, 08:03 PM
It could've been a giant table CSSed to ignore resolutions, and you'd all be fooled!  ;D
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Banana fanna fo fanna on June 12, 2003, 08:13 PM
Works great in Opera7
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Adron on June 14, 2003, 07:15 AM
whitespace pre is most likely not the problem. See for example http://adron.virtualave.net/Encryption/manual.html where I used the following style, and it renders just fine:

.example {
   font-family: Courier, monospace;
   margin: 6pt;
   border-style: solid;
   border-width: thin;
   padding: 6pt;
   white-space: pre;
}


And my web browser is IE6.
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: dxoigmn on June 14, 2003, 06:31 PM
The offending statement is:

PRE.box {
.font-family: courier;
.font-size: small;
.white-space: pre;
.border: 2pt solid #000000;
.margin-left: 10%;
.margin-right: 10%;
.padding: 2%;
.background-color: #F0F0F0;
}

removing the % renders the page correctly in IE 6
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Adron on June 14, 2003, 06:35 PM
ah right, there's a whole lot of padding. hmm, wonder what it's taking 2% of to use for padding... something *really* big...
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Banana fanna fo fanna on June 14, 2003, 07:19 PM
btw, I like vdmsound better than ScummVM, it's faster and runs more games.
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Yoni on June 14, 2003, 07:38 PM
VDMSound is great but it doesn't run BUILD games (Duke3D!) nor did it work well for me with Simon the Sorcerer 2 (which ScummVM has partial support for).
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Adron on June 15, 2003, 05:37 AM
ScummVM runs Duke3D?
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Yoni on June 15, 2003, 07:49 AM
No, I just said VDMSound doesn't - didn't mean to imply ScummVM is supposed to.
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Banana fanna fo fanna on June 15, 2003, 08:16 PM
VDMSound runs Full Throttle, and that has pwning music.
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Skywing on June 15, 2003, 08:53 PM
Quote from: St0rm.iD on June 15, 2003, 08:16 PM
VDMSound runs Full Throttle, and that has pwning music.
VDMSound and ScummVm are completely different things, really.  There's not a whole lot of point in comparing the two.
Title: Re:HTML/CSS Experts - what's wrong with this page?
Post by: Banana fanna fo fanna on June 17, 2003, 02:52 PM
They both run Scumm games :)