<?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>Lulu Blog &#187; Howto</title>
	<atom:link href="http://www.lulu.com/blog/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lulu.com/blog</link>
	<description>Adventures in Self-Publishing</description>
	<lastBuildDate>Thu, 02 Feb 2012 22:30:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Customizing the Mini-Storefront with CSS</title>
		<link>http://www.lulu.com/blog/2008/03/07/customizing-the-mini-storefront-with-css/</link>
		<comments>http://www.lulu.com/blog/2008/03/07/customizing-the-mini-storefront-with-css/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 20:39:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[mini-storefronts]]></category>
		<category><![CDATA[storefronts]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://lulublog.com/2008/03/07/customizing-the-mini-storefront-with-css/</guid>
		<description><![CDATA[One of the really useful things about the new HTML/Javascript Mini-Storefront Widget is that it generates your storefront display in good old-fashioned HTML. As a result, you can use Cascading Style Sheets (CSS) to customize the display of your storefront. This guide will give you an overview of the customization options available, and demonstrate how [...]]]></description>
			<content:encoded><![CDATA[<p>One of the really useful things about the new HTML/Javascript Mini-Storefront Widget is that it generates your storefront display in good old-fashioned HTML. As a result, you can use Cascading Style Sheets (CSS) to customize the display of your storefront. This guide will give you an overview of the customization options available, and demonstrate how to use them. You don&#8217;t need to be a CSS guru, but knowing a little about CSS will help (<a href="http://www.w3schools.com/css/css_intro.asp">learn more about CSS</a>).</p>
<p><span id="more-24"></span></p>
<h4>CSS Selectors</h4>
<p>The JS Mini-Storefront provides a number of CSS selectors that you can use as hooks to add styling to your mini-storefront.</p>
<dl>
<dt><code>#lulu-storefront</code></dt>
<dd>This is the div containing all of the storefront widget&#8217;s components.</dd>
<dt><code>#lulu-storefront-title</code></dt>
<dd>This is an h1 tag that lists your name and storefront title, and links back to your storefront.</dd>
<dt><code>#lulu-storefront-items</code>, <code>.lulu-item</code></dt>
<dd>This is a ul list that contains the list of your content, each piece of content is contained in an li tag with the class lulu-item.</dd>
<dt><code>.lulu-item-thumbnail</code>, <code>.lulu-item-title</code>, <code>.lulu-item-description</code></dt>
<dd>These classes control the appearance of each content thumbnail, title and description.</dd>
<dt><code>.lulu-item-buynow</code></dt>
<dd>This is the styling for the &#8216;Buy Now&#8217; link for each item.</dd>
</dl>
<h4>Example</h4>
<p>Our goal for this example is to make the Mini-Storefront blend in with the look of our <a href="http://stores.lulu.com/demostorefront">example website</a>.</p>
<p><a href="http://lulubeta.files.wordpress.com/2008/03/example-storefront.jpg" title="example-storefront.jpg"><img src="http://lulubeta.files.wordpress.com/2008/03/example-storefront.jpg" alt="example-storefront.jpg" /></a></p>
<p>We&#8217;ll be changing the colors used in the storefront, tweaking the fonts, and finally make the layout look a little nicer. First, let’s take a look at what it looks like before we start:</p>
<p><a href="http://lulubeta.files.wordpress.com/2008/03/widget-basic.jpg" title="widget-basic.jpg"><img src="http://lulubeta.files.wordpress.com/2008/03/widget-basic.jpg" alt="widget-basic.jpg" /></a></p>
<h4>Changing the Colors</h4>
<p>Our example site has some global colors for links, body text, and headers we want to use:</p>
<pre>
body {
	background-color: #e6e2af;
	color: #24231b;
}

a {
	color: #046380;
}

h1, h1 a, h2 {
	color: #a7a37e;
}

h2 a {
	color: #4b4938;
}</pre>
<h4>Changing the Fonts</h4>
<p>We&#8217;re going to use Verdana for our body text, and Helvetica Neue (or Arial if we can&#8217;t find Helvetica Neue) for our headers.</p>
<pre>
body {
	font-family: verdana, sans-serif;
}

h1, h2 {
	font-family: “helvetica neue”, arial, sans-serif;
}</pre>
<h4>Changing the Layout</h4>
<p>Getting the layout to look right will take a little bit more work. We&#8217;ll start with lining up the thumbnails and the descriptions. To do this, we need to float the thumbnails to the left:</p>
<pre>
.lulu-item-thumbnail {
	float: left;
}

.lulu-item {
	overflow: hidden;
}</pre>
<p>That&#8217;s better, but we want to straighten things up a bit. So we&#8217;ll nudge the book descriptions over a bit:</p>
<pre>
.lulu-item-title, .lulu-item-description, .lulu-item-buynow {
	margin-left: 120px;
	display: block;
}</pre>
<p>Oh, and we want to get rid of those annoying bullets in the list of books:</p>
<pre>
.lulu-item {
	list-style-type: none;
}</pre>
<p>Here&#8217;s what it looks like with our CSS:</p>
<p><a href="http://lulubeta.files.wordpress.com/2008/03/widget-example.jpg" title="widget-example.jpg"><img src="http://lulubeta.files.wordpress.com/2008/03/widget-example.jpg" alt="widget-example.jpg" /></a></p>
<p><a href="http://www.lulu.com/items/volume_63/2166000/2166028/1/preview/ministore-example1.html">Download Example 1</a></p>
<p>You can also download a slightly more complex example where I&#8217;ve gone through and cleaned things up a bit.</p>
<p><a href="http://lulubeta.files.wordpress.com/2008/03/widget-fancy.jpg" title="widget-fancy.jpg"><img src="http://lulubeta.files.wordpress.com/2008/03/widget-fancy.jpg" alt="widget-fancy.jpg" /></a></p>
<p><a href="http://www.lulu.com/items/volume_63/2166000/2166044/1/preview/ministore-example2.html">Download Example 2</a></p>
<p>I hope these get you on your way to customizing the Lulu Mini-Storefront! Feel free to share any ideas, tips, or ask questions in the comments of this post.</p>
<p>Jackson Fox, User Experience Designer</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lulu.com/blog/2008/03/07/customizing-the-mini-storefront-with-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

