Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Need a good CSS tutorial related to silverstripe themes?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1300 Views
  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Need a good CSS tutorial related to silverstripe themes? Link to this post

    Hi could somebody please point me to a CSS tutorial so that I can understand the coding for Silverstripe themes.

    As there does not seem to be much html I have used html and css before but this looks totally differant to what I have used I used to make pages out of html and add css for formatting but this does not seem to be how it works in these themes.

    Also I was looking at the ssbits.com website and it has dissipated on me.

    From my searches there seem to be many tutorials on css but they mostly deal with html pages using css not totally css driven.

    If I am mistaken about the type of tutorial I should be looking for please let me no and thanks for reading.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Need a good CSS tutorial related to silverstripe themes? Link to this post

    There's no difference in regular HTML & CSS compared to the way things are done in SilverStripe. The templates are used to generate HTML output and you style that output using CSS... that's all. There's no such thing as "totally CSS driven" (or maybe you dare to explain what you mean by that?)

  • perla
    Avatar
    Community Member
    6 Posts
  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Re: Need a good CSS tutorial related to silverstripe themes? Link to this post

    Thanks for the link will definatly raad through that and what I meant from totally css driven was that I from looking at the themes I have I couldnt see how to layout a theme I didnt see any html tables or much html at all mostly just div tags for css.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Need a good CSS tutorial related to silverstripe themes? Link to this post

    Using tables for layout is a thing from the past and no longer considered good practice.
    You should pick the HTML elements that seem semantically correct. Use <p> for paragraphs, <h1> - <h6> for headings, unordered lists for structured content like menus... this seems obvious but I have seen people doing things like that: <div class="title">Title</div> instead of <h1>Title</h1>

    I usually check my sites with CSS disabled (using the webdeveloper toolbar for firefox) to see if the content is still well structured and readable.

    1300 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.