<?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>Greg Smart &#187; CSS</title>
	<atom:link href="http://www.gregorysmart.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gregorysmart.com</link>
	<description>Web development, modx, css, standards, managed web hosting, business class email solutions.</description>
	<lastBuildDate>Sun, 15 Jan 2012 06:33:59 +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>Create a User Config Page in MODx</title>
		<link>http://www.gregorysmart.com/2010/01/08/create-a-user-config-page-in-modx/</link>
		<comments>http://www.gregorysmart.com/2010/01/08/create-a-user-config-page-in-modx/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 20:29:58 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[global variables]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=774</guid>
		<description><![CDATA[I have always wished that MODx posessed a tool to allow an end user some direct configuration control over their site. I realize that it is possible to grant users access to HTML chunks, but this is not within the comfort zone of most non-tech users. After playing around with it in our sandbox over [...]]]></description>
			<content:encoded><![CDATA[<p><img class="float-right" src="http://www.gregorysmart.com/images/modx_snippet.jpg" alt="Modx" />I have always wished that MODx posessed a tool to allow an end user some direct configuration control over their site. I realize that it is possible to grant users access to HTML chunks, but this is not within the comfort zone of most non-tech users. After playing around with it in our sandbox over the last few days I have found that it is not only possible, but relatively straight forward to create.</p>
<h2>Create Template</h2>
<p>In my sample site I created a template and called it <strong>Config</strong>. I then assigned it to my document ID of 1 and named my document <strong>Site Configuration</strong>. One by-product of using the number 1 document is that you will have to go to Tool/Configuration/Site and set you <strong>Site start</strong> to an ID of 2. I also unchecked <strong>Show in menu</strong> and <strong>Searchable</strong> in my number 1 document. With all of these points taken care of the config page should be well outside the ordinary flow of your site.</p>
<h2>Create Template Variables</h2>
<p>By utilizing a dedicated template we can now hook <a title="Template Variables" rel="external" href="http://svn.modxcms.com/docs/display/MODx096/Template+Variables">Template Variables (TV)</a> into our document. Create your TVs and assign them to the <strong>Config</strong> template.</p>
<p>In the most straightforward sense you can use this for client controlled global information like telephone numbers and addresses, but after getting things going I realized you could also use a dynamic CSS document from within MODx (a later post) and allow the end user to control many of the design components of their site. I tested this out on things like a header image and background colors.</p>
<p>In my testing I was exclusively using the <a title="GetField snippet" rel="external" href="http://modxcms.com/extras/package/173">GetField snippet</a> (see below) to call in my variables from within either my site template or from my dynamic CSS document:</p>
<pre>background: [[GetField? &amp;docid=`1` &amp;field=`backgroundColor`]];</pre>
<p>In this particular TV I used a <strong>DropDown List Menu</strong> to assign Hex codes to colors for example:</p>
<pre>Red==#FF0000||Green==#00FF00||Blue==#0000FF</pre>
<p><del>After putting all this together I did wonder if the addition of a color picker that generates Hex color codes might not be a nice addition to the <strong>Input Type</strong> of TVs in MODx?</del> (I was reminded by Nick (MgrMgr dev) in the comments below that: &#8220;ManagerManager includes a color picker widget to allow you to pick any hex color value from a TV, if you want to expand it beyond a predefined list.&#8221;)</p>
<h2>Clean It Up</h2>
<p>Now, you can use the <a title="ManagerManager snippet" rel="external" href="http://modxcms.com/extras/package/?package=255">ManagerManager snippet</a> to remove any extraneous fields from the <strong>Site Configuration</strong> document. In this example I removed all of them except my newly created TVs. Now, when my end user goes into their configuration they only see the appropriate configuration fields listed out: Telephone, Address, City, State, Zip, Background Color, Header Image, etc..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2010/01/08/create-a-user-config-page-in-modx/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Fluid Grids and Images</title>
		<link>http://www.gregorysmart.com/2009/04/20/fluid-grids-and-images/</link>
		<comments>http://www.gregorysmart.com/2009/04/20/fluid-grids-and-images/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 13:27:21 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=462</guid>
		<description><![CDATA[About 6 weeks ago I read the Ethan Marcotte article Fluid Grids and was notably impressed. For me, this was a technique that really changed things, got me thinking creatively on new ways to approach layout. So much so that I began going around the office telling everyone about it. As you can imagine they [...]]]></description>
			<content:encoded><![CDATA[<p>About 6 weeks ago I read the <a href="http://alistapart.com/articles/fluidgrids" rel="external" title="Fluid Grids">Ethan Marcotte article Fluid Grids</a> and was notably impressed. For me, this was a technique that really changed things, got me thinking creatively on new ways to approach layout. So much so that I began going around the office telling everyone about it. As you can imagine they were as excited as I was (note the sarcasm). There was one rather large caveat to this technique though, it didn&#8217;t allow for the appropriate resizing of images as the design scales up or down.</p>
<h4>The Solution: Fluid Images</h4>
<p>I haven&#8217;t developed a design utilizing this solution yet (<a href="http://alistapart.com/articles/fluidgrids" rel="external" title="Fluid Images">Ethan Marcotte article Fluid Images</a>), but the test cases look solid.</p>
<p>If you are a developer and you haven&#8217;t looked into these articles yet I encourage you to, this is a nice piece of work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2009/04/20/fluid-grids-and-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Development Exercise</title>
		<link>http://www.gregorysmart.com/2009/04/09/development-exercise/</link>
		<comments>http://www.gregorysmart.com/2009/04/09/development-exercise/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 13:13:55 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=440</guid>
		<description><![CDATA[Chris Coyier posted some really good advice over at CSS Tricks. Although I haven&#8217;t gone through this process in a while, there was a time where I built site after site that never saw the light of day. I usually had the deluded notion that each would someday be used, but looking back I can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://css-tricks.com/excercise-to-get-better-at-web-design/" rel="external" title="Exercise to Get Better at Web Design">Chris Coyier</a> posted some really good advice over at CSS Tricks. Although I haven&#8217;t gone through this process in a while, there was a time where I built site after site that never saw the light of day. I usually had the deluded notion that each would someday be used, but looking back I can see that there was definitely a value in this as a learning exercise. I believe very strongly that the bulk of web development skills can&#8217;t be effectively learned in a classroom. It is just one of those things that you must be willing to roll up your sleeves on day after day. This is especially true if you are wanting to learn the ins-and-outs of CSS. Break it, fix it, repeat&#8230;.</p>
<blockquote>
<ol>
<li>Find a web site you really love the design of. Maybe browse a design gallery.</li>
<li>Open up your design program of choice and try to copy it identically*. Take a full page screenshot of the site for reference and quick overlays.</li>
<li>During this copying process, there will be many opportunities to put your own spin on the design and make it your own.</li>
<li>Convert your final design into HTML/CSS. If you get stuck, ask for help.</li>
<li>Repeat.</li>
</ol>
</blockquote>
<p>If you ever need help finding good, free CSS based templates to start with I highly recommend <a href="http://www.oswd.org/" rel="external" title="OSWD">OSWD</a> and/or <a href="http://www.opendesigns.org/" rel="external" title="Open Designs">Open Designs</a>. OSWD used to be the happening community for this type of development, but hasn&#8217;t been active in over a year. They still have a great repository of designs housed there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2009/04/09/development-exercise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pleth Site Redesign Launched</title>
		<link>http://www.gregorysmart.com/2009/02/21/pleth-site-redesign-launched/</link>
		<comments>http://www.gregorysmart.com/2009/02/21/pleth-site-redesign-launched/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 15:18:18 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Pleth]]></category>
		<category><![CDATA[Standards Compliance]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=294</guid>
		<description><![CDATA[Pleth launched it&#8217;s new site today. This has been many months in the making and includes a newly redesigned logo created by Melissa Powell over at Powell Creative, Inc. in Jonesboro. The site is a component of an overall rebranding effort designed to help Pleth focus in on it&#8217;s core business lines which are Web [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gregorysmart.com/images/pleth_seal.jpg" alt="Pleth, LLC" class="float-left" />Pleth launched it&#8217;s new site today. This has been many months in the making and includes a newly redesigned logo created by Melissa Powell over at Powell Creative, Inc. in Jonesboro. The site is a component of an overall rebranding effort designed to help Pleth focus in on it&#8217;s core business lines which are Web Development, Managed Hosting, and Email Services. The site HTML and CSS fully validates. Go take a look at it: <a href="http://www.pleth.com" rel="external">www.pleth.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2009/02/21/pleth-site-redesign-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MODx Snippet, CSS and Yahoo Weather Feed</title>
		<link>http://www.gregorysmart.com/2008/09/02/modx-snippet-css-and-yahoo-weather-feed/</link>
		<comments>http://www.gregorysmart.com/2008/09/02/modx-snippet-css-and-yahoo-weather-feed/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 21:56:07 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[MODx]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[weather feed]]></category>
		<category><![CDATA[weather rss]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=44</guid>
		<description><![CDATA[I recently created a MODx snippet using a technique described on CSS-Tricks. This little bit of PHP code calls in the Yahoo Weather RSS feed and allows you to generate output that can be styled using CSS and your own icons. You can modify the first line of the snippet below to output weather specific [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gregorysmart.com/images/weather_map.jpg" alt="Weather Feed" class="float-left" />I recently created a MODx snippet using a technique described on <a href="http://css-tricks.com/using-weather-data-to-change-your-websites-apperance-through-php-and-css/" rel="external">CSS-Tricks</a>. This little bit of PHP code calls in the Yahoo Weather RSS feed and allows you to generate output that can be styled using CSS and your own icons. You can modify the first line of the snippet below to output weather specific to your zip code. </p>
<p>I first created the snippet &#8216;Weather&#8217; (<a href="http://www.gregorysmart.com/downloads/weather.txt"> Here is the snippet code.</a>), then simply placed the snippet call on the appropriate page: [!Weather?!]. I then used my CSS document to style the output and created containers that would display the appropriate class (<a href="http://www.gregorysmart.com/downloads/weather.css"> Here is my CSS document</a>). I created a div tag that carried my icon as a background image. I figured if Yahoo generated a tag that was unaccounted for in my CSS then my scheme would continue to display the appropriate text while leaving the adjacent background image undisplayed (as opposed to the little red Xs if I had used an image tag). Since I am using <a href="http://www.gregorysmart.com/downloads/weather.zip">transparent gifs</a>, I figured no one would be the wiser should this occur. Gif&#8217;s were derived from <a href="http://www.nordicweather.net/index.php?sivu=90&#038;ic=6&#038;lang=en" rel="external">Nordic Weather</a>.</p>
<p>You can see it in action on the <a href="http://www.mybatesville.org" rel="external">Batesville, Arkansas Area Chamber of Commerce</a> website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2008/09/02/modx-snippet-css-and-yahoo-weather-feed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Control &amp; the CSS Reset</title>
		<link>http://www.gregorysmart.com/2008/04/25/the-css-reset/</link>
		<comments>http://www.gregorysmart.com/2008/04/25/the-css-reset/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 17:17:22 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[css reset]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/?p=27</guid>
		<description><![CDATA[I have been reading a couple of blog posts this morning which reflect two very polar stances on the use of a CSS reset document. A CSS reset document is utilized to strip away all margins and padding, incluging the default page form elements. Effectively leaving you with a blank, style sheet, slate.  Jonathon Snook&#8217;s article, &#8220;No CSS Reset&#8220;, explores why he believes the [...]]]></description>
			<content:encoded><![CDATA[<p>I have been reading a couple of blog posts this morning which reflect two very polar stances on the use of a CSS reset document. A CSS reset document is utilized to strip away all margins and padding, incluging the default page form elements. Effectively leaving you with a blank, style sheet, slate.  Jonathon Snook&#8217;s article, &#8220;<a rel="external" href="http://snook.ca/archives/html_and_css/no_css_reset/">No CSS Reset</a>&#8220;, explores why he believes the use of a CSS reset document is the antithesis of many of the concepts held near and dear by developers within the &#8220;Standards Community&#8221;. I have to say that I don&#8217;t completely disagree with him, particularly in the &#8220;Working with Nothing&#8221; argument he poses.</p>
<blockquote><p>One of the principles I took away from the Web Standards community was the concept that pixel perfect precision across the various rendering engines was impractical and a remnant of the table-based layouts of yesteryear. With CSS and progressive enhancement, it was okay that things might look a little different from one browser to the next because of variations in what they supported.</p></blockquote>
<p>Eric Meyer&#8217;s well written article, &#8220;<a title="Eric Meyer" rel="external" href="http://meyerweb.com/">Crafting Ourselves</a>&#8220;, doesn&#8217;t directly advocate the practice, but rather defends it as a legitimate tool of the web design craft.</p>
<blockquote><p>I’m not saying that craftsmen/craftswomen are those people who reject the use of common tools, of course. I’m saying that they use the tools that fit them best and modify (or create) tools to best fit them, applying their skills and knowledge of their craft to make those decisions. It’s much the same in the world of programming. You can’t identify a code craftsman by whether or not they use this framework or that language. You can identify them by how they decide which framework or language to use, or not use, in a given situation.</p></blockquote>
<p>As I review both of these posts I find myself intrigued by the use of a CSS reset document. This is actually the first occasion that I have heard of it. I believe that the crux of Snook&#8217;s argument lies in the fact that the &#8220;Standards Community&#8221; had at one time assumed the position that, &#8220;the concept that pixel perfect precision across the various rendering engines was impractical and a remnant of the table-based layouts of yesteryear&#8221;. While I have, in the past, subscribed to this line of thought it was derived more from practicality than preference. Simply stated, it was more trouble than it was worth to try and control inconsistent cross-browser rendering too tightly.</p>
<p>Will I attempt to utilize a CSS reset document in the future? Absolutely. As I go through the site design process I frequently have the conversation with my clients about browser rendering inconsistencies and why they may see rendering disparities on their end. Eventually they acquiesce to this reality (what choice do they really have?). As I move forward I am hopeful that I may recapture this modicum of design control I once relinquished for the cause of standards compliance.</p>
<h4>Eric Meyer&#8217;s Reset CSS</h4>
<blockquote><p>/* v1.0 | 20080212 */</p>
<p>html, body, div, span, applet, object, iframe,<br />
h1, h2, h3, h4, h5, h6, p, blockquote, pre,<br />
a, abbr, acronym, address, big, cite, code,<br />
del, dfn, em, font, img, ins, kbd, q, s, samp,<br />
small, strike, strong, sub, sup, tt, var,<br />
b, u, i, center,<br />
dl, dt, dd, ol, ul, li,<br />
fieldset, form, label, legend,<br />
table, caption, tbody, tfoot, thead, tr, th, td {<br />
margin: 0;<br />
padding: 0;<br />
border: 0;<br />
outline: 0;<br />
font-size: 100%;<br />
vertical-align: baseline;<br />
background: transparent;<br />
}<br />
body {<br />
line-height: 1;<br />
}<br />
ol, ul {<br />
list-style: none;<br />
}<br />
blockquote, q {<br />
quotes: none;<br />
}<br />
blockquote:before, blockquote:after,<br />
q:before, q:after {<br />
content: &#8221;;<br />
content: none;<br />
}</p>
<p>/* remember to define focus styles! */<br />
:focus {<br />
outline: 0;<br />
}</p>
<p>/* remember to highlight inserts somehow! */<br />
ins {<br />
text-decoration: none;<br />
}<br />
del {<br />
text-decoration: line-through;<br />
}</p>
<p>/* tables still need &#8216;cellspacing=&#8221;0&#8243;&#8216; in the markup */<br />
table {<br />
border-collapse: collapse;<br />
border-spacing: 0;<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2008/04/25/the-css-reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure CSS image popups</title>
		<link>http://www.gregorysmart.com/2008/02/11/pure-css-image-popups/</link>
		<comments>http://www.gregorysmart.com/2008/02/11/pure-css-image-popups/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 16:57:28 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.gregorysmart.com/2008/02/11/pure-css-image-popups/</guid>
		<description><![CDATA[I was tasked with creating two, small &#8221;bookend&#8221; sites: Cullum Seeds and JWray Seeds. My graphic designer wanted the mouse over effect you see on the site navigation. In the past I have used either javascript or Flash solutions for mouseover effects in navigation, but really wanted to use a pure CSS solution. I thought I [...]]]></description>
			<content:encoded><![CDATA[<p>I was tasked with creating two, small &#8221;bookend&#8221; sites: <a href="http://www.cullumseeds.com/" rel="external">Cullum Seeds</a> and <a href="http://www.jwrayseeds.com/" rel="external">JWray Seeds</a>. My graphic designer wanted the mouse over effect you see on the site navigation. In the past I have used either javascript or Flash solutions for mouseover effects in navigation, but really wanted to use a pure CSS solution. I thought I had seen a solution a while back on Eric Meyer&#8217;s site, and sure enough, here it is: <a href="http://meyerweb.com/eric/css/edge/popups/demo2.html" rel="external">the solution</a>. It&#8217;s not exactly a cutting edge solution, but I thought it was worth sharing.</p>
<p>I have tested this in multiple Windows browsers, including: IE6, IE7, Firefox, and Opera. In Xandros browsers Firefox and Opera. In Apple browsers Firefox, Safari, and SeaMonkey. The only browser that seems to have trouble with this particular effect is the Windows IE6 browser. Despite the defect the site stills functions correctly, is lightly traveled and since IE6 use is on the decline I decided this was something that could be lived with, at least until I come across a better supported solution. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gregorysmart.com/2008/02/11/pure-css-image-popups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

