• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

OK HTML gurus, why the hell won't my page validate?

it seems like the css <style> </style> tag doesn't like to stay inside curly braces { ... } or any other containers for that matter (single quote, double quote, etc)

after being stuck, i tried moving a naked <style></style> tag in between two { } braces, and it won't validate with the w3c validator ....

heck, even by cheating with the below won't work ...
(i assigned the <style> to variable and document.write (the variable) ... but it didn't work as well)

i have no idea... i guess they don't like <style> to be inside anything....

<script type="text/javascript">
<!-- // this won't work either::
var abc = "<style type='text/css'>.typeheight{line-height: 13.75px;}</style>";

if (OSName == "MacOS" && navigator.appName == "Netscape"){
document.write(abc);
}
// -->
 
Looks like it isn't processing text within documnet.write("") properly. Hmm, I wonder if in "valid" HTML 4.x you're supposed to escape the <> like you have to in XML ?

Why not try that, and see if (a) it stops complaining -and- (b) it still works 🙂 then let us know.


ed: stndn typed a bit faster, but I'm still curious whether escaping would work.
 
<devilsadvocate>
I hate it when people use fixed-px fonts, because then my "view->text-size->larger" doesnt work.
</devilsadvocate>

Honestly, you're changing the font size less than half a point between those, do you really need the javascript/browser detect? Would the design really fall apart if peoples fonts weren't exactly right?

bart
 
Originally posted by: Buddha Bart
<devilsadvocate>
I hate it when people use fixed-px fonts, because then my "view->text-size->larger" doesnt work.
</devilsadvocate>

Honestly, you're changing the font size less than half a point between those, do you really need the javascript/browser detect? Would the design really fall apart if peoples fonts weren't exactly right?

bart

I'm trying to fit text into a box that's exatly 122 pixels high.
 
Back
Top