You are here: Re: Help with CSS margin collapse « HTML « IT news, forums, messages
Re: Help with CSS margin collapse

Posted by rf on 08/31/07 10:50

"sevillad" <sevillad@gmail.com> wrote in message
news:1188554890.060885.86210@q3g2000prf.googlegroups.com...
> Hi,
>
>> > On Aug 29, 12:48 pm, "rf" <r...@invalid.com> wrote:
>
>> Have a good read in the specs about the visual layout model.
>
> I definitely will, it seem complicated when I did some time ago, but
> it seems it's important enough.

It's imperative if you are going to be doing advanced stuff, and changing
<li>s from block to inline is IMHO somewhat advanced.

It's also hard going, but worth it. Don't worry if you don't get it all at
once, as you won't. I still re-read it from time to time and surprise myself
with bits that I had forgotten, or missed last time.

>> > And now that I'm at it, should
>> > I wrap those A's in DIVs or P's for the sake of meaningful code?
>>
>> No. Why would that make the code more meaningful? There lies the way of
>> div
>> soup :-) The <a> can quite happily live inside a <li>. No need for more.

Further, if you were to wrap those <a>s in <p>s you would be probably quite
surprised at the resultant layout. Please try it, and see if you can explain
what is happenning :-) Hint: <p> is a block level element. Remember to leave
those borders switched on. Perhaps specify a different coloured border for
<p> elements.

> Thanks. I was asking because in the old days I used to think that <p>
> was the same as <br>, until I started reading about content vs. style.

Think of a poem. Each stanza is, well can be construed to be, a <p>. A
block, with blank space before and after. However the stanza is comprised of
definite lines, broken by a <br>, that is, break the line box here. Just
don't think that multiple <br>s will (or should) produce blank space. A line
(box) can only (logically) be broken once, even though most browsers
disagree.

--
Richard.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация