POV-Ray : Newsgroups : povray.off-topic : Web page construction : Re: Web page construction Server Time
4 Sep 2024 01:18:47 EDT (-0400)
  Re: Web page construction  
From: Orchid XP v8
Date: 13 Sep 2010 15:53:14
Message: <4c8e812a$1@news.povray.org>
>> Apparently simply setting
>>
>>   h1 {display: inline;}
>>
>> somehow *doesn't* make <h1> display inline, but if you also make the 
>> following <p> tag inline, the correct result is obtained. I have 
>> absolutely no idea why the hell that works, and whether it works in 
>> all browsers or whether it's just a Firefox bug.
> 
> http://www.w3.org/TR/CSS2/visuren.html#display-prop
> 
> It's "inline" in relation to previous element.  But h1 in your code has 
> no previous element.  p has h1 as previous element, and thus get inlined 
> next to h1 when it too gets display:inline.

Hmm, so why doesn't the next heading tag get inlined into the previous 
paragraph?

>> (As an aside, IE7 seems totally unable to display this particular 
>> XHTML page at well, which is weird...)
> 
> no, weird is to expect IE to be able to display standards-compliant 
> content.  Sometimes it does, most times doesn't.

It's not that it displays it *wrong*, it just point-blank refuses to 
open it at all. Like it doesn't understand what XHTML is or something...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.