Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

using subtemplates generates a new <div>?


Go to End


2 Posts   1470 Views

Avatar
Roelfsche

25 Posts

15 October 2007 at 6:26am

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

Avatar
Willr

Forum Moderator, 5523 Posts

16 October 2007 at 10:48am

<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