Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • daxu 22 posts 28 karma points
    Feb 02, 2010 @ 13:30
    daxu
    0

    really newbie question: how to apply css?

    Sorry for ask this newbie question.

    I did search old posts, but I didn't find an answer I can use.

    I created a css under settings-> stylesheets. But how do I apply my css file to my template?

    The exmple I downloaded (creative website) seems doesn't include css link directly in the master page. So how should I apply my css file?

    Many Thanks

     

     

  • Tommy Poulsen 514 posts 708 karma points
    Feb 02, 2010 @ 13:39
    Tommy Poulsen
    0

    You can specify it withing the <head>-element in your master template like you would in a normal html page:

    <head>
    ...
    <link rel="stylesheet" href="/css/wizard.css" type="text/css">
    ...
    </head>
  • Rik Helsen 670 posts 873 karma points
    Feb 02, 2010 @ 13:39
    Rik Helsen
    0

    Just include it as you would in normal html:

    In the <head></head> element of your template include tags like:

    <script src="/Scripts/js/sifr.js" type="text/javascript"></script>
    <script src="/Scripts/js/sifr-debug.js" type="text/javascript"></script>
    <script src="/Scripts/js/sifr-config.js" type="text/javascript"></script>


    <link rel="stylesheet" type="text/css" media="all" href="/css/style.css" />
    <link rel="stylesheet" href="/css/sIFR-screen.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="/css/sIFR-print.css" type="text/css" media="print" />

    If you want to define heading styles that you can select in the tinymce content editor fields, you need to create children for the css file for each style that you want to make available in the editor, and associate the css file with the tinymce editor.

    Here are three screenshots with some pointers on how to do this:

    http://www.photo9.be/bd/capturerr1.jpg
    http://www.photo9.be/bd/capturerr2.jpg
    http://www.photo9.be/bd/capturerr3.jpg

    Hope this helps!

  • Chris 69 posts 75 karma points
    Feb 02, 2010 @ 13:40
    Chris
    0

    I'm not sure how CWS applies stylesheets, but it's definitely possible to include them in your master template.

    For example, add something like this:

    <link rel="stylesheet" type="text/css" href="/css/master.css" />

     

    Chris

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 02, 2010 @ 13:44
    Dirk De Grave
    0

    include your stylesheet reference in any template (probably the master template) in the head section as you would with any standard asp.net/html page.

    CWS2 most probably uses some placeholders, so you should check the child templates as well if you're looking for how to embed the css in your templates.

     

    Cheers,

    /Dirk

  • daxu 22 posts 28 karma points
    Feb 02, 2010 @ 13:49
    daxu
    0

    great,

    Thanks. I will do the old way.

Please Sign in or register to post replies

Write your reply to:

Draft