Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » using subtemplates generates a new <div>?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1183 Views
  • Roelfsche
    Avatar
    25 Posts

    using subtemplates generates a new <div>? Link to this post

    hello,
    i'm new with silverstripe. while reading tutorials 1 and 2 and playing a bit around, my website looks different when using subtemplates.
    as described in the tutorials i created a new site of my own type (NewsHolder).
    when i put some code from Page.ss into Layout/NewsHolder.ss and browse my site, suddenly a
    <div class="typography"> occurs arround the NewsHolder.ss template in my site. So my css doesn't work anymore.
    It's no problem to change it, but i want to ask, if this is a normal behavior?
    thanks,
    roelfsche

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: using subtemplates generates a new <div>? Link to this post

    <div class="typography"> should always be around the content you wish to edit in the cms. Make sure your page.ss has .typorgpahy around it and you can style it in the typography.css file

    1183 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.