W3C home > Mailing lists > Public > www-html@w3.org > August 2002

Re: In support of the "line space" (nee <hr>)

From: Christian Ottosson <christian@ottosson.name>
Date: Wed, 21 Aug 2002 16:25:39 +0200
Message-ID: <1029939939.3d63a2e36668a@mail.spamcop.net>
To: www-html@w3.org

Lorenzo De Tomasi <lorenzo.detomasi@libero.it> wrote:

> how can now a person that has always used <hr> with xhtml + css obtain the
> same result using <section>?
> If I structure the doc in this way
> 
> <section>
>     <section>
>         <section>
>         <p>text</p>
>         <!-- here I want to insert a line break <hr> -->
>         </section>
>         <section>
>         <p>text</p>
>         <!-- here I want to insert a line break <hr> -->
>         </section>
>     </section>
> </section>
> 
> How can I add a line only at the end of the 3rd indented sections?

How about the CSS

  section section section{
    border-bottom: thin black solid;
    padding-bottom: 1em;
    margin-bottom: 1em;
  }

or 

  section section section{
    border-bottom: thin black solid;
    padding-bottom: 1em;
  }

  section section section + section {
    padding-top: 1em;
  }


This is just a quick suggestion. Maybe you can think of something better for 
your needs. The "hr" will have the full width of the section though.


> Can I have different properties of the line break (as black color for the
> first and blue color for the second)?

Then you must add for example a class attribute to the sections with different 
values.


> Is the translation between the old method and the new one easy?
> Is the new method a lot more complicate?

Judge for yourself. There may be other methods as well.
-- 
Christian Ottosson
(looking for job)
--------------------------------------------------
  /"\
  \ /
   X  ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
  / \
--------------------------------------------------
Received on Wednesday, 21 August 2002 10:25:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:52 GMT