<?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>Dave Woods Freelance Web Designer UK &#187; CSS</title>
	<atom:link href="http://www.dave-woods.co.uk/index.php/category/blog/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dave-woods.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 09 Dec 2011 11:26:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>CSS Font Stacks</title>
		<link>http://www.dave-woods.co.uk/index.php/css-font-stacks/</link>
		<comments>http://www.dave-woods.co.uk/index.php/css-font-stacks/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 16:13:43 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/?p=814</guid>
		<description><![CDATA[Web designers are often constrained by the so called &#8220;Web Safe Fonts&#8221; when creating web pages and whilst 95% of machines worldwide now have these fonts, they were first packaged with Windows XP back in 2001. As 2011 is quickly approaching are we still limited to these 10 web safe fonts or should we adapt [...]]]></description>
			<content:encoded><![CDATA[<p>Web designers are often constrained by the so called &#8220;Web Safe Fonts&#8221; when creating web pages and whilst 95% of machines worldwide now have these fonts, they were first packaged with Windows XP back in 2001. As 2011 is quickly approaching are we still limited to these 10 web safe fonts or should we adapt and use fonts within CSS that aren&#8217;t in this list of fonts?</p>
<p><span id="more-814"></span></p>
<p>Now before everyone jumps to the comments section, I&#8217;m fully aware that there are other solutions including <a href="http://www.css3.info/preview/web-fonts-with-font-face/">@font-face</a>, <a href="http://cufon.shoqolate.com/generate/">Cufon</a> and <a href="http://www.mikeindustries.com/blog/sifr">sIFR</a> but they create their own problems with regards to font licensing. But there is a solution for certain situations and that&#8217;s to use more intelligent CSS font stacks.</p>
<h2>What is a CSS font stack?</h2>
<p>Anyone that is used to creating CSS will be familiar with a font stack:</p>
<p><code>body { font-family: helvetica, arial, sans-serif; }</code></p>
<p>The browser will use helvetica if it&#8217;s available (usually Mac&#8217;s), if it&#8217;s not available then it will use Arial (most PC&#8217;s) and then if neither of those fonts exist it will use the system&#8217;s sans-serif font. This is a fairly common concept and is used all over the web and most designers will stick to using a combination of Andale, Arial, Arial Black, Comic Sans, Courier New, Georgia, Impact, Times New Roman, Trebuchet and Verdana.</p>
<p>However, as mentioned earlier, these fonts were bundled with Windows XP. We now have many users on more modern versions of Windows and common software (like Microsoft Office) which comes bundled with other fonts which are now common to many more machines.</p>
<h2>So we can use any font?</h2>
<p>Not exactly.</p>
<p>But what we can do is use a font that isn&#8217;t included in the web safe font list and provide alternative <strong>similar</strong> fonts for users who don&#8217;t have that font installed on their machine.</p>
<p>For example:</p>
<p><code>p { Baskerville, "Times New Roman", Times, serif; }</code></p>
<p>Nathan Ford created an excellent article on <a href="http://unitinteractive.com/blog/2008/06/26/better-css-font-stacks/">CSS font stacks</a> which has some great examples of using fonts by selecting your fonts using the following criteria:</p>
<p><code>font-family: ideal, alternative, common, generic</code></p>
<p>He also includes some great examples of good font stacks near the bottom of his post.</p>
<p>For more information on the use of certain typeface on different operating systems, <a href="codestyle.org/css/font-family/">codestyle.org/css/font-family/</a> has a ton of information and statistics on the subject.</p>
<h2>A word of warning</h2>
<p>Using font stacks isn&#8217;t just a case of picking fonts that look similar in style as letter spacing and sizing can vary significantly between certain fonts so it is always worth testing out how each of the fonts will look in practice. If in doubt then Nathan Ford&#8217;s list at the link above is a great starting point.</p>
<p>Also make sure that you set a client&#8217;s expectation right from the beginning. A lot of clients will be used to the way that print design works and therefore when you show the design using one font and the functional website uses a slightly different font due to the &#8220;ideal&#8221; font not being available on their machine, it can create some interesting and unwanted debate at the end of the project so I&#8217;d always advise any designer who is planning on using this method to be upfront right from the start and make sure that the client understands that the web is interactive and not all users will have exactly the same experience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/css-font-stacks/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Using em&#8217;s for font sizing</title>
		<link>http://www.dave-woods.co.uk/index.php/using-ems-for-font-sizing/</link>
		<comments>http://www.dave-woods.co.uk/index.php/using-ems-for-font-sizing/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 20:45:50 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/?p=693</guid>
		<description><![CDATA[Many web designers still use pixels for sizing their fonts within a web page, however this presents an accessibility problem on devices and browsers (namely Internet Explorer) which don&#8217;t allow pixels to be resized. The solution is to use ems or percentages to size the font so that they&#8217;re relative to the base font size [...]]]></description>
			<content:encoded><![CDATA[<p>Many web designers still use pixels for sizing their fonts within a web page, however this presents an accessibility problem on devices and browsers (namely Internet Explorer) which don&#8217;t allow pixels to be resized. The solution is to use ems or percentages to size the font so that they&#8217;re relative to the base font size set within the browser and it&#8217;s really not as difficult as a lot of people might think.</p>
<p><span id="more-693"></span></p>
<h2>What is an em?</h2>
<p>Firstly for anyone that hasn&#8217;t used ems before, here&#8217;s the definition:</p>
<blockquote><p>An em is a unit of measurement in the field of typography. This unit defines the proportion of the letter width and height with respect to the point size of the current font. Originally the unit was derived from the width of the capital &#8220;M&#8221; in a particular typeface. This unit is not defined in terms of any specific typeface, and thus is the same for all fonts at a given point size. So, 1 em in a 16 point typeface is 16 points.</p></blockquote>
<h2>Using ems to set the font size</h2>
<p>There&#8217;s many ways that you can use ems. Personally, I prefer to set the font size so that all HTML elements within the page are consistent and use 10px throughout a website using the following code:</p>
<p><code>body, select, input, textarea {<br />
font: 0.625em/1.4 tahoma, verdana, arial, helvetica, sans-serif;<br />
}</code></p>
<p>This is just the starting point though to reset the font size to a consistent level. The 1.4 sets the line-height and following on from that is the font-family which will change depending on the project but the one thing that is consistent is the 0.625em regardless of the website I&#8217;m working with.</p>
<p>By doing this, it allows me to easily set font sizes for other elements and containers within the site. For example, if I want to set a font size to 12px then I can do so by declaring an em size of 1.2em; If I want 9px, then it&#8217;s 0.9em and so on.</p>
<p>As you can see from the following CSS code, creating font sizes using em values is actually just as easy as using pixels but with the advantage that they can scale regardless of the device or web browser being used:</p>
<p><code>#navigation {<br />
	font-size: 1.4em;<br />
}<br />
h1 {<br />
	font-size: 2.4em;<br />
}<br />
#content {<br />
	font-size: 1.2em;<br />
}</code></p>
<h2>What about inheriting ems</h2>
<p>This causes the biggest confusion for a lot of web designers and is why a lot of people revert back to using pixels. Take the following example:</p>
<p><code>#content {<br />
	font-size: 1.2em;<br />
}<br />
#content p {<br />
	font-size: 1.1em;<br />
}</code></p>
<p>Now, a lot of people might expect that the paragraph would display at 11px given what I explained earlier. However, ems are inherited and therefore the initial 10px would render at 12px due to the #content font value but then assuming that the paragraph is nested within the #content element, it would then be scaled to 1.1em of it&#8217;s initial value and would therefore actually appear larger than 12px.</p>
<p>In order to get around this I use the following chart: <a href="http://aloestudios.com/tools/emchart/">http://aloestudios.com/tools/emchart/</a> to determine which em size I need to use in order to inherit the correct font size.</p>
<p>So in the above example, you&#8217;d need to use the following:</p>
<p><code>#content {<br />
	font-size: 1.2em;<br />
}<br />
#content p {<br />
	font-size: 0.917em; /* this will render at 11px */<br />
}</code></p>
<h2>Summary</h2>
<p>Using ems can take a little getting used to but if you want to create accessible font sizes then it really is the best solution and once you&#8217;ve got the hang of how ems are inherited they&#8217;re a powerful tool.</p>
<p>You can even create truly flexible websites by using ems for entire layouts so that they scale with the users default font setting but I&#8217;ll save that tutorial for another time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/using-ems-for-font-sizing/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Using CSS3 Selectors in Internet Explorer</title>
		<link>http://www.dave-woods.co.uk/index.php/using-css3-selectors-in-internet-explorer/</link>
		<comments>http://www.dave-woods.co.uk/index.php/using-css3-selectors-in-internet-explorer/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 13:40:05 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/?p=673</guid>
		<description><![CDATA[CSS3 is the next big thing to really help during the web development process but any web developer that has been following the progress of CSS3 will have become increasingly frustrated at the lack of support from Internet Explorer. However Keith Clark has put together a clever solution which means you can start using some [...]]]></description>
			<content:encoded><![CDATA[<p>CSS3 is the next big thing to really help during the web development process but any web developer that has been following the progress of CSS3 will have become increasingly frustrated at the lack of support from Internet Explorer. However Keith Clark has put together a clever solution which means you can start using some of the selectors now and they&#8217;ll even work in Internet Explorer 5 and upwards.</p>
<p><span id="more-673"></span></p>
<p>Keith has put together an ie.css3.js file which allows Internet Explorer to identify CSS3 pseudo selectors and render any style rules defined within them. You simply need to include his <a href="http://www.keithclark.co.uk/labs/ie-css3/">ie.css.js</a> and the <a href="http://www.domassistant.com/">DOMAssistant</a> JavaScript file within the head of your pages for it to work.</p>
<h2>Supported Selectors</h2>
<ul>
<li>&#58;nth-child</li>
<li>&#58;nth-last-child</li>
<li>&#58;nth-of-type</li>
<li>&#58;nth-last-of-type</li>
<li>&#58;first-child</li>
<li>&#58;last-child</li>
<li>&#58;only-child</li>
<li>&#58;first-of-type</li>
<li>&#58;only-of-type</li>
<li>&#58;empty</li>
</ul>
<p>There are some limitations which Keith Clark explains on the <a href="http://www.keithclark.co.uk/labs/ie-css3/">ie-css.js website</a> but it does look very promising.</p>
<p>It&#8217;ll  be interesting to see how Keith continues to develop ie-css3.js as there are lots of other aspects of CSS3 which a lot of web developers are crying out for (rounded corners and multiple background being among my top priorities).</p>
<p>My only reservation is really from an accessibility point of view as developers need to be careful that they&#8217;re not excluding any users who don&#8217;t have JavaScript available from viewing the design of a web page. If it&#8217;s used in such a way that it can be done as progressive enhancement though then I&#8217;m all for it and along with the <a href="http://www.dave-woods.co.uk/index.php/html5-tutorial-getting-started/">HTML5 JavaScript file</a> we might actually start being able to make use of CSS3 and HTML5 before Microsoft catch up with the other standards compliant browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/using-css3-selectors-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 9: CSS3 Support</title>
		<link>http://www.dave-woods.co.uk/index.php/internet-explorer-9-css3-support/</link>
		<comments>http://www.dave-woods.co.uk/index.php/internet-explorer-9-css3-support/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 08:40:29 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/index.php/internet-explorer-9-css3-support/</guid>
		<description><![CDATA[Internet Explorer 8 hasn&#8217;t long been on the market but Microsoft are working hard to make Internet Explorer 9 their best browser yet. IE8 was released in March 2009 and was a big step forward and a welcome addition to the browser market for most web developers due to its better support of web standards [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer 8 hasn&#8217;t long been on the market but Microsoft are working hard to make Internet Explorer 9 their best browser yet.</p>
<p><span id="more-263"></span></p>
<p>IE8 was released in March 2009 and was a big step forward and a welcome addition to the browser market for most web developers due to its better support of web standards and CSS2.1 support. However, there was also a lot of frustration that Microsoft were launching a browser that even on its day of release was still some way behind Firefox, Opera and Safari browsers.</p>
<p>CSS3 is the next big thing for front end designers and developers as it will make simple things like rounded corners and multiple background images much easier to accomplish without additional HTML or JavaScript workarounds. But despite Firefox and Safari showing initiative and creating support for these CSS3 features, in reality they&#8217;re unusable until the market leader (Internet Explorer) decides to implement them.</p>
<p>So it&#8217;s welcome news that Internet Explorer 9 will finally support CSS3.</p>
<div><img src='http://www.dave-woods.co.uk/wp-content/uploads/2009/11/ie9.png' alt='' /></div>
<p>For more information please have a read over on the <a href="http://beta.blogs.msdn.com/ie/archive/2009/11/18/an-early-look-at-ie9-for-developers.aspx">Blogs.MSDN website</a>.</p>
<h3>Summary</h3>
<p>Once again, it&#8217;s good to see that Microsoft are developing their browser and focusing on what the web development community want but the Internet Explorer browser seems to be falling further and further behind the other browsers with every release. What Internet Explorer are working on now is already available in Firefox and Safari so by the time IE9 finally hits the shelves (which I wouldn&#8217;t expect to be any time soon), the other browsers could be a couple of years ahead in terms of development.</p>
<p>How long will we have to wait for HTML5 video and audio support? CSS3 transformations? Instead of trying to catch up with the other browsers, has the time come where Microsoft should simply use the Webkit engine used by Safari and Google Chrome? What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/internet-explorer-9-css3-support/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CSS3: Rounded CSS Corners</title>
		<link>http://www.dave-woods.co.uk/index.php/css3-rounded-css-corners/</link>
		<comments>http://www.dave-woods.co.uk/index.php/css3-rounded-css-corners/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 08:58:20 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/index.php/css3-rounded-css-corners/</guid>
		<description><![CDATA[There&#8217;s many ways to create rounded corners using CSS but with the introduction of CSS3, our lives as web designers are about to become a lot easier. Up until recently I&#8217;ve been using my Rounded corners with one image method which does cut down on the amount of HTML and images required but when dealing [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s many ways to create rounded corners using CSS but with the introduction of CSS3, our lives as web designers are about to become a lot easier.</p>
<p><span id="more-259"></span></p>
<p>Up until recently I&#8217;ve been using my <a href="http://www.dave-woods.co.uk/index.php/css-rounded-corners-revisited/">Rounded corners with one image</a> method which does cut down on the amount of HTML and images required but when dealing with a lot of rounded corners the CSS can become a bit of a handful. But CSS2.1 didn&#8217;t have any alternatives so this was really the best solution to the rounded corners problem.</p>
<p>However, with CSS3 we can create rounded corners with a little bit of CSS.</p>
<p><code>#container {<br />
width: 840px;<br />
margin: 20px auto;<br />
background: #fff;<br />
padding: 30px;<br />
-moz-border-radius: 20px;<br />
-webkit-border-radius: 20px;<br />
}</code></p>
<p>This does currently only work in Mozilla and Webkit browsers (Firefox, Safari and Google Chrome) but does show the advantages of CSS3 which will be a huge welcome once Internet Explorer supports some of its features.</p>
<p>And here&#8217;s a quick example of how this could be put into practice:</p>
<ul>
<li><a href="http://dave-woods.co.uk/css3/rounded-corners-example/">Rounded CSS Corners Example</a></li>
</ul>
<p>As you should see, it works nicely in Safari, Firefox and partly in Google Chrome (which doesn&#8217;t seem to support the top rounded corners on the tabs) but also doesn&#8217;t break in Internet Explorer. When used correctly CSS3 can be used to progressively enhance a design but still be accessible within browsers which don&#8217;t support it.</p>
<p>For those people that want it to look identical in all browsers though, there are work arounds and you could apply the rounded corners to Internet Explorer using JavaScript which I&#8217;ll cover in my next tutorial.</p>
<h2>Summary</h2>
<p>So what do you think? Will you start using rounded CSS corners within your own work and client work at the moment or is Internet Explorer holding you back? Please feel free to leave any comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/css3-rounded-css-corners/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CSS negative margins</title>
		<link>http://www.dave-woods.co.uk/index.php/css-negative-margins/</link>
		<comments>http://www.dave-woods.co.uk/index.php/css-negative-margins/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 08:49:52 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/index.php/css-negative-margins/</guid>
		<description><![CDATA[Negative margins can be really useful when used correctly but can are often avoided because they&#8217;re seen as a hack or work around to other CSS problems. However Smashing Magazine have put together a useful article which explains how they can be used to good effect. The Definitive Guide to Using Negative Margins Personally, I [...]]]></description>
			<content:encoded><![CDATA[<p>Negative margins can be really useful when used correctly but can are often avoided because they&#8217;re seen as a hack or work around to other CSS problems. However Smashing Magazine have put together a useful article which explains how they can be used to good effect.</p>
<p><span id="more-253"></span></p>
<ul>
<li><a href="http://www.smashingmagazine.com/2009/07/27/the-definitive-guide-to-using-negative-margins/">The Definitive Guide to Using Negative Margins</a></li>
</ul>
<p>Personally, I don&#8217;t tend to use negative margins all that often as I&#8217;d usually use a combination of relative and absolute positioning to create the same effects as those mentioned in the article on Smashing Magazine but as a CSS developer it&#8217;s important to understand all aspects of CSS so if you haven&#8217;t encountered negative margins in the past then it&#8217;s definitely a good article to have a read through.</p>
<p>If nothing else, it adds another tool to your CSS toolbox which can only be a good thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/css-negative-margins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The problems with using CSS frameworks</title>
		<link>http://www.dave-woods.co.uk/index.php/the-problems-with-using-css-frameworks/</link>
		<comments>http://www.dave-woods.co.uk/index.php/the-problems-with-using-css-frameworks/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 17:10:05 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/index.php/the-problems-with-using-css-frameworks/</guid>
		<description><![CDATA[A CSS framework is a library of CSS styles which allow developers to reuse certain properties easily without having to code CSS from scratch. Initially when creating a web page they can save time but once you get involved in more complex designs, are they really all they&#8217;re cracked up to be? If you&#8217;ve not [...]]]></description>
			<content:encoded><![CDATA[<p>A CSS framework is a library of CSS styles which allow developers to reuse certain properties easily without having to code CSS from scratch. Initially when creating a web page they can save time but once you get involved in more complex designs, are they really all they&#8217;re cracked up to be?</p>
<p><span id="more-235"></span></p>
<p>If you&#8217;ve not tried CSS frameworks then <a href="http://developer.yahoo.com/yui/grids/">YUI Grids</a> is one of the more famous one&#8217;s but they&#8217;re popping up all the time with <a href="http://www.blueprintcss.org/">BluePrintCSS</a>, <a href="http://devkick.com/lab/tripoli/">Tripoli</a> and <a href="http://code.google.com/p/css-boilerplate/">Boilerplate</a> are all worth taking a look at.</p>
<p>However, I&#8217;ve never personally understood why CSS frameworks are needed for projects as CSS itself isn&#8217;t an especially complicated language when compared to programming languages like JavaScript or PHP.</p>
<p>CSS frameworks are useful for creating quick, robust layouts and do prevent problems occurring especially in the cross browser department whilst for the most part have been thoroughly tested and will stand up to older browsers. But isn&#8217;t it better to understand CSS fully and what constraints some browsers have rather than relying on a framework to take care of any issues? How will a web designer feel about working on a project or debugging browser issues if they&#8217;ve been totally reliant on a specific framework for all their development projects?</p>
<h2>Un-semantic naming conventions</h2>
<p>If a web designer fully understands all the complexities of CSS and still decides to use a framework than that&#8217;s fair enough but I suspect that anyone that is experienced with CSS would just choose to create any code from scratch.</p>
<p>HTML and CSS work fantastic together because they separate the content from the presentation, however with the majority of frameworks this simply isn&#8217;t the case. Yes, they may well use class&#8217;s and ID&#8217;s appended to div and span elements but when you look deeper into how the code has been written, it&#8217;s no different to actually writing styles inline.</p>
<p>For example, take the following code:</p>
<p><code>class="column span-15 gutter-1"</code></p>
<p>Now assume that the column class is floated left, the span-15 class is 150px wide and the gutter-1 class applies a right margin of 10px. How is this any different to just writing the following?</p>
<p><code>style="float: left; width: 150px; margin-right: 10px;"</code></p>
<p>One does use an external stylesheet but whichever way you look at it, a designer is still going to have to go into the HTML code and change the class in order to alter the presentation, but isn&#8217;t this what CSS is supposed to be for?</p>
<p>Imagine if you&#8217;d created a site that had grown over the years to a 1000+ pages and you needed to tweak the width of one column? I&#8217;d much rather go into one CSS file and change the width of that ID or class rather than trawl through every page of the site and have to change the class in the HTML page.</p>
<h2>Bloated CSS</h2>
<p>When I&#8217;m creating CSS from scratch, I&#8217;ll only create CSS that I&#8217;m going to use. Sometimes I&#8217;ll also throw in an ID for generic messages like .error or .confirmation for example which I know may come in handy but the idea of CSS frameworks is that grids and presentational styles are created for a huge array of possibilities which in reality a web designer will never use on that project and therefore a large CSS file has to be served up to the end user despite only a fraction of it being used.</p>
<h2>Summary</h2>
<p>As you may have gathered, I don&#8217;t use CSS frameworks when it comes to web development and in the majority of cases believe that it simply increases the amount of code used and makes it harder for designers working on the project later to update and manage the code.</p>
<p>What do you think? Do you use CSS frameworks? Have they ever saved you time when developing websites or have they ever presented you with unexpected problems further down the line?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/the-problems-with-using-css-frameworks/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>10 CSS Tips Every Web Developer Should Know</title>
		<link>http://www.dave-woods.co.uk/index.php/10-css-tips-every-web-developer-should-know/</link>
		<comments>http://www.dave-woods.co.uk/index.php/10-css-tips-every-web-developer-should-know/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 20:31:11 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/index.php/10-css-tips-every-web-developer-should-know/</guid>
		<description><![CDATA[I&#8217;ve written a fair few articles over the past year and thought it might be useful for any new subscribers and visitors to see a summary of the most useful ones. Below is a list of hints and tips which will be useful to anyone starting out in CSS and even the most seasoned professional [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written a fair few articles over the past year and thought it might be useful for any new subscribers and visitors to see a summary of the most useful ones. Below is a list of hints and tips which will be useful to anyone starting out in CSS and even the most seasoned professional in the industry may find a couple of things useful.</p>
<p><span id="more-232"></span></p>
<h3>1. <a href="http://www.dave-woods.co.uk/index.php/css-reset/">CSS Reset</a></h3>
<p>A consistent starting point across all browsers is a great place to begin when working with HTML and CSS.</p>
<h3>2. <a href="http://www.dave-woods.co.uk/index.php/ie6-css-bugs-and-fixes-explained/">IE6 CSS Bugs and Fixes Explained</a></h3>
<p>Internet Explorer 6 can be a pain for even experienced web developers but within this article, I explain the main bugs and how to solve these annoying little issues.</p>
<h3>3. <a href="http://www.dave-woods.co.uk/index.php/block-and-inline-elements-part-one/">Block and Inline Elements Explained</a></h3>
<p>It&#8217;s important when learning CSS that you understand how block and inline elements work. This guide takes you through the fundamental differences and explains how each can be manipulated with CSS.</p>
<h3>4. <a href="http://www.dave-woods.co.uk/index.php/100-height-layout-using-css/">100% Height using CSS</a></h3>
<p>This one is a problem that&#8217;s encountered quite frequently but once explained is quite a simple technique to achieve 100% height.<a href="http://www.dave-woods.co.uk/index.php/100-height-layout-using-css/"></a></p>
<h3>5. <a href="http://www.dave-woods.co.uk/index.php/css-faux-columns/">CSS Equal Height Columns</a></h3>
<p>Creating equal height columns using CSS is tricky but using a background image trick known as faux coumns, it&#8217;s easily achievable.<a href="http://www.dave-woods.co.uk/index.php/css-faux-columns/"></a></p>
<h3>6. <a href="http://www.dave-woods.co.uk/index.php/css-fixed-footer/">CSS Fixed Footer</a></h3>
<p>Another frequent problem is getting a footer to stick to the bottom of the browser window which isn&#8217;t dependant on content. This article explains how it&#8217;s done.<a href="http://www.dave-woods.co.uk/index.php/css-fixed-footer/"></a></p>
<h3>7. <a href="http://www.dave-woods.co.uk/index.php/css-rounded-corners-revisited/">CSS Rounded Corners</a></h3>
<p>Creating rounded corners is usually a tricky process creating lots of small rounded images to simulate a rounded corner. However, this article explains how it can be done by using just one small image.<a href="http://www.dave-woods.co.uk/index.php/css-rounded-corners-revisited/"></a></p>
<h3>8. <a href="http://www.dave-woods.co.uk/index.php/css-image-replacement/">CSS Image Replacement</a></h3>
<p>A number of ways to replace some text with an image using CSS.<a href="http://www.dave-woods.co.uk/index.php/css-image-replacement/"></a></p>
<h3>9. <a href="http://www.dave-woods.co.uk/index.php/float-and-clear-a-comparison-of-css-clearing-techniques/">Float and Clear: A Comparison of CSS Clearing Techniques</a></h3>
<p>Understanding how float&#8217;s and clearing float&#8217;s works is important in any modern web designers toolkit. This artice explains the fundamental basics of this layout technique.</p>
<h3>10. <a href="http://www.dave-woods.co.uk/index.php/creating-faqs-using-a-definition-list/">Creating FAQs using a definition list</a></h3>
<p>Definition lists are often overlooked by web designers but can sometimes be more useful than a simple unordered list.<a href="http://www.dave-woods.co.uk/index.php/creating-faqs-using-a-definition-list/"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/10-css-tips-every-web-developer-should-know/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Making the most of the CSS text-transform property</title>
		<link>http://www.dave-woods.co.uk/index.php/making-the-most-of-the-css-text-transform-property/</link>
		<comments>http://www.dave-woods.co.uk/index.php/making-the-most-of-the-css-text-transform-property/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 18:43:02 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/index.php/making-the-most-of-the-css-text-transform-property/</guid>
		<description><![CDATA[Anyone who works with HTML/CSS on a daily basis will be aware of all the common CSS properties, however there are also some lesser known CSS properties which can be extremely useful. This article covers the text-transform property and how it can be used to your advantage when building web pages. When adding things like [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who works with HTML/CSS on a daily basis will be aware of all the common CSS properties, however there are also some lesser known CSS properties which can be extremely useful. This article covers the text-transform property and how it can be used to your advantage when building web pages.</p>
<p><span id="more-229"></span></p>
<p>When adding things like headings to an HTML document, I&#8217;d always recommend adding them as though they were part of a sentence and not consider how the case of the words will appear visually on a page. During the coding stage, developers tend to use their own preferred method of displaying headings, some will captilize the first letter of each word, others will only capitilize longer, more important words, which can lead to inconsistencies on projects that have a number of developers on board.</p>
<p>However, by using CSS we can control how these headings will appear when rendered on a page. For example:</p>
<p><code><br />
&lt;h1&gt;Here's a heading for the content&lt;/h1&gt;<br />
</code></p>
<p>This works absolutely fine as it is and is grammatically correct, however if we want to style this, we can do so by simply using the text-transform CSS property to make all the letters in the heading uppercase.</p>
<p><code><br />
h1 {<br />
text-transform: uppercase;<br />
}<br />
</code></p>
<p>The possible values for the text-transform property are: capitilize, uppercase, lowercase and none; which provide plenty of flexibility when working with the case of your text.</p>
<h2>Summary</h2>
<p>I&#8217;m sure that many of you are already aware of the text-transform property and use it for this very purpose to ensure consistent letter case across a website. Is this something you already do and if not would you now consider it in future projects?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/making-the-most-of-the-css-text-transform-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Variables</title>
		<link>http://www.dave-woods.co.uk/index.php/css-variables/</link>
		<comments>http://www.dave-woods.co.uk/index.php/css-variables/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 13:13:50 +0000</pubDate>
		<dc:creator>Dave Woods</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.dave-woods.co.uk/index.php/css-variables/</guid>
		<description><![CDATA[It&#8217;s something that many people have been asking for and wanting for some time now and finally it looks like variables are going to be making their way into CSS. I first heard the news from Peter&#8217;s blog over at Broken Links and thought it would be of great interested to most of the readers [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s something that many people have been asking for and wanting for some time now and finally it looks like variables are going to be making their way into CSS.</p>
<p><span id="more-210"></span></p>
<p>I first heard the news from Peter&#8217;s blog over at <a href="http://www.broken-links.com/2008/04/08/css-variables-proposal-is-released/">Broken Links</a> and thought it would be of great interested to most of the readers here.</p>
<p>Essentially, you&#8217;ll be able to declare a variable in your CSS using the following syntax</p>
<p><code>@variables { keyColor: #f00; }</code></p>
<p>And then you can call this variable wherever you need to use it in your CSS by using</p>
<p><code>h1 { color: var(keyColor); }</code></p>
<p>Presumably using this method you&#8217;ll be able to declare all your colour scheme in a bunch of variables at the top of your CSS</p>
<p><code>@variables { firstcolor: #f00; secondcolor: #300; thirdcolor: #300; }</code></p>
<p>Sounds like it&#8217;s going to be an extremely useful improvement within CSS and something I&#8217;m sure that anyone who deals with CSS will be eagerly awaiting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dave-woods.co.uk/index.php/css-variables/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>

