Skip to content

Instantly share code, notes, and snippets.

@aarongustafson
Created September 19, 2010 14:19
Show Gist options
  • Save aarongustafson/586805 to your computer and use it in GitHub Desktop.
Save aarongustafson/586805 to your computer and use it in GitHub Desktop.
p {
color: red;
font-weight: bold;
}
p {
background-color: rgb(137, 224, 160);
background-color: rgba(180, 246, 248, .43);
}
html[lang] p {
/* A bunch of advanced stuff goes here */
}
#intro {
margin: 0;
padding: 0;
width: 660px;
height: 80px;
background: transparent url(introkop.gif) no-repeat right top;
}
...
body[id=css-zen-garden] #intro {
position: absolute;
top: 0;
left: 0;
float: none;
margin: 0;
width: 100%;
height: 350px;
background: none;
}
p,
p:not([title]) {
color: red;
font-style: bold;
}
#intro {
/* Old Layout */
}
...
[foo], #intro {
/* Advanced Layout */
}
h1 {
font-size: 2em;
}
h1 {
font-size: 3em;
}
<article id="lodging">
<header>
<h1>Where You&#8217;ll Stay</h1>
</header>
<figure class="frame focal">
<img class="inner" src="i/lodge.jpg" alt="" title="..."/>
</figure>
<section class="main">
<!-- description of accommodations -->
</section>
<aside class="extra">
<ul class="gallery">
<li>
<figure class="frame">
<img class="inner" src="i/room.jpg" alt="" title="..."/>
</figure>
</li>
...
</ul>
</aside>
</article>
.frame {
margin: 0 auto 40px;
}
.focal {
margin: 0 20px 25px 30px;
}
/* =Typography */
img {
display:block;
}
/* =Layout */
@media screen {
.frame .inner {
border: 10px solid;
}
}
/* =Color */
.frame .inner {
background-color: rgb(227, 222, 215);
border-color: rgb(227, 222, 215);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment