User:Randall00/Sandbox: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dynamic Drive: CSS Fixed Layout #2.2- (Fixed-Fixed)</title>
<style type="text/css">
<style type="text/css">


/*Credits: Dynamic Drive CSS Library */
body{
/*URL: http://www.dynamicdrive.com/style/ */<!-- Hide entire CSS code from IE6 -->
margin:0;
<![if !IE 6]>
padding:0;
line-height: 1.5em;
}
 
b{font-size: 110%;}
em{color: red;}
 
#maincontainer{
width: 840px; /*Width of main container*/
margin: 0 auto; /*Center container on page*/
}
 
#topsection{
background: #EAEAEA;
height: 90px; /*Height of top section*/
}


#topsection h1{
margin: 0;
padding-top: 15px;
}


#contentwrapper{
float: left;
width: 100%;
}


.shiftcontainer{
#contentcolumn{
position: relative;
margin-right: 200px; /*Set right margin to RightColumnWidth*/
left: 5px; /*Number should match -left shadow depth below*/
top: 5px; /*Number should match -top shadow depth below*/
}
}


.shadowcontainer{
#rightcolumn{
width: 300px; /* container width*/
float: left;
background-color: #d1cfd0;
width: 200px; /*Width of right column*/
margin-left: -200px; /*Set left margin to -(RightColumnWidth) */
background: #FDE95E;
}
}


.shadowcontainer .innerdiv{
#footer{
/* Add container height here if desired */
clear: left;
background-color: white;
width: 100%;
border: 1px solid gray;
background: black;
padding: 6px;
color: #FFF;
position: relative;
text-align: center;
left: -5px; /*shadow depth*/
padding: 4px 0;
top: -5px; /*shadow depth*/
}
 
#footer a{
color: #FFFF80;
}
 
.innertube{
margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/
margin-top: 0;
}
}


</style>
</style>


<![endif]>
<script type="text/javascript">
/*** Temporary text filler function. Remove when deploying template. ***/
var gibberish=["This is just some filler text", "Welcome to Dynamic Drive CSS Library", "Demo content nothing to read here"]
function filltext(words){
for (var i=0; i<words; i++)
document.write(gibberish[Math.floor(Math.random()*3)]+" ")
}
</script>


</head>
<body>
<div id="maincontainer">


<div class="shiftcontainer">
<div id="topsection"><div class="innertube"><h1>CSS Fixed Layout #2.2- (Fixed-Fixed)</h1></div></div>
<div class="shadowcontainer">
 
<div class="innerdiv">
<div id="contentwrapper">
<b>Some title</b> <br />
<div id="contentcolumn">
Some text here. Some text here.<br />
<div class="innertube"><b>Content Column: <em>Fixed</em></b> <script type="text/javascript">filltext(45)</script></div>
Some text here. Some text here.<br />
Some text here. Some text here.<br />
Some text here. Some text here.
</div>
</div>
</div>
</div>
<div id="rightcolumn">
<div class="innertube"><b>Right Column: <em>200px</em></b> <script type="text/javascript">filltext(15)</script></div>
</div>
<div id="footer"><a href="http://www.dynamicdrive.com/style/">Dynamic Drive CSS Library</a></div>
</div>
</div>
</body>
</html>

Revision as of 12:49, July 6, 2007

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Dynamic Drive: CSS Fixed Layout #2.2- (Fixed-Fixed)</title> <style type="text/css">

body{ margin:0; padding:0; line-height: 1.5em; }

b{font-size: 110%;} em{color: red;}

  1. maincontainer{

width: 840px; /*Width of main container*/ margin: 0 auto; /*Center container on page*/ }

  1. topsection{

background: #EAEAEA; height: 90px; /*Height of top section*/ }

  1. topsection h1{

margin: 0; padding-top: 15px; }

  1. contentwrapper{

float: left; width: 100%; }

  1. contentcolumn{

margin-right: 200px; /*Set right margin to RightColumnWidth*/ }

  1. rightcolumn{

float: left; width: 200px; /*Width of right column*/ margin-left: -200px; /*Set left margin to -(RightColumnWidth) */ background: #FDE95E; }

  1. footer{

clear: left; width: 100%; background: black; color: #FFF; text-align: center; padding: 4px 0; }

  1. footer a{

color: #FFFF80; }

.innertube{ margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/ margin-top: 0; }

</style>

<script type="text/javascript"> /*** Temporary text filler function. Remove when deploying template. ***/ var gibberish=["This is just some filler text", "Welcome to Dynamic Drive CSS Library", "Demo content nothing to read here"] function filltext(words){ for (var i=0; i<words; i++) document.write(gibberish[Math.floor(Math.random()*3)]+" ") } </script>

</head> <body>

CSS Fixed Layout #2.2- (Fixed-Fixed)

Content Column: Fixed <script type="text/javascript">filltext(45)</script>
Right Column: 200px <script type="text/javascript">filltext(15)</script>

</body> </html>