Sie sind auf Seite 1von 13

<!DOCTYP<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.

0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="Dave Shea" />
<meta name="keywords" content="design, css, cascading, style, sheets, xhtml, graphic
design, w3c, web standards, visual, display" />
<meta name="description" content="A demonstration of what can be accomplished
visually through CSS-based design." />
<meta name="robots" content="all" />
<title>css Zen Garden: The Beauty in CSS Design</title>
<!-- to correct the unsightly Flash of Unstyled Content.
http://www.bluerobot.com/web/css/fouc.asp -->
<script type="text/javascript"></script>
<style type="text/css" media="all">
@import "css_awak.css";
</style>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jqueryui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />

<!--accordion ------------------------------------>
<style>
#accordion-resizer {
padding: 10px;
width: 250px;
height: 520px;
left:125px;
}
</style>
<script>
$(function() {
$( "#accordion" ).accordion({
heightStyle: "fill"
});

});
$(function() {
$( "#accordion-resizer" ).resizable({
minHeight: 140,
minWidth: 200,
resize: function() {
$( "#accordion" ).accordion( "refresh" );
}
});
});
</script>
<!--accordion ---------------------------------->
<!--sortable ---------------------------------->
<style>
body { min-width: 520px; }
.column { width: 140px; float: left; padding-left: 30px; }
.portlet { margin: 0 1em 1em 0; }
.portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; }
.portlet-header .ui-icon { float: right; }
.portlet-content { padding: 0.4em; }
.ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !
important; }
.ui-sortable-placeholder * { visibility: hidden; }
</style>
<script>
$(function() {
$( ".column" ).sortable({
connectWith: ".column"
});
$( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
.find( ".portlet-header" )
.addClass( "ui-widget-header ui-corner-all" )
.prepend( "<span class='ui-icon ui-icon-minusthick'></span>")
.end()
.find( ".portlet-content" );
$( ".portlet-header .ui-icon" ).click(function() {
$( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" );
$( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();
});

$( ".column" ).disableSelection();
});
</script>
<!--sortable ---------------------------------->
<!--tabs ---------------------------------->
<script>
$(function() {
$( "#tabs" ).tabs();
});
</script>
<style>
tabs { width: 140px; float: left; padding-left: 30px; }
</style>
<!--tabs ---------------------------------->
<!--dialog ---------------------------------->
<script>
$(function() {
$( "#dialog" ).dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});
$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
});
});
</script>
<!--dialog ---------------------------------->

<!--slider ---------------------------------->

<style>
.scroll-pane { overflow: auto; width: 99%; float:left; }
.scroll-content { width: 3000px; float: left; }
.scroll-content-item { width: 75px; height: 100px; float: left; margin: 2px; font-size: 3em; lineheight: 96px; text-align: center; }
.scroll-bar-wrap { clear: left; padding: 0 4px 0 2px; margin: 0 -1px -1px -1px; }
.scroll-bar-wrap .ui-slider { background: none; border:0; height: 2em; margin: 0 auto; }
.scroll-bar-wrap .ui-handle-helper-parent { position: relative; width: 100%; height: 100%;
margin: 0 auto; }
.scroll-bar-wrap .ui-slider-handle { top:.2em; height: 1.5em; }
.scroll-bar-wrap .ui-slider-handle .ui-icon { margin: -8px auto 0; position: relative; top: 50%; }
</style>
<script>
$(function() {
//scrollpane parts
var scrollPane = $( ".scroll-pane" ),
scrollContent = $( ".scroll-content" );
//build slider
var scrollbar = $( ".scroll-bar" ).slider({
slide: function( event, ui ) {
if ( scrollContent.width() > scrollPane.width() ) {
scrollContent.css( "margin-left", Math.round(
ui.value / 100 * ( scrollPane.width() - scrollContent.width() )
) + "px" );
} else {
scrollContent.css( "margin-left", 0 );
}
}
});
//append icon to handle
var handleHelper = scrollbar.find( ".ui-slider-handle" )
.mousedown(function() {
scrollbar.width( handleHelper.width() );
})
.mouseup(function() {
scrollbar.width( "100%" );
})
.append( "<span class='ui-icon ui-icon-grip-dotted-vertical'></span>" )
.wrap( "<div class='ui-handle-helper-parent'></div>" ).parent();
//change overflow to hidden now that slider handles the scrolling
scrollPane.css( "overflow", "hidden" );

//size scrollbar and handle proportionally to scroll distance


function sizeScrollbar() {
var remainder = scrollContent.width() - scrollPane.width();
var proportion = remainder / scrollContent.width();
var handleSize = scrollPane.width() - ( proportion * scrollPane.width() );
scrollbar.find( ".ui-slider-handle" ).css({
width: handleSize,
"margin-left": -handleSize / 2
});
handleHelper.width( "" ).width( scrollbar.width() - handleSize );
}
//reset slider value based on scroll content position
function resetValue() {
var remainder = scrollPane.width() - scrollContent.width();
var leftVal = scrollContent.css( "margin-left" ) === "auto" ? 0 :
parseInt( scrollContent.css( "margin-left" ) );
var percentage = Math.round( leftVal / remainder * 100 );
scrollbar.slider( "value", percentage );
}
//if the slider is 100% and window gets larger, reveal content
function reflowContent() {
var showing = scrollContent.width() + parseInt( scrollContent.css( "margin-left" ), 10 );
var gap = scrollPane.width() - showing;
if ( gap > 0 ) {
scrollContent.css( "margin-left", parseInt( scrollContent.css( "margin-left" ), 10 ) + gap );
}
}
//change handle position on window resize
$( window ).resize(function() {
resetValue();
sizeScrollbar();
reflowContent();
});
//init scrollbar size
setTimeout( sizeScrollbar, 10 );//safari wants a timeout
});
</script>

