Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Where is the width of the columns defined for the Cph sample site?

$
0
0
Hi Hugh,

if you look at the template '2 columns, content and aside':
<body>
        @PageTemplateFeature("Content Start")
        @Function("Layout.HeroUnit", new { CustomContent = this.HeroUnit })
        <div class="row">
            <div class="span8">
                @Markup(Content)
            </div>
            <div class="span4">
                @Markup(Aside)
                @PageTemplateFeature("Aside Column")
            </div>
        </div>
    </body>
You can see, that the "Aside" column is placed within a <div> with the class "span4" and the "Content" column in a <div> with the class "span8".

This is Twitter Bootstrap's default grid system:

http://twitter.github.io/bootstrap/scaffolding.html#gridSystem

You can change it by changing the classes - e.g. span10 for the content and span2 for the aside column.


Cheers,

Thorsten

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>