<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Literary Spring Designs &#187; css</title>
	<atom:link href="http://blog.literaryspring.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.literaryspring.com</link>
	<description></description>
	<lastBuildDate>Wed, 22 Jun 2011 18:07:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Shades of Grey Layout Template</title>
		<link>http://blog.literaryspring.com/2010/09/shades-of-grey-layout/</link>
		<comments>http://blog.literaryspring.com/2010/09/shades-of-grey-layout/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 18:31:15 +0000</pubDate>
		<dc:creator>Rebecca</dc:creator>
				<category><![CDATA[designing a website]]></category>
		<category><![CDATA[freebies]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://www.blog.literaryspring.com/?p=768</guid>
		<description><![CDATA[Shades of Grey Layout Full size preview Shades of Grey Layout- right click save About the Layout Note: Internet Explorer users will not see the text shadows, box shadows, but minus these small differences the layout has been tested and &#8230; <a href="http://blog.literaryspring.com/2010/09/shades-of-grey-layout/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Shades of Grey Layout</h1>
<h2><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/09/layout30_prev.png" alt="Shades of Grey Layout" /></h2>
<p><a href="http://simplicity.literaryspring.com/layout30/index.html" target="_blank">Full size preview</a><br />
<a href="http://www.literaryspring.com/layout30.zip">Shades of Grey Layout- right click save</a></p>
<h1>About the Layout</h1>
<p><span id="more-768"></span></p>
<p>Note: Internet Explorer users will not see the text shadows, box shadows, but minus these small differences the layout has been tested and works in Firefox, Safari, and Internet Explorer 6.0 and above.</p>
<h1>Terms of Use</h1>
<ul>
<li>You may use the css3 layout linked to above with attribution (http://www.literaryspring.com).
</li>
<li>You may use up to 80% of the css without attribution.
</li>
<li>Layouts have a clean design in order to allow for the most customization and not overwhelm the content.
</li>
<li>Credits for the images are included on the layout.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.literaryspring.com/2010/09/shades-of-grey-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>B&amp;W Elastic CSS3 Layout</title>
		<link>http://blog.literaryspring.com/2010/06/css3layout/</link>
		<comments>http://blog.literaryspring.com/2010/06/css3layout/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 20:44:59 +0000</pubDate>
		<dc:creator>Rebecca</dc:creator>
				<category><![CDATA[designing a website]]></category>
		<category><![CDATA[freebies]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://www.blog.literaryspring.com/?p=559</guid>
		<description><![CDATA[Black and White Elastic CSS3 Layout Full size preview Elastic CCS3 Layout- right click save (see no below) About the Layout Note: Internet Explorer does not yet support css3 drop shadows. Otherwise the layout works in Firefox, Chrome, Safari, and &#8230; <a href="http://blog.literaryspring.com/2010/06/css3layout/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Black and White Elastic CSS3 Layout</h1>
<h2><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/09/layout27_prev_blog.png" alt="bw elastic layout preview" /></h2>
<p><a href="http://simplicity.literaryspring.com/layout27/index27.html" target="_blank">Full size preview</a><br />
<a href="http://www.literaryspring.com/layout27.zip">Elastic CCS3 Layout- right click save (see no below)</a></p>
<h1>About the Layout</h1>
<p><span id="more-559"></span></p>
<p>Note: Internet Explorer does not yet support css3 drop shadows. Otherwise the layout works in Firefox, Chrome, Safari, and Internet Explorer 6.0 and above.</p>
<h1>Terms of Use</h1>
<ul>
<li>You may use the css3 layout linked to above with attribution (http://www.literaryspring.com).
</li>
<li>You may use up to 80% of the css without attribution.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.literaryspring.com/2010/06/css3layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elastic Layout</title>
		<link>http://blog.literaryspring.com/2010/06/elastic-layout/</link>
		<comments>http://blog.literaryspring.com/2010/06/elastic-layout/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 00:37:43 +0000</pubDate>
		<dc:creator>Rebecca</dc:creator>
				<category><![CDATA[designing a website]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[freebies]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.blog.literaryspring.com/?p=550</guid>
		<description><![CDATA[Elastic CSS3 Layout Full size preview Elastic CCS3 Layout- right click save (see no below) Elastic CCS3 Layout with IMAGES- right click save (see note below)) About the Layout Note: Internet Explorer does not yet support css3 gradients, drop shadows, &#8230; <a href="http://blog.literaryspring.com/2010/06/elastic-layout/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Elastic CSS3 Layout</h1>
<h2><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/06/screencap_css3elastic1_prev.jpg" alt="withstandardbrowser"/></h2>
<p><a href="http://simplicity.literaryspring.com/layout25/index.html" target="_blank">Full size preview</a><br />
<a href="http://www.literaryspring.com/layout25.zip">Elastic CCS3 Layout- right click save (see no below)</a><br />
<a href="http://www.literaryspring.com/layout25_images.zip">Elastic CCS3 Layout with IMAGES- right click save (see note below))</a></p>
<h1>About the Layout</h1>
<p><span id="more-550"></span></p>
<p>Note: Internet Explorer does not yet support css3 gradients, drop shadows, and other components of the layout above. The first download is for a layout that will, thus, look significantly different in Internet Explorer. The second download is for a layout that uses images for gradients and, thus, the layout looks similar in Internet Explorer to the way it looks in standards compatible browsers (ie Firefox, Safari, Opera, etc)</p>
<h1>Terms of Use</h1>
<ul>
<li>You may use the css3 layout linked to above with attribution (http://www.literaryspring.com).
</li>
<li>You may use up to 80% of the css without attribution.
</li>
</ul>
<h2><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/06/screencap_css3elastic2_prev.jpg" alt="withie"/></h2>
]]></content:encoded>
			<wfw:commentRss>http://blog.literaryspring.com/2010/06/elastic-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Break It Down: Lengthy CSS</title>
		<link>http://blog.literaryspring.com/2010/05/long-css/</link>
		<comments>http://blog.literaryspring.com/2010/05/long-css/#comments</comments>
		<pubDate>Thu, 27 May 2010 22:57:07 +0000</pubDate>
		<dc:creator>Rebecca</dc:creator>
				<category><![CDATA[designing a website]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.blog.literaryspring.com/?p=536</guid>
		<description><![CDATA[Original Code The CSS listed below is a slight variation of the CSS I used for the quote box in this layout. As you can see the CSS that controls even a small part of the design can become quite &#8230; <a href="http://blog.literaryspring.com/2010/05/long-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Original Code</h1>
<p>The CSS listed below is a slight variation of the CSS I used for the quote box in <a href="http://simplicity.literaryspring.com/layout24/index.html">this layout</a>. As you can see the CSS that controls even a small part of the design can become quite lengthy. When you add in the rest of the typography and structure and the CSS can look overwhelming.</p>
<pre class="brush:css">
p.quotebox {
color: #ffc;
font-size: 3em;
font-family: Baskerville, Garamond, Palatino, Georgia, serif;
font-weight: bold;
text-align: center;
text-shadow: 2px 2px 2px #000;
background-color: #300;
border: solid 1px #333;
-moz-box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);
-webkit-box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);
box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
padding: 5px;
}
</pre>
<p><span id="more-536"></span></p>
<h1>Break It Down</h1>
<ul>
<li>CSS for the text color <code>color: #ffc;</code>
</li>
<li>CSS for the font-size: <code>font-size: 3em;</code>
</li>
<li>CSS for the font-family: <code>font-family: Baskerville, Garamond, Palatino, Georgia, serif;</code>
</li>
<li>CSS for the font-weight: <code>font-weight: bold;</code>
</li>
<li>CSS for aligning text: <code>text-align: center;</code>
</li>
<li>CSS for the text-shadow: <code>text-shadow: 2px 2px 2px #000;</code>
</li>
<li>CSS for the background color for the paragraph: <code>background-color: #300;</code>
</li>
<li>CSS for the border around the paragraph: <code>border: solid 1px #333;</code>
</li>
<li>CSS for the text shadow: <code>text-shadow: 2px 2px 2px #000;</code>
</li>
<li>CSS for the shadow around the paragraph box:<br />
<code>-moz-box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);<br />
-webkit-box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);<br />
box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);</code>
</li>
<li>CSS for making rounded edges around the paragraph box <code><br />
-moz-border-radius: 5px;<br />
-webkit-border-radius: 5px;</code>
</li>
<li>Code for the padding between the text and the edge of the box <code>padding: 5px</code>
</li>
</ul>
<h1>Only Use the CCS You Really Need</h1>
<h2>Taking Out the CSS3</h2>
<p>If you need to design a site that looks the same in all browsers you need to take out the CSS3 which is not yet universally supported most notably by Internet Explorer. Below is the CSS without the CSS3. While CSS3 has some wonderful uses the fact it exists does not mean one always needs to use it. Look at your design and decide whether it really does need a drop shadow for the box, a shadow for the text, and rounded corners. Having made quote boxes before in some case the CSS3 helps. In other cases a drop shadow can easily be eliminated without sacrificing clarity and for some designs sharper edges look better than round ones.</p>
<pre class="brush:css">
p.quotebox {
color: #ffc;
font-size: 3em;
font-family: Baskerville, Garamond, Palatino, Georgia, serif;
font-weight: bold;
text-align: center;
background-color: #300;
border: solid 1px #333;
padding: 5px;
}
</pre>
<h2>Reevaluate the Necessities</h2>
<ul>
<li>Does the font need to be bold or is the font you are using thick enough that you can remove <code>font-weight: bold</code>
</li>
<li>Should the text be aligned to the center? Sometimes in narrow columns left aligned text is better and, thus, you can leave out <code>text-align: center</code>.
</li>
<li>If all you want is a drop quote you do not need <code>background-color: #300;</code> or <code>border: solid 1px #333;</code>
</li>
<li>For the box shadow in the original code, rgba was used in order to adjust opacity. If you prefer hex and are not adjusting opacity then use hex.
</li>
</ul>
<h2>In Conclusion: Other Methods to Handle CSS</h2>
<p>Often the best design or the best design for an element is complicated and takes a substantial amount of CSS to accomplish. There are a lot of websites and it pays (often literally) to stand out. However, especially when you are starting out vast amounts of CSS can be intimidating. Comments in the CSS file help and the more experience you have the more you can easily find the specific CSS you needed. Clearly laid out CSS also helps. However, even with these additional tricks for both the design itself and your own sanity in dealing with the CSS it is a good idea to break down the CSS you have and only use what you actually need.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.literaryspring.com/2010/05/long-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Layout</title>
		<link>http://blog.literaryspring.com/2010/05/css3-layout/</link>
		<comments>http://blog.literaryspring.com/2010/05/css3-layout/#comments</comments>
		<pubDate>Wed, 26 May 2010 19:22:00 +0000</pubDate>
		<dc:creator>Rebecca</dc:creator>
				<category><![CDATA[designing a website]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.blog.literaryspring.com/?p=516</guid>
		<description><![CDATA[The Layout Full Layout View the CSS About the Layout This liquid layout does not include any images. Liquid layouts have the advantage that they adjust based on the size of the monitor. This layout uses css3 extensively. Internet Explorer &#8230; <a href="http://blog.literaryspring.com/2010/05/css3-layout/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1 class="center">The Layout</h1>
<h1 class="center"><img src="http://simplicity.literaryspring.com/layout24/screencap_websitetest_prev.jpg" alt="supportedlayout" /></h1>
<p><a href="http://simplicity.literaryspring.com/layout24/index.html">Full Layout</a><br />
<a href="http://simplicity.literaryspring.com/layout24/css3onlystyle.txt">View the CSS</a></p>
<h1>About the Layout</h1>
<p><span id="more-516"></span></p>
<p>This liquid layout does not include any images. Liquid layouts have the advantage that they adjust based on the size of the monitor.</p>
<p>This layout uses css3 extensively. Internet Explorer does not support css3 and while the basic structure works on Internet Explorer 6 and up some of the coloring and other styling elements will be different.</p>
<h2>Text Drop-Shadow</h2>
<pre class="brush:css">
#header h1 {font-size: 5em; text-shadow: 2px 2px 2px #000;}
#header h2 {font-size: 1.5em; text-shadow: 1px 1px 1px #999; }</pre>
<p>I adjusted the size of the text-shadow based on the size of the font and the comparative importance of emphasizing h1 (Website Title) vs h2 (Website Subtitle, Information, etc). I also adjusted the color of the text shadow. In most designs I use a gray text-shadow (#ccc or #999) rather than black (#000). However in this case the h1 headline benefited from the extra contrast. For h2 I made the text-shadow a similar color to the text color. If your text needs a text-shadow to help it stand out and using #000 does not work try using gray or a color more similar to text color.</p>
<p>Remember that Internet Explorer does not yet support css3 so if the text is completely unreadable without the text shadow you need to make the text stand out using a different method, use a different stylesheet for Internet Explorer, or accept the fact that some people will have trouble reading the text.</p>
<h2>Box Shadow</h2>
<pre class="brush:css">
-moz-box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);
-webkit-box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);
box-shadow: 5px 5px 0 rgba(72, 72, 72, .5);
padding: 5px 5px 5px 5px;
</pre>
<p>I used rgba rather than hex for the box shadow in order to vary the opacity (in this case to .5). Subtly can also be adjusted by choosing a moderate gray. To make it more natural choose a color that has a similar, but lighter warm or cool tone (ie a blue-gray shadow for a blue bordered image).</p>
<h2>Gradients</h2>
<pre class="brush:css">
background-image: -moz-linear-gradient(100% 100% 90deg,#8B5742,#5C3317);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#8B5742),to(#5C3317));
background-color: #300;
</pre>
<ul>
<li><code>90deg</code> sets the direction for the gradient and makes it go from top to bottom.
</li>
<li><code>background-color: #300</code> is used as a backup for browsers that do not support css3. I also chose to use a &#8216;web safe&#8217; color.
</li>
<li>If you want the gradient to be viewable on browsers that do not support css3 gradients you need to add <code> background-image: url(gradient.png)</code>. I chose not to and accept that some users will see the layout differently in order to create a layout without using any images.
</li>
<li>You can use RGB instead of Hex for gradients.
</li>
</ul>
<h2>Rounded Corners</h2>
<pre class="brush:css">
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
</pre>
<p>Slightly rounded corners are used in the navigation and in the quote in the right column because the more subtle feel of rounded corners fits the more subtle tone of the design.</p>
<h1 class="center">Layout in Internet Explorer 8 </h1>
<h1 class="center"><img src="http://simplicity.literaryspring.com/layout24/screencap_websitetest2_prev.jpg" alt="supportedlayout" /></h1>
<h1><a href="http://simplicity.literaryspring.com/css3layout_tut.pdf">Download the PDF</a></h1>
<h1>Terms of Use</h1>
<ul>
<li>You may use the css3 layout linked to above with attribution (http://www.literaryspring.com).
</li>
<li>You may use up to 80% of the css without attribution.
</li>
<li>You may not repost this post nor distribute the PDF file. Instead please direct people to this post.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.literaryspring.com/2010/05/css3-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Borders</title>
		<link>http://blog.literaryspring.com/2010/02/css-borders/</link>
		<comments>http://blog.literaryspring.com/2010/02/css-borders/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 19:17:02 +0000</pubDate>
		<dc:creator>Rebecca</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.blog.literaryspring.com/?p=316</guid>
		<description><![CDATA[CSS borders are a nice way to add a little something extra to a picture. The trick is to set the image apart from the rest of the article or post without the border overwhelming the image. Border Properties border-width: &#8230; <a href="http://blog.literaryspring.com/2010/02/css-borders/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>CSS borders are a nice way to add a little something extra to a picture. The trick is to set the image apart from the rest of the article or post without the border overwhelming the image.</p>
<h2>Border Properties</h2>
<ul>
<li> border-width: This is the width of your border (ie 5px)
</li>
<li>border-style: none (no border), solid, dotted, dashed, double, groove, ridge, inset, outset
</li>
<li>border-color: You can use a color name, hex value (ie #369), or RGB value (ie rgb(0,0,255))
</li>
<li>To make a border with different styles on each side use: border-top-style, border-right-style, border-bottom-style, border-left-style
</li>
</ul>
<p><span id="more-316"></span></p>
<h2>Thick Brown Border</h2>
<p><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/02/brownborder.jpg" alt="nameofimage" /></p>
<h3>The CSS</h3>
<pre class="brush:css">img.nameofclass {
border: 3px solid #300;
padding: 5px;
background: #630;
}</pre>
<p><em>The xhtml</em>: </p>
<pre class="brush:xhtml">
<img class="nameofclass" src="image.jpg" alt="nameofimage" />
</pre>
<h2>Blue Double Border</h2>
<p><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/02/doubleblueborder.jpg" alt="nameofimage" /></p>
<p><em>The css</em>: </p>
<pre class="brush:css">
img.nameofclass {
border: 5px double #399;
padding: 3px;
background: #9cc;
}</pre>
<p><em>The xhtml</em>: </p>
<pre class="brush:xhtml">
<img class="nameofclass" src="image.jpg" alt="nameofimage" /></pre>
<h2>Orange Inset Border</h2>
<p><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/02/orangeinsetborder.jpg" alt="nameofimage" /></p>
<p><em>The css</em>:</p>
<pre class="brush:css">
 img.nameofclass {
border: 5px inset #fc6;
padding: 3px;
background: #c30;
}
</pre>
<p><em>The xhtml</em>: </p>
<pre class="brush:xhtml">
<img class="nameofclass" src="image.jpg" alt="nameofimage" />
</pre>
<h2>Green Ridge Border</h2>
<p><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/02/greenborder.jpg" alt="nameofimage" /></p>
<p><em>The css</em>:</p>
<pre class="brush:css">
img.nameofclass {
border: 8px ridge #cf9;
padding: 2px 2px;
background: #063;
}
</pre>
<p><em>The xhtml</em>: </p>
<pre class="brush:xhtml">
<img class="nameofclass" src="image.jpg" alt="nameofimage" />
</pre>
<h2>Blue Variable Border</h2>
<p><img src="http://www.blog.literaryspring.com/wp-content/uploads/2010/02/blueborder.jpg" alt="nameofimage" /></p>
<p><em>The css</em>: </p>
<pre class="brush:css">
img.nameofclass {
border-top: 8px groove #399;
border-right: 5px solid #063;
border-bottom: 8px groove #399;
border-left: 5px solid #063;
padding: 2px;
background: #fff;
}
</pre>
<p><em>The xhtml</em>: </p>
<pre class="brush:xhtml">
<img class="nameofclass" src="image.jpg" alt="nameofimage" />
</pre>
<h2>How to use the code listed above</h2>
<ul>
<li>Replace &#8220;nameofclass&#8221; with whatever name you want to use for the type of images you want to have a particular border. If you wanted a certain border for all pictures of buildings you might use img.buildingpics. It is best not to use the name of the picture (ie TowerofLondon.jpg) unless you will only be using a specific border for one picture.
</li>
<li>&#8220;Name of Image&#8221; is usually the name of the file or a very <em>brief</em> description of it  (ie TowerofLondon)
</li>
<li>The xhtml will be used in the part of your document where you want the image with the border. On this page I used the xhtml in the body of the document in div with the main content just below the h2 heading.
</li>
<li> The CSS portion will go in your stylesheet.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.literaryspring.com/2010/02/css-borders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

