About this user

Scott

« Newer Snippets
Older Snippets »
3 total  XML / RSS feed 

skidoo_lean.css

// 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 */
}

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

fixedWidth.css

// description of your code here

@charset "iso-8859-1";

/*******************************************************************************
*  fixedWidth.css : 2004-07-19 : Ruthsarian Layouts
* ------------------------------------------------------------------------------
*  Provide a fixed width to the layout
*******************************************************************************/

* html body
{
        text-align: center;   /* hack to center this under IE5 */
}
* html #pageWrapper
{
        text-align: left;     /* keep the content left-aligned */
}

#pageWrapper
{
        width: 700px;
        margin-left: auto;
        margin-right: auto;
}

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

twoColumnsLeft.css

@charset "iso-8859-1";

/*******************************************************************************
*  twoColumnsLeft.css : 2004-08-17 : Ruthsarian Layouts
* ------------------------------------------------------------------------------
*  This stylesheet removes the right-hand column from the 3 column layout
*******************************************************************************/

html>body #rightColumn
{
        display: none;      /* for compliant browsers, hide this column entirely */
}
* html #rightColumn *
{
        display: none;      /* ie's ghost-text bug is triggered by key elements
                           having display:none set. #rightColumn is one of those
                           key elements. so we display:none all child
                           elements (doesn't trigger the bug) and try to
                           make #rightColumn have no chance to affect
                           document flow. */
}
#rightColumn
{
        position: absolute;
        margin: 0;
        padding: 0;
        width: 0;
        height: 0;
        border: none;       /* remove anything that'll give this elemnt width. */
}
#outerColumnContainer, #innerColumnContainer
{
        border-right-width: 0; /* to get from 3 to 2 columns, we must hide the
                                   right-side border */
}
#innerColumnContainer
{
        margin-right: 0;
}

/******************************************************************************/
« Newer Snippets
Older Snippets »
3 total  XML / RSS feed