|
Posted by Luigi Donatello Asero on 07/29/06 15:21
"jojo" <jojo.hafner@gmx.de> skrev i meddelandet
news:eafs5n$6st$1@registered.motzarella.org...
[cut]
> > No matter whether they are involved or not, if you have a very long text
on
> > one page as I have (which also has some advantages)
> > the use of <div>s helps me to use the right headings because it let me
> > understand whether a part of the page is a subsection or a subsubsection
and
> > so on. But once I have used the different <div>s how could I style
them?
>
> You don't have to! One possibility would be to style all sections the
> same, all subsections same (but different from the sections), all
> subsubsections same again (but again different from the sections and
> subsections). You could do it like this:
>
> div p {font-size:20px;}
> div div p {font-size .8em}
> div div div p {font-size .9em}
There is only 1 section on each page.
On the page https://www.scaiecat-spa-gigi.com/it/svezia.html
I have several subsections, for example a subsection for the menu on the
left side
which includes links to other pages of the same website, a subsection for
the summary,
another for the main content and so on.
The main content is divided in several subsubsections.
The page is very long and styling the different subsubsections might help
the reader to see
where one begins and where it ends.
> just an example. I would not change the color or font-family, just the
> size or font-style (you could make the subsubsections italic for
> example).Another possibility (which I would prefer) would be to set
> different paddings on each sub-group:
It might be a good idea but it does not help make clear when one
subsubsection in the main content begins and when it ends.
>
> div {padding-left: 1em;}
>
> should look like this:
>
> |''''''''''''''''''''''|
> | section |
> | |'''''''''''''''''''|
> | | subsection |
> | | |''''''''''''''''|
> | | | subsubsection |
> | | |________________|
> | | |''''''''''''''''|
> | | | subsubsection |
> | | |________________|
> | |___________________|
> | |'''''''''''''''''''|
> | | subsection |
> . . .
> . . .
> . . .
>
>
> HTH, jojo
--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
Hur kallar man Sverige på italienska?
E l´Italia in svedese?
Navigation:
[Reply to this message]
|