<!--button ---------------------------------->
<script>
$(function() {
$( "input[type=submit], button" )
.button()
.click(function( event ) {
event.preventDefault();
});
});
</script>
<!--button ---------------------------------->
</head>
<!--

This xhtml document is marked up to provide the designer with the maximum possible
flexibility.
There are more classes and extraneous tags than needed, and in a real world situation,
it's more
likely that it would be much leaner.
However, I think we can all agree that even given that, we're still better off than if this
had been
built with tables.

-->
<body onload="window.defaultStatus='css Zen Garden: The Beauty in CSS Design';" id="csszen-garden">

<div id="container">
<div id="intro">
<div id="pageHeader">
<h1><span>css Zen Garden</span></h1>
<h2><span>The Beauty of <acronym title="Cascading Style
Sheets">CSS</acronym> Design</span></h2>
</div>

<!--dialog----------------------------------------->
<div id="quickSummary">
<div id="dialog" title="Basic dialog">
<p>This is an animated dialog which is useful for displaying information. The
dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
<!--slider ---------------------------------->
<div class="scroll-pane ui-widget ui-widget-header ui-corner-all">
<div class="scroll-content">
<div class="scroll-content-item ui-widget-header"> <img src="IMG.jpg" width="80"
height="100" alt="IMG"/>
</div>
<div class="scroll-content-item ui-widget-header">2</div>
<div class="scroll-content-item ui-widget-header">3</div>
<div class="scroll-content-item ui-widget-header">4</div>
<div class="scroll-content-item ui-widget-header">5</div>
<div class="scroll-content-item ui-widget-header">6</div>
<div class="scroll-content-item ui-widget-header">7</div>
<div class="scroll-content-item ui-widget-header">8</div>
<div class="scroll-content-item ui-widget-header">9</div>
<div class="scroll-content-item ui-widget-header">10</div>
<div class="scroll-content-item ui-widget-header">11</div>
<div class="scroll-content-item ui-widget-header">12</div>
<div class="scroll-content-item ui-widget-header">13</div>
<div class="scroll-content-item ui-widget-header">14</div>
<div class="scroll-content-item ui-widget-header">15</div>
<div class="scroll-content-item ui-widget-header">16</div>
<div class="scroll-content-item ui-widget-header">17</div>
<div class="scroll-content-item ui-widget-header">18</div>
<div class="scroll-content-item ui-widget-header">19</div>
<div class="scroll-content-item ui-widget-header">20</div>
</div>
<div class="scroll-bar-wrap ui-widget-content ui-corner-bottom">
<div class="scroll-bar"></div>
</div>
</div>

<!--slider ---------------------------------->

<button id="opener">Open Dialog</button>


</div>
<!--dialog----------------------------------------->

<!--accordion ------------------------------------>
<div id="accordion-resizer" class="ui-widget-content" >
<div id="accordion">
<h3>The Road to Enlightenment</h3>
<div>
<p class="p1"><span>Littering a dark and dreary road lay the past relics of browser-specific
tags, incompatible <acronym title="Document Object Model">DOM</acronym>s, and broken
<acronym title="Cascading Style Sheets">CSS</acronym> support.</span></p>
<p class="p2"><span>Today, we must clear the mind of past practices.
Web enlightenment has been achieved thanks to the tireless efforts of folk like the <acronym
title="World Wide Web Consortium">W3C</acronym>, <acronym title="Web Standards
Project">WaSP</acronym> and the major browser creators.</span></p>
<p class="p3"><span>The css Zen Garden invites you to relax and
meditate on the important lessons of the masters. Begin to see with clarity. Learn to use the (yet
to be) time-honored techniques in new and invigorating fashion. Become one with the
web.</span></p>
</div>
<h3>So What is This About?</h3>
<div>
<p class="p1"><span>There is clearly a need for <acronym title="Cascading Style
Sheets">CSS</acronym> to be taken seriously by graphic artists. The Zen Garden aims to
excite, inspire, and encourage participation. To begin, view some of the existing designs in the
list. Clicking on any one will load the style sheet into this very page. The code remains the
same, the only thing that has changed is the external .css file. Yes, really.</span></p>
<p class="p2"><span><acronym title="Cascading Style
Sheets">CSS</acronym> allows complete and total control over the style of a hypertext
document. The only way this can be illustrated in a way that gets people excited is by
demonstrating what it can truly be, once the reins are placed in the hands of those able to
create beauty from structure. To date, most examples of neat tricks and hacks have been
demonstrated by structurists and coders. Designers have yet to make their mark. This needs to
change.</span></p>
</div>
<h3>Participation</h3>

