<?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>My Quick Fix &#187; CSS</title>
	<atom:link href="http://myquickfix.co.uk/index.php/category/computers/web-development/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://myquickfix.co.uk</link>
	<description>Quick fixes for niggly problems...</description>
	<lastBuildDate>Thu, 24 Sep 2009 15:10:50 +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>Set space between list item and bullet (HTML, CSS)&#8230;</title>
		<link>http://myquickfix.co.uk/index.php/2009/06/set-space-between-list-item-and-bullet-html-css/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/06/set-space-between-list-item-and-bullet-html-css/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 10:07:03 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=372</guid>
		<description><![CDATA[Problem
I&#8217;ve just had to convert a photoshop visual to a wordpress template. The designer wanted a bulleted list where the bullets themselves were very close to the list items, and were small dashes. Cross browser support for list item and bullet styling is ropey at best, and to make things perfect I&#8217;d have to resort to browser specific styles.
Solution
The solution I think I&#8217;ll be using for the rest of my &#8216;web&#8217; career will be this. JUST FORGET THE BULLET ITEM, and use positioned background images instead.
In the stylesheet, add styles ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I&#8217;ve just had to convert a photoshop visual to a wordpress template. The designer wanted a bulleted list where the bullets themselves were very close to the list items, and were small dashes. Cross browser support for list item and bullet styling is ropey at best, and to make things perfect I&#8217;d have to resort to browser specific styles.</p>
<h2>Solution</h2>
<p>The solution I think I&#8217;ll be using for the rest of my &#8216;web&#8217; career will be this. JUST FORGET THE BULLET ITEM, and use positioned background images instead.</p>
<p>In the stylesheet, add styles for both the &#8216;ul&#8217; tag, and the &#8216;li&#8217; tag like so (explanations inline):</p>
<pre class="css">ul {
margin-left:0px; /* Set the indenting back to far left. */
padding-left:0px; /* Set the indenting back to far left. */
}

ul li {
list-style-type:none; /* Switch the list bullet off altogether. */
background-image:url(dashbullet.gif); /* The replacement bullet image */
background-position:0px 4px; /* Place bullet 0px from left and 4px from top */
background-repeat:no-repeat; /* Stops bullet tiling, important */
padding-left:7px; /* separation from li txt and bullet */
}</pre>
<p>Then just create the list as you usually would, with &#8216;ul&#8217; and &#8216;li&#8217; tags. Here&#8217;s what it looks like in use:</p>
<div id="attachment_400" class="wp-caption aligncenter" style="width: 210px"><img class="size-full wp-image-400" title="Fixed css image bullets" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/list-fix.gif" alt="Example of image bullet in use" width="200" height="150" /><p class="wp-caption-text">Example of image bullet in use</p></div>
<p>Here&#8217;s a bit more detail so you can get your head around the spacing. It&#8217;s incredibly simple, but still, nice to have a diagram or two sometimes.</p>
<div id="attachment_401" class="wp-caption aligncenter" style="width: 410px"><img class="size-full wp-image-401" title="Fixed css image bullets - detail" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/list-fix-detail.gif" alt="Detail showing some dimensions and spacing" width="400" height="174" /><p class="wp-caption-text">Detail showing some dimensions and spacing</p></div>
<p>This style works perfectly (by my testing, but I&#8217;m not perfect) on:</p>
<ul>
<li>Internet Explorer 6, 7 &amp; 8+</li>
<li>Firefox 2.*+</li>
<li>Opera 9+ (not tested 8, but bet it works!</li>
<li>Google Chrome (all versions)</li>
<li>Safari (Mac and PC versions)</li>
</ul>
<div>Any problems, please post a question or comment below.</div>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/06/set-space-between-list-item-and-bullet-html-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Centre and float a div over page content with CSS &#8211; no hacks, cross browser</title>
		<link>http://myquickfix.co.uk/index.php/2008/12/css-centre-a-div-no-hacks-cross-browser/</link>
		<comments>http://myquickfix.co.uk/index.php/2008/12/css-centre-a-div-no-hacks-cross-browser/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 11:59:07 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=65</guid>
		<description><![CDATA[Problem
If you need to center a div (or any another block element) over the rest of the content in a page, and you need it to be cross-browser and valid (CSS and XHTML)&#8230;
Solution
Try the following CSS in your stylesheet or page head:
#cdiv {
  position:absolute; /* important. */
  left:50%; /*important if you want it absolutely centred in window. */ 
  margin-left:-50px; /* importnant. must be half the width. */
  width:100px; /* set to your requirements, but remember left margin setting. */
  height:100px; /* not neccessary if the element needs to grow with content. */
  border:1px solid #ABF; /* not ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>If you need to center a div (or any another block element) over the rest of the content in a page, and you need it to be cross-browser and valid (CSS and XHTML)&#8230;</p>
<h2>Solution</h2>
<p>Try the following CSS in your stylesheet or page head:</p>
<blockquote><p><span style="color: #008000;">#cdiv {<br />
  position:absolute; <span style="color: #ff6600;">/* important. */</span><br />
  left:50%; <span style="color: #ff6600;">/*important if you want it absolutely centred in window. */ </span><br />
  margin-left:-50px; <span style="color: #ff6600;">/* importnant. must be half the width. */</span><br />
  width:100px; <span style="color: #ff6600;">/* set to your requirements, but remember left margin setting. */</span><br />
  height:100px; <span style="color: #ff6600;">/* not neccessary if the element needs to grow with content. */</span><br />
  border:1px solid #ABF; <span style="color: #ff6600;">/* not important. */</span><br />
  background-color:#DDF; <span style="color: #ff6600;">/* not important. */</span><br />
  text-align:center; <span style="color: #ff6600;">/*not important. */</span><br />
}</span></p></blockquote>
<p>&#8230; and now set the ID of the element you want centered to &#8216;cdiv&#8217;. If the item you want to centre is an image, remember to add <span style="color: #008000;">display:block;</span> to the style (this makes it act like a block level element).</p>
<p>This style works perfectly (by my testing, but I&#8217;m not perfect) on:</p>
<ul>
<li>Internet Explorer 6, 7 &amp; 8+</li>
<li>Firefox 2.*+</li>
<li>Opera 8 &amp; 9+</li>
<li>Google Chrome (all versions)</li>
<li>Safari (Mac and PC versions)</li>
<li>Netscape 9 (is anyone still using this?)</li>
</ul>
<div>Any problems, please post a question or comment below.</div>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2008/12/css-centre-a-div-no-hacks-cross-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
