<?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>Library Web Chic &#187; CSS</title>
	<atom:link href="http://www.librarywebchic.net/wordpress/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.librarywebchic.net/wordpress</link>
	<description>Resources for librarians who are interested in the application of web design and technologies in libraries</description>
	<lastBuildDate>Thu, 15 Jul 2010 20:13:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>God I love Firebug</title>
		<link>http://www.librarywebchic.net/wordpress/2009/04/29/god-i-love-firebug/</link>
		<comments>http://www.librarywebchic.net/wordpress/2009/04/29/god-i-love-firebug/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 15:53:13 +0000</pubDate>
		<dc:creator>Karen</dc:creator>
				<category><![CDATA[General Thoughts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[firebug]]></category>

		<guid isPermaLink="false">http://www.librarywebchic.net/wordpress/?p=1211</guid>
		<description><![CDATA[So I&#8217;ve been tweaking our intranet instance of Drupal this week trying to make improvements to the interface and display. In particular I&#8217;ve been customizing several templates related to the Event Module. I don&#8217;t like how the calendars display because I think they include some redundant information and don&#8217;t use the space effectively. The problem [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been tweaking our intranet instance of Drupal this week trying to make improvements to the interface and display. In particular I&#8217;ve been customizing several templates related to the Event Module. I don&#8217;t like how the calendars display because I think they include some redundant information and don&#8217;t use the space effectively. The problem is that when you are changing templates in Drupal particular CSS related changes, lots of potential files come into play. This is in part due to the modular construction of Drupal. So when a page loads several stylesheets come into play: the ones from all the modules you have installed, and the stylesheet from your theme. While this is great in theory because it makes the styles build on top of one another, it can make debugging a little challenging because you&#8217;ve got several stylesheet to look at. The solution? Most Drupal developers will tell you to use the Devel module. This is a fabulous module which is really helpful when you are developing in Drupal, particularly for creating themes or creating/changing templates, it is sort of slight overkill for simple CSS debugging.</p>
<p>A much better solution and one which is multi-purpose is to use Firebug. Firebug is a Firefox extension which helps you to test and debug CSS and javascript. Using the Inspect button, you can select a particular element on the screen and see what styles are being applyed to it and what files contains those styles. You can also dynamically turn on or off styles to see if this affects the change you want without having to edit the CSS. Its a fast and efficient way to debug stuff. It has many other features that my developers love but for me when they showed me the CSS debugging I was in heaven.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.librarywebchic.net/wordpress/2009/04/29/god-i-love-firebug/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Creating Print Stylesheets for Your Blog</title>
		<link>http://www.librarywebchic.net/wordpress/2006/04/06/creating-print-stylesheets-for-your-blog/</link>
		<comments>http://www.librarywebchic.net/wordpress/2006/04/06/creating-print-stylesheets-for-your-blog/#comments</comments>
		<pubDate>Thu, 06 Apr 2006 17:56:56 +0000</pubDate>
		<dc:creator>Karen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[print-stylesheets]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.librarywebchic.net/wordpress/2006/04/06/creating-print-stylesheets-for-your-blog/</guid>
		<description><![CDATA[
I spent part of today writing print stylesheets for our Movable Type weblogs and my own personal blog. One thing I think is crucial with print stylesheets is that less is more. This means a couple of things when you are trying to optimize the page for print. First, that stylesheet you have been using [...]]]></description>
			<content:encoded><![CDATA[<p>
I spent part of today writing print stylesheets for our Movable Type weblogs and my own personal blog. One thing I think is crucial with print stylesheets is that less is more. This means a couple of things when you are trying to optimize the page for print. First, that stylesheet you have been using all along needs to be set up so that it is for screen only. This means in Movable Type you take and change this:</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;&lt;$MTBlogURL$&gt;styles-site.css&#8221; type=&#8221;text/css&#8221; /&gt;<br />
to this<br />
&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;&lt;$MTBlogURL$&gt;styles-site.css&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt;
</p>
<p>
If you don&#8217;t do this you will be fighting your screen styles when you create your print stylesheet. This is bad and makes lots more work. Having the stylesheet only be for media-type &#8220;screen&#8221; is the default in WordPress so you don&#8217;t have to worry about this. Once you have done this you can start formatting the print version from scratch. Without a print stylesheet you&#8217;ll get a very plain looking page. THIS IS OKAY! In fact its what you want so that you can add minimal formatting to make your page look good when it is printed.The most important thing you will want to do in your print stylesheet is &#8220;hide&#8221; the things on your page that you don&#8217;t want to show up when you print. For example you might not want to show your banner or navigation when you print. To do this you use a CSS property called &#8220;display&#8221;. The display property is somewhat difficult to explain what you need to know is that can be used to hide things on a web page. So set it to {display: none;} which basically means &#8220;don&#8217;t display this element&#8221;. You can do other helpful things like making the background white and all the text black, and setting up rules for page breaks. Below is my print stylesheet for this blog.
</p>
<p>
<code> /* Print Style Sheet */<br />
/* added print stylesheet for LWC */</code></p>
<p>@media print {<br />
body { background:white; color:black; margin:0 }<br />
#sidebar {display:none;}<br />
#footer {display:none;}<br />
.navigation {display:none;}<br />
#commentform { display:none }<br />
a {color:#000000;}</p>
<p>/*Some rules about Page breaks */<br />
h1, h2, h3, h4, h5, h6 { page-break-after:avoid;<br />
page-break-inside:avoid }<br />
img { page-break-inside:avoid;<br />
page-break-after:avoid; }<br />
blockquote, table, pre { page-break-inside:avoid }<br />
ul, ol, dl  { page-break-before:avoid }<br />
}
</p>
<p>
This is a <em>really</em> simple print stylesheet but it does gets the job done. It didn&#8217;t take me long to create and it makes life a lot easier for users when they print my site. The downside is that if you want a screen shot of my site you are going to actually have to take one rather than printing the site or sending it to PDF. I think that this is okay though. Based on what I&#8217;m seeing in my server log files. Few people are visiting my site in person. Which I interpret as meaning that content is king and my design doesn&#8217;t matter as much. If I saw different traffic in my server logs I might decide to do things a little differently. Because maybe people would want to print what they were seeing not just the content. This is an issues you need to be sensitive to when you create a print stylesheet. However, my opinion is if you have a content intensive site that having a print stylesheet which drastically changes how the pages looks is okay. Especially if your site doesn&#8217;t print well otherwise. However, as with any design decisions you should get feedback from your users when making this type of decision.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.librarywebchic.net/wordpress/2006/04/06/creating-print-stylesheets-for-your-blog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
