<?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>Webmaster-Source &#187; css</title>
	<atom:link href="https://www.webmaster-source.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Setting Up a LESS Workflow in Sublime Text</title>
		<link>https://www.webmaster-source.com/2013/08/28/setting-up-a-less-workflow-in-sublime-text/</link>
		<comments>https://www.webmaster-source.com/2013/08/28/setting-up-a-less-workflow-in-sublime-text/#comments</comments>
		<pubDate>Wed, 28 Aug 2013 11:16:17 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[LESS]]></category>
		<category><![CDATA[Sublime Text]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=5165</guid>
		<description><![CDATA[LESS has been a popular way to streamline your CSS-writing for a while now, but fitting it into your workflow isn&#8217;t always easy. Some designers use standalone applications like CodeKit or SimpLESS to compile their LESS files into browser-ready CSS, but I prefer a more integrated approach. Fortunately, Sublime Text—my personal favorite text editor has [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://lesscss.org/">LESS</a> has been a popular way to streamline your CSS-writing for a while now, but fitting it into your workflow isn&#8217;t always easy. Some designers use standalone applications like <a href="http://incident57.com/codekit/">CodeKit</a> or <a href="http://wearekiss.com/simpless">SimpLESS</a> to compile their LESS files into browser-ready CSS, but I prefer a more integrated approach. Fortunately, <a href="http://www.sublimetext.com/">Sublime Text</a>—my personal favorite text editor has several available extensions to build LESS support in.<span id="more-5165"></span></p>
<p>I will assume that you already have <a href="http://wbond.net/sublime_packages/package_control">Sublime Package Control</a> installed, since it is pretty much a given for Sublime Text users.</p>
<h3>Step 1: Adding Syntax Highlighting</h3>
<p>I can&#8217;t imagine why anybody <em>wouldn&#8217;t</em> want their LESS files to have the proper syntax highlighting, so you probably want to install the <strong>LESS-sublime</strong> package, which you can find in Sublime Package Control under &#8220;LESS.&#8221;</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="//www.webmaster-source.com/wp-content/uploads/2013/08/stless-install-package.png" alt="Install Package" width="600" height="70" class="aligncenter size-full wp-image-5166 imgborder" /></p>
<h3>Step 2: Installing LESSC</h3>
<p>Now you need to install the LESS compiler, but first you need to grab a couple of dependencies.</p>
<p>First, download and install <a href="http://nodejs.org/">Node.js</a>. NPM (Node Package Manager) should also be installed automatically, so now you should be ready to install LESSC. Simply run the following command:</p>
<pre class="brush: plain; title: ; notranslate">npm install -g less</pre>
<h3>Step 3: Installing a LESS Build System</h3>
<p>In order to have your LESS files compiled into CSS, you will want to install the <a href="https://github.com/berfarah/LESS-build-sublime">LESS-build</a> package. Once it&#8217;s properly set up, it adds a Build System for LESS, enabling you to process the files by pressing Control+B (Command+B for Mac users).</p>
<p>After you have installed the package, you need to do a little configuration.</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="//www.webmaster-source.com/wp-content/uploads/2013/08/stless-browse-packages.png" alt="Browse Packages" width="506" height="136" class="aligncenter size-full wp-image-5167 imgborder" /></p>
<ol>
<li>Open the package directory by typing &#8220;browse packages&#8221; into the command palette and selecting the LESS-build folder.</li>
<li>Run <code>changeLESSBuildType.bat</code> (Windows) or <code>changeLESSBuildType.sh</code> (Mac/Linux) to set the build mode. Pick option number two (&#8220;directory rewrite&#8221;) when prompted.</li>
<li>In your project, select &#8220;LESS&#8221; from the Tools &gt; Build System menu.</li>
</ol>
<h3>Step 4: Using Your New Setup</h3>
<p>To demonstrate how the finished setup works, I put together a quick project in Sublime Text. My simple <code>index.html</code> references <code>css/mysite.css</code> as its stylesheet. This is the compiled output of many LESS files, which are found in the <code>less</code> directory.</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="//www.webmaster-source.com/wp-content/uploads/2013/08/stless-st-overview.png" alt="Sublime Text LESS Overview" width="600" height="303" class="aligncenter size-full wp-image-5168 imgborder" /></p>
<p>The <code>less/mysite.less</code> file, which is compiled into <code>css/mysite.css</code> when I switch to it and press Command+B, looks like this:</p>
<pre class="brush: css; title: ; notranslate">
//Load Twitter Bootstrap

@import &quot;bootstrap/bootstrap.less&quot;;

//Additional styles would go here
</pre>
<p>It loads the LESS files that make up <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>, which are easily tweak-able, since all of the styles are split into different files by sensible categories. Then any styles placed after the import line would override Bootstrap&#8217;s if they conflicted, given CSS&#8217;s precedence rules.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2013/08/28/setting-up-a-less-workflow-in-sublime-text/feed/</wfw:commentRss>
		<slash:comments>125</slash:comments>
		</item>
		<item>
		<title>CSS Zen Garden Returns</title>
		<link>https://www.webmaster-source.com/2013/05/15/css-zen-garden-returns/</link>
		<comments>https://www.webmaster-source.com/2013/05/15/css-zen-garden-returns/#comments</comments>
		<pubDate>Wed, 15 May 2013 11:09:30 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=5095</guid>
		<description><![CDATA[It&#8217;s been ten years since CSS Zen Garden launched with its goal to excite and inspire people to build creative designs with the much more limited tools CSS offered at the time. A decade later, it&#8217;s back. Given how the CSS landscape has changed since the original CSS Zen Garden, it will be interesting to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been ten years since <a href="http://www.csszengarden.com/">CSS Zen Garden</a> launched with its goal to excite and inspire people to build creative designs with the much more limited tools CSS offered at the time. <a href="http://mezzoblue.com/archives/2013/05/07/10_years/">A decade later, it&#8217;s back.</a> Given how the CSS landscape has changed since the original CSS Zen Garden, it will be interesting to see what people create with the new requirements.</p>
<blockquote><p>So for the tenth anniversary, the Zen Garden is open for business once more. I’ve <a href="https://github.com/mezzoblue/csszengarden.com">thrown the codebase on Github</a>, given the dusty copy a refresh, started the conversion of the site to HTML5, and brought all of the existing designs kicking and screaming into the modern age. The work isn’t done yet, but it’s a darn sight closer to how we would build it these days. If you see an area that needs help, consider sending a patch. (Here’s the current <a href="https://github.com/mezzoblue/csszengarden.com/issues">list of issues</a> to resolve, for example.)</p></blockquote>
<p><a href="http://mezzoblue.com/archives/2013/05/07/10_years/">10 Years</a> [Mezzoblue]</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2013/05/15/css-zen-garden-returns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML and CSS: Develop with Tomorrow&#8217;s Standards Today by Brian P. Hogan</title>
		<link>https://www.webmaster-source.com/2013/04/03/html-and-css-develop-with-tomorrows-standards-today-by-brian-p-hogan/</link>
		<comments>https://www.webmaster-source.com/2013/04/03/html-and-css-develop-with-tomorrows-standards-today-by-brian-p-hogan/#comments</comments>
		<pubDate>Wed, 03 Apr 2013 11:04:49 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[(x)html]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=5045</guid>
		<description><![CDATA[I recently unearthed a review copy of a book that somehow got lost in the shuffle a couple of years ago, HTML5 and CSS3: Develop with Tomorrow&#8217;s Standards Today by Brian P. Hogan, which is too bad, since it&#8217;s one of the better books I&#8217;ve seen on the subject. It&#8217;s a comprehensive primer on the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright size-full wp-image-5046" alt="HTML5 and CSS3: Develop with Tomorrow's Standards Today" src="//www.webmaster-source.com/wp-content/uploads/2013/03/brianhogan-html5css3book.png" width="200" height="240" />I recently unearthed a review copy of a book that somehow got lost in the shuffle a couple of years ago,<a href="http://www.amazon.com/gp/product/1934356689/webmasterso0d-20"><em> HTML5 and CSS3: Develop with Tomorrow&#8217;s Standards Today</em></a> by Brian P. Hogan, which is too bad, since it&#8217;s one of the better books I&#8217;ve seen on the subject. It&#8217;s a comprehensive primer on the changes in HTML5 and CSS3. I enjoyed reading through the book after I unburied it last week.</p>
<p>It features a chapter on logically marking up page structure with the new semantic tags (<code>header</code>, <code>nav</code>, <code>section</code>, <code>article</code>, etc.), which explains the contexts they should be used in with a hands-on example of restructuring a blog without excessive divs. A lot of online tutorials make the error of suggesting the <code>aside</code> element for a blog sidebar, which the book helpfully points out as wrong. The <code>section</code> element is the proper tag for the job, as it denotes an arbitrary section of the page, whereas <code>aside</code> is for broken-out sections of your article content, such as pullquotes or diagrams.</p>
<p>From there the author moves on to some CSS3 tricks using newly-added selectors. He shows some simple methods to add zebra-striping to tables with pseudo-classes and add visible URLs to links via a print stylesheet with <code>:after</code>. There&#8217;s a brief section demonstrating media queries, as well some on the new JavaScript APIs—localStorage and history pushState, for example. There&#8217;s even a bit on using cache manifests to set up offline access.</p>
<p>Oh, and the deprecations. HTML5 deprecates a good many tags and attributes. There is a section listing those, as well as some modern alternatives, such as opening links in new windows without the deprecated <code>target</code> attribute. It can be done cleanly and semantically by using JavaScript, without impacting the user&#8217;s ability to middle-click a link and open a new tab&#8230;which far too many sites <em>still</em> do today. If you do that, you need to read this book just for that reason.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2013/04/03/html-and-css-develop-with-tomorrows-standards-today-by-brian-p-hogan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animating a CSS Sprite With JavaScript</title>
		<link>https://www.webmaster-source.com/2012/06/04/animating-a-css-sprite-with-javascript/</link>
		<comments>https://www.webmaster-source.com/2012/06/04/animating-a-css-sprite-with-javascript/#comments</comments>
		<pubDate>Mon, 04 Jun 2012 11:58:52 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sprites]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4700</guid>
		<description><![CDATA[Take a look at this demo, and guess how the animation is achieved. It&#8217;s not an animated GIF. It&#8217;s a PNG sprite that is brought to life with a little bit of JavaScript. The sprite image is a long strip containing each frame of the animation. The stylesheet sets it as the background of a [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Take a look at <a href="http://www.webmaster-source.com/static/demos/jsspriteanim/">this demo</a>, and guess how the animation is achieved. It&#8217;s not an animated GIF. It&#8217;s a PNG sprite that is brought to life with a little bit of JavaScript.</p>
<p>The sprite image is a long strip containing each frame of the animation. The stylesheet sets it as the background of a DIV, and the dimensions are set so you can only see one frame at a time. Then a script uses a timer loop to continuously shift down the line, resetting once it reaches the end. (A more complex version of this effect can be seen in this <a href="http://www.google.com/doodles/martha-grahams-117th-birthday">Google Doodle</a>.)</p>
<p><a href="http://www.webmaster-source.com/static/demos/jsspriteanim/"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4701 imgborder" title="The Sprite" src="//www.webmaster-source.com/wp-content/uploads/2012/06/animsprite-puzzlesprite.png" alt="" width="600" height="63" /></a></p>
<p>It works just like the sprites traditionally used in video games. It&#8217;s more efficient to load one image from a slow data source, whether it&#8217;s a hard disk or an internet connection, and only show a piece of it at a time, than to load dozens of images and alternate between them. (It saves some overhead in other ways in a performance-minded environment like a game, as well.)<span id="more-4700"></span></p>
<h3>Why not just use an animated GIF?</h3>
<p>Aside from the simple fact that it&#8217;s more fun, the Graphics Interchange Format has some limitations that make it unsuitable for certain applications. It doesn&#8217;t work very well at all for photographic images, and it only has very basic transparency support. JPEG is far better for photographs, and PNG for images with flatter colors.</p>
<p>There <em>is</em> another image format that supports animation, the animated PNG format (APNG), but support for it is sorely lacking. Most popular image editors don&#8217;t support it natively, and only a couple of browsers can display them without third-party extensions. Firefox/Gecko and Opera are about the extent of browser support for APNG. Internet Explorer can&#8217;t display them at all, and Chrome requires a third-party extension.</p>
<p>By using a sprite, you have an image format that fits your needs, and still have animation. Oh, and you can start and stop the animation at will, through JavaScript.</p>
<h3>Implementation</h3>
<p>For starters, you need an element to hold the sprite. I ended up using a DIV with an ID of &#8220;sprite.&#8221;</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;sprite&quot;&gt;&lt;/div&gt;</pre>
<p>Then you need to style the element. (If it&#8217;s not already a block-level element like a DIV, you may need to add <code>display:block</code>.) It&#8217;s height should be the height of your sprite image, and the width should be the width of a single frame. My image is 200 pixels high, and a frame is 300 pixels wide.</p>
<pre class="brush: css; title: ; notranslate">
#sprite {
width: 300px;
height: 200px;
margin: 30px auto;
background-image: url(sprite.png);
}
</pre>
<p>The most important part, of course, is the script. I&#8217;m using some jQuery, simply because it&#8217;s a convenient way to handle my button events. You could easily adapt it to work without, though.</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function(){

var frameWidth = 300;
var frameHeight = 200;
var spriteWidth = 5400;
var spriteHeight = 200;
var spriteElement = document.getElementById(&quot;sprite&quot;);

var curPx = 0;
var ti;

function animateSprite() {

spriteElement.style.backgroundPosition = curPx + 'px 0px';
curPx = curPx + frameWidth;

if (curPx &gt;= spriteWidth) {
curPx = 0;
}

ti = setTimeout(animateSprite, 80);

}

animateSprite();

});
</pre>
<p>The block of variables at the top set the frame dimensions, the dimensions of the sprite image, and the element containing the sprite. Then a timer is set, firing once per 80 milliseconds, which runs the <code>animateSprite()</code> function. Every time the function runs, it sets the background offset to <code>curPx</code>, and adds the frame width to <code>curPx</code>, so the next frame will be displayed in the following iteration. If <code>curPx</code> reaches the last frame, it&#8217;s reset to zero, so the animation will wrap around.</p>
<p>As an added bonus, you can start and stop the animation at will through the script. I just added some click events to a couple of links for illustrative purposes.</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;#stop&quot;).click(function() {
clearTimeout(ti);
});

$(&quot;#start&quot;).click(function() {
ti = setTimeout(animateSprite, 80);
});
</pre>
<p>You can see <a href="http://www.webmaster-source.com/static/demos/jsspriteanim/">the finished example in action here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/06/04/animating-a-css-sprite-with-javascript/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Pure CSS Blockquote Styling</title>
		<link>https://www.webmaster-source.com/2012/04/24/pure-css-blockquote-styling/</link>
		<comments>https://www.webmaster-source.com/2012/04/24/pure-css-blockquote-styling/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 11:53:50 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[(x)html]]></category>
		<category><![CDATA[blockquote]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4604</guid>
		<description><![CDATA[Ever since the days of print, it has been common to style quotations and cover blurbs with oversized quotation marks floating along the left side. The practice is alive and well in the internet age, though the technique usually used is a background image. It&#8217;s 2012, already! Why are we still relying on pictures of [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Ever since the days of print, it has been common to style quotations and cover blurbs with oversized quotation marks floating along the left side. The practice is alive and well in the internet age, though the technique usually used is a background image.</p>
<p>It&#8217;s 2012, already! Why are we still relying on pictures of typographical symbols? Let&#8217;s do it with the power of CSS!</p>
<p><a href="http://www.webmaster-source.com/static/demos/pure-css-blockquotes.php"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter  wp-image-4605" title="Yep, this is 100% CSS-styled text...that I took a screenshot of. Not ironic at all. ;)" src="//www.webmaster-source.com/wp-content/uploads/2012/04/pure-css-blockquotes.png" alt="" width="614" height="249" /></a>Let&#8217;s start with some simple HTML. Before we can style anything, we need to create our blockquote. While we&#8217;re at it, a <code>cite</code> element is a nice, semantic way to attribute the quote to its originator.<span id="more-4604"></span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;blockquote&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna. Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna. Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae!
&lt;cite&gt;Somebody famous&lt;/cite&gt;
&lt;/blockquote&gt;
</pre>
<p>Now some CSS to provide some basic styling for the blockquote. Leaving the default browser style isn&#8217;t going to look great, so we&#8217;ll use a largish serif font with a little extra line spacing. And a slightly lighter color. Extra-dark grey adds a subtle variation from your main body text.</p>
<pre class="brush: css; title: ; notranslate">
blockquote {
font-family: Georgia, serif;
font-size: 18px;
font-style: italic;
width: 500px;
margin: 0.25em 0;
padding: 0.25em 40px;
line-height: 1.45;
position: relative;
color: #383838;
}
</pre>
<p>Now for the fun part: the giant quotation mark. The <code>:before</code> pseudo-element can be used to dynamically insert content before the text of the element, and style the content you insert. This is great for decorative text, like stylistic curly-quotes. The trick is to use an escaped hexadecimal representation of the desired character, and a little bit of fiddly positioning stuff to make it sit in the right position.</p>
<pre class="brush: css; title: ; notranslate">
blockquote:before {
display: block;
content: &quot;\201C&quot;;
font-size: 80px;
position: absolute;
left: -20px;
top: -20px;
color: #7a7a7a;
}
</pre>
<p>That&#8217;s the most difficult part. You may have to experiment with the size and positioning until it looks right, though. Once everything looks nice, you can apply the same technique to style the citation. Using the <code>:before</code> pseudo-element, you can insert an em dash and a space before the text.</p>
<pre class="brush: css; title: ; notranslate">
blockquote cite {
color: #999999;
font-size: 14px;
display: block;
margin-top: 5px;
}

blockquote cite:before {
content: &quot;\2014 \2009&quot;;
}
</pre>
<p>Easy, isn&#8217;t it? The effect should work in all modern browsers, and IE8. (IE8 will only process the pseudo-element if your document has a doctype declared, but you should have one of those already&#8230;) In browsers that don&#8217;t support it, the added content simply won&#8217;t appear, leaving the main text of the blockquote (and the citation) intact. The other styling will remain, of course, so it should still look good enough.</p>
<p>You can <a href="http://www.webmaster-source.com/static/demos/pure-css-blockquotes.php">see a live demo here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/04/24/pure-css-blockquote-styling/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>Bootstrap Doesn&#8217;t Have to Look Like Bootstrap</title>
		<link>https://www.webmaster-source.com/2012/04/18/bootstrap-doesnt-have-to-look-like-bootstrap/</link>
		<comments>https://www.webmaster-source.com/2012/04/18/bootstrap-doesnt-have-to-look-like-bootstrap/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 11:45:49 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[framework]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4594</guid>
		<description><![CDATA[Since Twitter released their Bootstrap CSS framework, there has been some backlash among web designers. It tends to be used fresh out of the proverbial box, without any modification, an awful lot. The snide remarks about Bootstrap are largely unfounded, though. While some people may simply keep all of the defaults and use it to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Since Twitter released their <a href="http://twitter.github.com/bootstrap/">Bootstrap</a> CSS framework, there has been some backlash among web designers. It tends to be used fresh out of the proverbial box, without any modification, an awful lot. The snide remarks about Bootstrap are largely unfounded, though. While some people may simply keep all of the defaults and use it to throw something together quickly, it is still a framework like any other. It offers an excellent array of features you might want in a CSS framework, and you can customize the look as much as you want.</p>
<p>I was recently looking at the new design of <a href="http://asmallorange.com/">A Small Orange</a>, a hosting company. Would you guess, just looking at it, that it uses Bootstrap?</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4595 imgborder" title="A Small Orange: Yes, it uses Twitter Bootstrap" src="//www.webmaster-source.com/wp-content/uploads/2012/04/bootstrap-aso.jpg" alt="" width="600" height="461" /></p>
<p>I didn&#8217;t realize at first, until I moused over an image and noticed the popover that appeared. I recognized it as a re-colored Bootstrap feature, and checked the page source to confirm it. Handy, easy to implement, and yet you could even restyle it beyond recognition if you wanted to.<span id="more-4594"></span></p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4596 imgborder" title="I thought that looked familiar..." src="//www.webmaster-source.com/wp-content/uploads/2012/04/bootstrap-aso-popover.jpg" alt="" width="600" height="281" /></p>
<p>There are already plenty of sites using Bootstrap to create unique designs, rather just as a no-design solution to throw together a quick page. The trick is finding them, since by definition they wouldn&#8217;t <em>look</em> like Bootstrap sites&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/04/18/bootstrap-doesnt-have-to-look-like-bootstrap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Flip a Page Upside-Down with CSS</title>
		<link>https://www.webmaster-source.com/2012/04/03/how-to-flip-a-page-upside-down-with-css/</link>
		<comments>https://www.webmaster-source.com/2012/04/03/how-to-flip-a-page-upside-down-with-css/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 11:31:19 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[April 1st]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4583</guid>
		<description><![CDATA[For April Fool&#8217;s Day this year, I decided to do an amusing CSS trick instead of my usual fake news story. I turned the entire web site on its head, using a simple CSS3 attribute, and added a bit of JavaScript to jump down to the bottom (or top?) to complete the effect. The CSS [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>For April Fool&#8217;s Day this year, I decided to do an amusing CSS trick instead of my usual <a href="http://www.webmaster-source.com/tag/april-1st/">fake news story</a>. I turned the entire web site on its head, using a simple CSS3 attribute, and added a bit of JavaScript to jump down to the bottom (or top?) to complete the effect.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4584 imgborder" title="Webmaster-Source on April 1st, 2012" src="//www.webmaster-source.com/wp-content/uploads/2012/04/upsidedown-april1st2012.jpg" alt="" width="600" height="276" /></p>
<p>The CSS is simple, though of course it won&#8217;t work for Internet Explorer, except for the very latest version.</p>
<pre class="brush: css; title: ; notranslate">
#flipdiv {
    width: 100%;
    height: 100%;
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}
</pre>
<p>Now you want to wrap everything inside your <code>&lt;body&gt;</code> element with a new <code>&lt;div&gt;</code>. (You have to style the div instead of the body itself, as you get some weird box model issues otherwise.) It would look something like this:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;body&gt;
&lt;div id=&quot;flipdiv&quot;&gt;
...everything else...
&lt;/div&gt;
&lt;/body&gt;
</pre>
<p>If you want to automatically scroll down to the new top of the page, a.k.a. the bottom, you can use a little JavaScript snippet to bump it down.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
window.onload = scrollDownToTheTop;
function scrollDownToTheTop() {
window.scrollTo(0, document.body.scrollHeight);
}
&lt;/script&gt;
</pre>
<p>Silly, but not bad for an April Fool&#8217;s joke. <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/04/03/how-to-flip-a-page-upside-down-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS1K: What Can You Do With 1KB of CSS?</title>
		<link>https://www.webmaster-source.com/2012/02/16/css1k-what-can-you-do-with-1kb-of-css/</link>
		<comments>https://www.webmaster-source.com/2012/02/16/css1k-what-can-you-do-with-1kb-of-css/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 11:19:54 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4503</guid>
		<description><![CDATA[Back in 2003, a website called CSS Zen Garden was launched by Vancouver web designer Dave Shea to showcase what could be done with pure CSS. Back then, the internet was full of table-based layouts and large, text-filled images. The Garden was a pretty novel idea back then. In a similar vein, a new challenge [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Back in 2003, a website called <a href="http://www.csszengarden.com/">CSS Zen Garden</a> was launched by Vancouver web designer Dave Shea to showcase what could be done with pure CSS. Back then, the internet was full of table-based layouts and large, text-filled images. The Garden was a pretty novel idea back then.</p>
<p>In a similar vein, a new challenge has arrived in the form of <a href="http://css1k.com/">CSS1K</a>.</p>
<p>You have to style the same HTML as everyone else using no images or embedded fonts, while keeping your stylesheet under 1 kibibyte minified. To participate, you just fork the site on GitHub and submit a pull request when you&#8217;re done. Accepted styles are added to the gallery.</p>
<p>It&#8217;s a neat idea, now that we have so many fancy new CSS3 properties and selectors available, and it&#8217;s especially relevant as today&#8217;s page sizes are on the rise.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/02/16/css1k-what-can-you-do-with-1kb-of-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSFiddle: A Playground for Web Developers</title>
		<link>https://www.webmaster-source.com/2012/01/05/jsfiddle-a-playground-for-web-developers/</link>
		<comments>https://www.webmaster-source.com/2012/01/05/jsfiddle-a-playground-for-web-developers/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 12:01:33 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[(x)html]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4420</guid>
		<description><![CDATA[JSFiddle is a sort of interactive pastebin site that I&#8217;ve been finding useful lately. It features three panes for entering HTML, CSS and JavaScript, and a fourth where the resulting output is rendered. If you save the workspace, it generates a URL like http://jsfiddle.net/fLP64/ and will even save each revision as you update it. You [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://jsfiddle.net/">JSFiddle</a> is a sort of interactive <a href="http://en.wikipedia.org/wiki/Pastebin">pastebin</a> site that I&#8217;ve been finding useful lately. It features three panes for entering HTML, CSS and JavaScript, and a fourth where the resulting output is rendered. If you save the workspace, it generates a URL like <code>http://jsfiddle.net/fLP64/</code> and will even save each revision as you update it. You can share the URL to show off the result, and the other user can play with the code as well.</p>
<p>This is great for two scenarios. You can use it to experiment with a bit of CSS or JavaScript for brainstorming purposes, or you can use it if you need to ask someone for help. (It&#8217;s a lot easier to figure out what&#8217;s going wrong with someone&#8217;s code or markup if you can jump right in and start messing with the code.) Chris Coyier (of <a href="http://css-tricks.com/">CSS-Tricks</a>) uses it all the time to show off CSS experiments that will likely be used in future posts of his.</p>
<p style="text-align: center;"><a href="http://jsfiddle.net/fLP64/"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4421 imgborder" title="JSFiddle" src="//www.webmaster-source.com/wp-content/uploads/jsfiddle.png" alt="" width="600" height="288" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/01/05/jsfiddle-a-playground-for-web-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome Firebug Tricks You May Have Missed</title>
		<link>https://www.webmaster-source.com/2011/11/14/awesome-firebug-tricks-you-may-have-missed/</link>
		<comments>https://www.webmaster-source.com/2011/11/14/awesome-firebug-tricks-you-may-have-missed/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 12:18:01 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[(x)html]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4396</guid>
		<description><![CDATA[Firebug is probably the most invaluable tool in my web development arsenal. (Well, aside from Photoshop. But that has a value: freaking expensive.) I&#8217;m not terribly picky about my text editor—after all, I used Notepad for years—though BBEdit is my tool of choice. I still haven&#8217;t found anything that works nearly as well as Firebug, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.webmaster-source.com/wp-content/uploads/firebug-logo.png"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright size-full wp-image-4397 imgborder" title="Firebug" src="//www.webmaster-source.com/wp-content/uploads/firebug-logo.png" alt="" width="200" height="61" /></a><a href="http://getfirebug.com/">Firebug</a> is probably the most invaluable tool in my web development arsenal. (Well, aside from Photoshop. But that has a value: freaking expensive.) I&#8217;m not terribly picky about my text editor—after all, I used Notepad for years—though BBEdit is my tool of choice. I still haven&#8217;t found anything that works nearly as well as Firebug, and that&#8217;s probably the biggest reason why I couldn&#8217;t give up Firefox for Chrome.</p>
<p>Everyone who uses Firebug regularly knows the basics. They know how to inspect and edit HTML and CSS, analyze page loading times and the like. There are a few neat tricks, though, that aren&#8217;t quite immediately apparent, but are very handy.<span id="more-4396"></span></p>
<h3>Quickly Copy a Background URL</h3>
<p><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright size-full wp-image-4398 imgborder" title="Copying a background image in Firebug" src="//www.webmaster-source.com/wp-content/uploads/firebug-copybackground.png" alt="" width="167" height="132" />I like to play around with background images when I&#8217;m experimenting with a design or learning from someone else&#8217;s. This often involves copying the URL of a background image from one element and pasting it to another. It&#8217;s a pain to carefully select the URL portion of a shorthand background attribute, which is what I did until recently. As it turns out, you can just right-click the attribute and choose &#8220;Copy Image Location&#8221; or &#8220;Open Image in New Tab.&#8221; Palm, meet forehead.</p>
<h3>Specify a Pseudo-element</h3>
<p>If you hover over a link (or any element with a :hover pseudo-element) while Firebug is open, the right-hand pane updates to show the relevant CSS. Wouldn&#8217;t it be useful if it didn&#8217;t disappear as soon as you moved the mouse? Fortunately, you can lock the hover state with the little dropdown arrow on the Style tab. Just put a check mark next to the &#8220;:hover&#8221; option.</p>
<h3>See the <em>Exact</em> Style Applied to an Element</h3>
<p>Next to the Style tab in the right-hand pane is one labeled Computed. This is useful for working out cascading issues, or checking the exact dimensions of an element.</p>
<h3>Console Logging</h3>
<p>Instead of spamming alert() dialogs across your screen when you&#8217;re debugging JavaScript, you can use Firebug&#8217;s Console tab instead. Calling the console.log() function will output whatever you pass to it in the Console tab. e.g. console.log(&#8216;hi&#8217;). There&#8217;s <a href="http://getfirebug.com/logging">a page about it</a> on the Firebug website.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2011/11/14/awesome-firebug-tricks-you-may-have-missed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-16 00:45:42 by W3 Total Cache
-->