<div>
<p class="p1"><span>Graphic artists only please. You are modifying this page, so strong
<acronym title="Cascading Style Sheets">CSS</acronym> skills are necessary, but the
example files are commented well enough that even <acronym title="Cascading Style
Sheets">CSS</acronym> novices can use them as starting points. Please see the <a
href="http://www.mezzoblue.com/zengarden/resources/" title="A listing of CSS-related
resources"><acronym title="Cascading Style Sheets">CSS</acronym> Resource Guide</a> for
advanced tutorials and tips on working with <acronym title="Cascading Style
Sheets">CSS</acronym>.</span></p>
<p class="p2"><span>You may modify the style sheet in any way you
wish, but not the <acronym title="HyperText Markup Language">HTML</acronym>. This may
seem daunting at first if you&#8217;ve never worked this way before, but follow the listed links
to learn more, and use the sample files as a guide.</span></p>
<p class="p3"><span>Download the sample <a href="zengardensample.html" title="This page's source HTML code, not to be modified.">html file</a> and <a
href="zengarden-sample.css" title="This page's sample CSS, the file you may modify.">css
file</a> to work on a copy locally. Once you have completed your masterpiece (and please,
don&#8217;t submit half-finished work) upload your .css file to a web server under your control.
<a href="http://www.mezzoblue.com/zengarden/submit/" title="Use the contact form to send us
your CSS file">Send us a link</a> to the file and if we choose to use it, we will spider the
associated images. Final submissions will be placed on our server.</span></p>
</div>
<h3>Benefits</h3>
<div>
<p class="p1"><span>Why participate? For recognition, inspiration, and a resource we can
all refer to when making the case for <acronym title="Cascading Style
Sheets">CSS</acronym>-based design. This is sorely needed, even today. More and more
major sites are taking the leap, but not enough have. One day this gallery will be a historical
curiosity; that day is not today.</span></p>
</div>
<h3>Requirements</h3>
<div>
<p class="p1"><span>We would like to see as much <acronym title="Cascading Style
Sheets, version 1">CSS1</acronym> as possible. <acronym title="Cascading Style Sheets,
version 2">CSS2</acronym> should be limited to widely-supported elements only. The css Zen
Garden is about functional, practical <acronym title="Cascading Style Sheets">CSS</acronym>
and not the latest bleeding-edge tricks viewable by 2% of the browsing public. The only real
requirement we have is that your <acronym title="Cascading Style Sheets">CSS</acronym>
validates.</span></p>
<p class="p2"><span>Unfortunately, designing this way highlights the
flaws in the various implementations of <acronym title="Cascading Style
Sheets">CSS</acronym>. Different browsers display differently, even completely valid
<acronym title="Cascading Style Sheets">CSS</acronym> at times, and this becomes
maddening when a fix for one leads to breakage in another. View the <a

href="http://www.mezzoblue.com/zengarden/resources/" title="A listing of CSS-related


resources">Resources</a> page for information on some of the fixes available. Full browser
compliance is still sometimes a pipe dream, and we do not expect you to come up with pixelperfect code across every platform. But do test in as many as you can. If your design
doesn&#8217;t work in at least IE5+/Win and Mozilla (run by over 90% of the population),
chances are we won&#8217;t accept it.</span></p>
<p class="p3"><span>We ask that you submit original artwork. Please
respect copyright laws. Please keep objectionable material to a minimum; tasteful nudity is
acceptable, outright pornography will be rejected.</span></p>
<p class="p4"><span>This is a learning exercise as well as a
demonstration. You retain full copyright on your graphics (with limited exceptions, see <a
href="http://www.mezzoblue.com/zengarden/submit/guidelines/">submission guidelines</a>),
but we ask you release your <acronym title="Cascading Style Sheets">CSS</acronym> under a
Creative Commons license identical to the <a
href="http://creativecommons.org/licenses/sa/1.0/" title="View the Zen Garden's license
information.">one on this site</a> so that others may learn from your work.</span></p>
<p class="p5"><span>Bandwidth graciously donated by <a
href="http://www.dreamfirestudios.com/">DreamFire Studios</a></span></p>
</div>
</div>
</div>
<div id="preamble">
<p class="p1"><span>ABOUT US</span></p>
</div>
</div>
<!--accordion ------------------------------------>
<br/><br/>
<!--tabs ---------------------------------->
<div id="tabs" style="width: 280px; height: 180px; left: 120px;">
<ul>
<li><a href="#tabs-1">Key in</a></li>
<li><a href="#tabs-2">Suraya</a></li>
<li><a href="#tabs-3">Limosin</a></li>
</ul>
<div id="tabs-1">
<p>Nama saya kamaliah</p>
</div>
<div id="tabs-2">
<p>Nama saya suraya</p>
</div>

<div id="tabs-3">
<p>Nama saya Lin lan tang</p>
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, </p>
</div>
</div>
<!--tabs ---------------------------------->

<div id="supportingText">

<div id="footer">

<button onclick="javascript:window.location =
'http://validator.w3.org/check/referer';">xhtml</button>
<button onclick="javascript:window.location = 'http://jigsaw.w3.org/cssvalidator/check/referer';">css</button>
<button onclick="javascript:window.location =
'http://creativecommons.org/licenses/by-nc-sa/1.0/';">cc</button>
<button onclick="javascript:window.location =
'http://mezzoblue.com/zengarden/faq/#s508';">508</button>
</div>
</div>

<div id="linkList">
<!--extra div for flexibility - this list will probably be the trickiest spot you'll deal
with -->
<div id="linkList2">
<!-- If you're wondering about the extra &nbsp; at the end of the link, it's a hack to
meet WCAG 1 Accessibility. -->
<!-- I don't like having to do it, but this is a visual exercise. It's a compromise. -->

<!--sortable ------------------------------------>

<div class="column">

<div class="portlet">
<div class="portlet-header">Select a Design</div>
<div class="portlet-content" style="font-size:xx-small;">
<a href="/" title="AccessKey: a" accesskey="a">Sample #1</a> by <a
href="http://www.mezzoblue.com/" class="c">Dave Shea</a>&nbsp;<br/>
<a href="/" title="AccessKey: b" accesskey="b">Sample
#2</a> by <a href="http://www.mezzoblue.com/" class="c">Dave Shea</a>&nbsp;<br/>
<a href="/" title="AccessKey: c" accesskey="c">Sample
#3</a> by <a href="http://www.mezzoblue.com/" class="c">Dave Shea</a>&nbsp;<br/>
<a href="/" title="AccessKey: d" accesskey="d">Sample
#4</a> by <a href="http://www.mezzoblue.com/" class="c">Dave Shea</a>&nbsp;<br/>

</div>
</div>

<div class="portlet">
<div class="portlet-header">Resources</div>
<div class="portlet-content" style="font-size:xx-small;">
<a href="http://www.csszengarden.com/001/001.css" title="View the source CSS file for the
currently-viewed design, AccessKey: v" accesskey="v"><span class="accesskey">V</span>iew
This Design&#8217;s <acronym title="Cascading Style Sheets">CSS</acronym></a><br/>
<a
href="http://www.mezzoblue.com/zengarden/resources/" title="Links to great sites with
information on using CSS. AccessKey: r" accesskey="r"><acronym title="Cascading Style
Sheets">CSS</acronym> <span class="accesskey">R</span>esources</a><br/>
<a href="http://www.mezzoblue.com/zengarden/faq/"
title="A list of Frequently Asked Questions about the Zen Garden. AccessKey: q"
accesskey="q"><acronym title="Frequently Asked Questions">FA<span
class="accesskey">Q</span></acronym></a>&nbsp;<br/>
<a href="http://www.mezzoblue.com/zengarden/submit/"
title="Send in your own CSS file. AccessKey: s" accesskey="s"><span
class="accesskey">S</span>ubmit a Design</a><br/>
<a
href="http://www.mezzoblue.com/zengarden/translations/" title="View translated versions of this
page. AccessKey: t" accesskey="t"><span class="accesskey">T</span>ranslations</a><br/>
</div>
</div>

</div>
<!--sortable ------------------------------------>
</div>
</div>

</div>
<!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->
<!-- Add a background image to each and use width and height to control sizing, place with
absolute positioning -->
<div id="extraDiv1"><span></span></div><div id="extraDiv2"><span></span></div><div
id="extraDiv3"><span></span></div>
<div id="extraDiv4"><span></span></div><div id="extraDiv5"><span></span></div><div
id="extraDiv6"><span></span></div>
</body>
</html>

Das könnte Ihnen auch gefallen