Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

skidoo_lean.css (See related posts)

// skidoo_lean.css

@charset "iso-8859-1";

/*******************************************************************************
*  skidoo_lean.css : 2004-08-17 : Ruthsarian Layouts
* ------------------------------------------------------------------------------
*  lean and mean version of the original skidoo layout seen at:
*  http://webhost.bridgew.edu/etribou/layouts/skidoo/
*  CSS for horizontal and vertical nav elements based on unordered lists
*  isn't here to help reduce the layout to its core components.
*******************************************************************************/

body
{
        background-color: #333;
        color: #fff;
        font-size: 100.1%;
        margin: 0;
        padding: 2em;           /* remove this to stretch the layout 
                                   across the screen edge-to-edge */
}
#pageWrapper
{
        border-style: solid;
        border-width: 0 1px;    /* layout's side borders */
        font-family: arial, helvetica, sans-serif;
        font-size: 80%;         /* arial looks better with a smaller size */
        margin: 0;
        min-width: 500px;       /* IE doens't understand this property */
        width: auto;
}
* html #pageWrapper
{
        word-wrap: break-word;  /* invalid CSS but keeps IE from breaking 
                                   horribly under narrow viewports */
}
#masthead
{
        background-color: #666;
        border-style: solid;
        border-width: 1px 0;
        color: #fff;
}
#masthead h1
{
        display: inline;        /* easier than setting 0 padding and margin */
}
#outerColumnContainer
{
        background-color: #fff;
        border-style: solid;
        border-width: 0 14em;   /* side border widths must equal the
                                   widths of the left and right columns. 
                                 */
        border-left-color: #ccc;        /* left hand column background color */
        border-right-color: #999;       /* right hand column background color */
        color: #000;
        z-index: 1;
}
* html #outercolumncontainer
{
        /* IE5.0/Win fix for 1px whitespace between masthead and body. 
         * The case-incorrect selector is on purpose. IE5.0 and IE5.5 are
         * case insensitive and I'm targeting IE 5.0. 5.5 doesn't get hurt
         * by this extra margin work.
         */
        margin-top: -1px;
        border-top: solid 1px #000;
}
#innerColumnContainer
{
        border-style: solid;
        border-width: 0 1px;    /* puts borders between middle and the side 
                                   columns. */
        margin: 0 -1px;         /* compensate for the borders because of
                                   100% width declaration */
        width: 100%;
        z-index: 2;
}
html[xmlns] .mozclear
{
        /* this selector should be valid CSS, but Opera 7.5 (and above) will pick
         * this up as well. Shouldn't be a problem, Opera should handle this fine,
         * but it's a Mozilla-targeted hack, and it should probably only affect
         * mozilla. You can do that by replacing the INVALID CSS selector
         * :root .mozclear for what's give here.
         */
        border-bottom: 1px solid;
        border-color: transparent;
        margin-bottom: -1px;
}
#leftColumn, #rightColumn, #contentColumn
{
        float: left;
        overflow: visible;      /* fix for IE italics bug */
        position: relative;
        z-index: 10;
}
#leftColumn
{
        margin: 0 1px 0 -14em;  /* the margin on the side the column is to be
                                   rendered on must be the negative equal of 
                                   the column's width. The opposite border must
                                   be 1px */
        width: 14em;
}
#rightColumn
{
        float: right;   /* doesn't have to be floated right, but if using some
                           original skidoo tweaks, you need it this way */
        margin: 0 -14em 0 1px;  /* same as in the #leftColumn but reversed */
        width: 14em;
}
#rightColumn .inside
{
        font-size: 90%; /* because the parent element ( #rightColumn )
                           defines its width in EMs, we can't change the font 
                           size in that selector, otherwise the column won't use
                           the entire width reserved for the column */
}
#contentColumn
{
        margin: 0 -1px;               /* required to get the negative margin-based
                                   layout to work. if #contentColumn does not
                                   overlap the left and right columns, then
                                   the whole layout will break */
        width: 100%;
}
#footer
{
        background-color: #666;
        border-style: solid;
        border-width: 1px 0;    /* border for bottom of layout and top of 
                                   footer area */
        color: #fff;
        position: relative;
        text-align: center;
}
html>body #footer
{
        padding-bottom: 1.01em; /* attempt to fix Gecko engine's rounding errors
                                   which can disrupt the layout. */
}
p, h1, h2, h3, h4, h5, h6
{
        margin: 1em 0;          /* for better consistency across platforms */
}
.clear
{
        clear: both;
}
.inside
{
        padding: 0 1.5em;       /* glitch in IE caused by vertical padding in
                                   this class, so 0 padding is set here and
                                   those blocks that need the vertical padding
                                   must be applied to the parent element.
                                   the purpose of this class is to provide 
                                   horizontal padding without using hacks to
                                   get around IE's broken box model. so it's
                                   okay to apply vertical padding to the parent
                                   element, just not horizontal padding. */
}
#leftColumn, #centerColumn, #rightColumn, #masthead
{
        padding-top: 0.5em;
        padding-bottom: 0.5em;  /* this is the vert padding talked about in the
                                   .inside selector comment. */
}
#masthead, #footer
{
        padding: 1em;   /* ditto from above */
}
#pageWrapper, #innerColumnContainer, #masthead, #footer
{
        border-color: #000;     /* one-stop control of border color used within
                                   the layout */
}
#outerColumnContainer
{
        border-top-color: #000; /* should match the above border color */
}

/******************************************************************************/

You need to create an account or log in to post comments to this site.


Related Posts