[TYPO3] <h1> to <h3> with css_styled_content

Christopher Torgalson bedlamhotel at gmail.com
Sun Jan 13 11:41:49 CET 2008


Hi,

On Jan 13, 2008 11:32 AM, Bas Heutink <webdesign at inbalanshasselt.nl> wrote:
> Hi Ryan,
>
> I dont know if you can make typo3 change the tags set for header etc...


You can. Look at lib.stdheader in the TS Object Browser (found in the
template module).


> But with css you can achive the result you want.
>
> The solution can be this:
> Put your site title in a div and set this css:
> #site_title h1
>
> Then put the typo3 content in a div and set this css:
> #content h1
>
> This way it does not matter anymore that h1 is used twice.


Sorry, but this is nonsensical.

Sure you can change how an h1 *looks*, but the issue is whether it is
sensible to have two h1 elements in a single html document. Part of
the function of HTML is to describe the marked-up information, and it
is quite likely that there are not two parts of a given document which
can both be a top-level header.


> Furthermore Typo3 adds classes to h1, h2 etc. tags, so you can style
> more specific, like:
> #content h1.csc-firstHeader


No argument here; though TYPO3's defaults with respect to classes and
whatnot tend a little towards 'bloat,' they can sometimes be useful.



-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list