POV-Ray : Newsgroups : povray.off-topic : Web page construction : Re: Web page construction Server Time
4 Sep 2024 01:18:36 EDT (-0400)
  Re: Web page construction  
From: nemesis
Date: 13 Sep 2010 17:12:12
Message: <4c8e93ac@news.povray.org>
Orchid XP v8 escreveu:
>>> 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?

because paragraphs are display:block by default?

-- 
a game sig: http://tinyurl.com/d3rxz9


Post a reply to this message

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