Results 1 to 2 of 2

Thread: Best method to set up internal styles/css? / body id + css

  1. #1
    New user
    Join Date
    09-04-11.
    Location
    near Munich, Germany
    Posts
    10

    Default 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

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default 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).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •