<?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>CoryMathews.com &#187; CSS</title>
	<atom:link href="http://corymathews.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://corymathews.com</link>
	<description>Things I should remember and then some...</description>
	<lastBuildDate>Wed, 04 Aug 2010 18:32:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>List Images</title>
		<link>http://corymathews.com/16/list-images/</link>
		<comments>http://corymathews.com/16/list-images/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 21:59:17 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Lists]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=16</guid>
		<description><![CDATA[In CSS List Images are such a simple topic that I have seen overlooked over and over. There is not much to it at all. Just one line of css. Example ul { list-style-image:url(picName.jpg); } Done in one short line. This will simply make every un-ordered list have an image in place of the dot. [...]]]></description>
			<content:encoded><![CDATA[<p>In CSS List Images are such a simple topic that I have seen overlooked over and over. There is not much to it at all. Just one line of css.</p>
<p>Example</p>
<pre name="code" class="css">ul { list-style-image:url(picName.jpg); }</pre>
<p>Done in one short line. This will simply make every un-ordered list have an image in place of the dot. So then an un-ordered List in XHTML such as:<br />
<span id="more-16"></span></p>
<pre name="code" class="html">
<ul>
<li>List Item 1</li>
<li>List Item 1</li>
<li>List Item 1</li>
</ul>
</pre>
<p>would look like<br />
<img src="http://corymathews.com/wp-content/uploads/2009/01/imglist.jpg" alt="imglist" title="imglist" width="98" height="71" class="alignnone size-full wp-image-216" /></p>
<p>(Note my list image is <img src="http://corymathews.com/wp-content/uploads/2009/01/smile.jpg" alt="smile" title="smile" width="10" height="10" class="alignnone size-full wp-image-215" />)</p>
<p>The only problem with this is that every unordered list will use this image. To fix this we will give the unordered list a class name this way we get to choose which list will show the image and which will use the default dot.</p>
<p>CSS:</p>
<pre name="code" class="css">ul.imgList { list-style-image:url(picName.jpg); }</pre>
<p>XHTML</p>
<pre name="code" class="html">
<ul class="imgList">
<li>List Item 1</li>
<li>List Item 1</li>
<li>List Item 1</li>
</ul>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/16/list-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Images Within Form Fields</title>
		<link>http://corymathews.com/65/images-within-form-fields/</link>
		<comments>http://corymathews.com/65/images-within-form-fields/#comments</comments>
		<pubDate>Sat, 03 May 2008 14:08:17 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Forms]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=65</guid>
		<description><![CDATA[Sorry this tutorial has been moved and is now featured on osGuide.net. View the tutorial here.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">Sorry this tutorial has been moved and is now featured on <a href="http://www.osguide.net/">osGuide.net</a>.</p>
<p style="text-align: center;"><a href="http://www.osguide.net/Tutorials/tutorial.php?p=3"><br />
</a></p>
<h1 style="text-align: center;"><a href="http://www.osguide.net/Tutorials/tutorial.php?p=3">View the tutorial here.</a></h1>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/65/images-within-form-fields/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using CSS to Format Print Pages</title>
		<link>http://corymathews.com/46/using-css-to-format-print-pages/</link>
		<comments>http://corymathews.com/46/using-css-to-format-print-pages/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 22:28:52 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Print]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=46</guid>
		<description><![CDATA[The main problem addressed here is dealing with cross browser issues when using css style sheets to print. Recently at work one of the sites that we inherited, and now maintain, asked for me to change the way their website looks when it is being printed out. The site itself was using very basic css, [...]]]></description>
			<content:encoded><![CDATA[<p>The main problem addressed here is dealing with cross browser issues when using css style sheets to print.</p>
<p>Recently at work one of the sites that we inherited, and now maintain, asked for me to change the way their website looks when it is being printed out. The site itself was using very basic css, is still using tables for alignment, and has a flash header at the top of all the pages. I have never needed to stylize the way a web page prints so I was quite new to this. I did however know it could be done using an alternate css sheet.<br />
<span id="more-46"></span><br />
So I was off to search for my answers, I quickly came across 4 or 5 crappy attempts at explaining these alternate style sheets, and after piecing information together and some trial and error I managed to figured it out. Its turned out to be very simple for a basic site like the one I was editing. I could see how a much larger site such as my osguide.net would be a little tougher, and take longer. So that will wait until another day.</p>
<p>Regardless it all starts with a simple 1 line of code to call my new style sheet when the page is being printed:</p>
<pre name="code" class="css">&lt;link rel="stylesheet" type="text/css" media="print" href="print.css" /&gt;</pre>
<p>Its your normal call to an external CSS page except I changed the media to print, instead of screen.</p>
<p>That&#8217;s all fine and dandy, my new sheet is called only when I print the page out. Now the more annoying problems popped up, no background images were printed, as well as no flash. I expected the flash not be printed, but I figured it would print background images.</p>
<p>I did not want to print the navigation so I set the display for my navigation to none. The CSS for that is simple:</p>
<pre name="code" class="css">display:none;</pre>
<p>So my next goal is to get the flash to print. Up until now I have only been looking at the print preview in Opera, and so I decided it was time to take a look at in IE 7, Firefox 2 and Safari 3. IE 7 does print the flash, so does Firefox, but safari does not. This is definitely a large problem.</p>
<p>So I have Opera and Safari without a header, and IE 7 and FF with a header on the print previews. I am not one for CSS hacks, or alternate style sheets, so I had to come up with a different way to properly display my page.</p>
<p>I checked out a couple work-around&#8217;s using lists but they did not seem to work like they said it should&#8230; go figure. So I had to resort to a pretty lame workaround, until the browsers themselves get on the same page, or I find a better way to do this.</p>
<p>I ended up placing two new div tags. The first one around my flash header and the second around a new jpeg image right above my flash with a display of none.</p>
<p>So Now on my screen css I have a hidden image right above my flash, and then on the print css I hide my flash. This seems like a crappy work-around, but it works in all browsers without any css hacks.</p>
<p>My question now is does anyone else have a better way to do this without css hacks, or alternate style sheets? I know this can&#8217;t be the best way.</p>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/46/using-css-to-format-print-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Rounded Corners Layout</title>
		<link>http://corymathews.com/11/simple-rounded-corners-layout/</link>
		<comments>http://corymathews.com/11/simple-rounded-corners-layout/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 17:57:48 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=11</guid>
		<description><![CDATA[Sorry this tutorial has been moved and is now featured on osGuide.net. View the tutorial here.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">Sorry this tutorial has been moved and is now featured on <a href="http://www.osguide.net/">osGuide.net</a>.</p>
<p style="text-align: center;"><a href="http://www.osguide.net/Tutorials/tutorial.php?p=4"><br />
</a></p>
<p><a href="http://www.osguide.net/Tutorials/tutorial.php?p=4"></p>
<h1 style="text-align: center;">View the tutorial here.</h1>
<p></a></p>
<p style="text-align: center;"><a href="http://www.osguide.net/Tutorials/tutorial.php?p=4"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/11/simple-rounded-corners-layout/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
