Standardized CSS layouts with Midgard

Based on my earlier blog entry, there was an interesting talk in OSCOM 4 about CSS Naming Conventions.

My after-talk discussions with Thorsten Scherler led to development of OSCOM specification for CSS Naming Conventions.

I've now used the XHTML skeleton from the specification for some websites, and have been generally quite happy with it. Here is a simple Midgardization of it. Simply paste it to the <(ROOT)> element of your style, and then add the CSS formatting to the <(css)> element.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""">
<html xmlns="" xml:lang="&(midcom_site["site_language"]);" lang="&(midcom_site["site_language"]);">
    <meta http-equiv="Content-Type" content="text/html; charset=&(midcom_site["site_encoding"]);" />
    <style type="text/css">
    <link rel="stylesheet" href="&(midcom_site["uri"]);style.css" type="text/css" />
    <div id="container">
      <div id="branding">
        <div class="grouplogo">
          <!-- Insert logo here -->
        <div id="branding-tagline">
          <?php echo $GLOBALS["midcom_site"]['site_welcome']; ?>
        <div id="branding-trail">

      <div id="nav">
        <div id="nav-main">

        <div id="nav-language">
         <!-- Language switching links -->

        <div id="search">
          <div class="search-input">

      <div id="content">
        <div id="content-main">

      <div id="siteinfo">
        <div id="siteinfo-credits">
          Created by <a href="">Nemein Oy</a>.
          Powered by <a href="">Midgard CMS</a>.
        <div class="lastmodified">
        <div class="siteinfo-legal">
         <!-- Copyright disclaimer and possible licensing -->
        <div id="feedback">

The places with comments are ones I'm still thinking how to pull dynamic content into.

Read more Midgard posts.