Best method to set up internal styles/css? / body id + css
Hello,
for individual styling in single pages I used either to simply set internal styles in the head section of html pages, (I used Dreamweaver for site building).
I had also other sites/pages set up with body id in a template
<body id="@@(_document['nameofpage'])@@">
so I could control via one referenced stylesheet e.g. a different background-image or a highlighted menu item
Are there methods like this in Contao?
What are you using?
bye,
beatrice
Re: Best method to set up internal styles/css? / body id + c
Contao adds a lot of classnames to the html by default. You'd be able to use those to hook into. Some ids are also used. The html output allows for normal CSS styling. (That's either inline, or the preferred; external CSS files)
Contao also assists with creating stylesheets. There is a stylesheet editor that comes with the system under Themes. You can use that to add and change styles. It is a little bit easier to start with then normal CSS, but it will still require you to know about CSS selectors and advanced stylesheet settings (like z-index).