<?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>scriptygoddess &#187; CSS related</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/bookmarks/css-related/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 13:58:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CSS for iPhone&#039;s eyes only (watch out for the cache)</title>
		<link>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/</link>
		<comments>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 04:21:07 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>
		<category><![CDATA[Lessons learned]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1636</guid>
		<description><![CDATA[On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code: &#60;php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?&#62; ... CUSTOM CSS FOR IPHONE... &#60;php } ?&#62; This will also work for iPhones and iPod Touch: &#60;php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') &#124;&#124; strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?&#62; ... CUSTOM CSS... [...]


Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2010/03/16/seo-plugins-and-problems-with-the-titles-not-rewriting-wordpress/' rel='bookmark' title='Permanent Link: SEO Plugins and problems with the titles not rewriting (WordPress)'>SEO Plugins and problems with the titles not rewriting (WordPress)</a> <small>I can&#039;t speak for anyone else who has run into...</small></li>
<li><a href='http://www.scriptygoddess.com/archives/2009/09/10/anchor-links-in-wordpress-posts-another-shortcode-solution/' rel='bookmark' title='Permanent Link: Anchor Links in WordPress Posts &#8211; another shortcode solution'>Anchor Links in WordPress Posts &#8211; another shortcode solution</a> <small>I was recently asked by a client how they could...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code:</p>
<p><code>&lt;php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?&gt;<br />
... CUSTOM CSS FOR IPHONE...<br />
&lt;php } ?&gt;</code></p>
<p>This will also work for iPhones and iPod Touch:</p>
<p><code>&lt;php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?&gt;<br />
... CUSTOM CSS...<br />
&lt;php } ?&gt;</code></p>
<p>That&#039;s great and all &#8211; but then suddenly one day it stopped working. Going back through what changed on the site, I realized one thing we added was a cache plugin. DOH! So the page gets cached without the custom CSS for the iPhone &#8211; the iPhone calls up the site but gets served the cached page (non-iPhone version)&#8230; Yeah, that would do it.</p>
<p>So I found <a href="http://www.boutell.com/newfaq/creating/iphone.html">this solution</a>:</p>
<p><code>&lt;!--[if !IE]&gt;--&gt;<br />
    &lt;style type="text/css"&gt;<br />
	@media only screen and (max-device-width: 480px) {<br />
.... CUSTOM CSS HERE....<br />
	}<br />
	&lt;/style&gt;<br />
&lt;!--&lt;![endif]--&gt;</code></p>
<p>or of course you can pull in a whole stylesheet for the iphone:</p>
<p><code>&lt;!--[if !IE]&gt;--&gt;<br />
&lt;link media="only screen and (max-device-width: 480px)"  rel="stylesheet" type="text/css" href="iphone.css" /&gt;<br />
&lt;!--&lt;![endif]--&gt;</code></p>


<p>Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2010/03/16/seo-plugins-and-problems-with-the-titles-not-rewriting-wordpress/' rel='bookmark' title='Permanent Link: SEO Plugins and problems with the titles not rewriting (WordPress)'>SEO Plugins and problems with the titles not rewriting (WordPress)</a> <small>I can&#039;t speak for anyone else who has run into...</small></li>
<li><a href='http://www.scriptygoddess.com/archives/2009/09/10/anchor-links-in-wordpress-posts-another-shortcode-solution/' rel='bookmark' title='Permanent Link: Anchor Links in WordPress Posts &#8211; another shortcode solution'>Anchor Links in WordPress Posts &#8211; another shortcode solution</a> <small>I was recently asked by a client how they could...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repeating backgrounds and IE</title>
		<link>http://www.scriptygoddess.com/archives/2008/10/01/repeating-backgrounds-and-ie/</link>
		<comments>http://www.scriptygoddess.com/archives/2008/10/01/repeating-backgrounds-and-ie/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 17:54:30 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1537</guid>
		<description><![CDATA[There&#039;s probably a really good reason for this (actually, wait. We&#039;re talking about IE. Nevermind) Just wanted to post a reminder to myself should I ever come across this weirdness again. I was working on a layout recently, and everything was working fine in Firefox, and everything was fine in IE except for one little [...]


Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2009/10/27/striping-img-tags-from-the_content-in-wordpress-and-how-to-fudge-page-excerpts/' rel='bookmark' title='Permanent Link: Striping IMG tags from the_content in WordPress (and how to fudge page excerpts)'>Striping IMG tags from the_content in WordPress (and how to fudge page excerpts)</a> <small>Background: For a site I was working on, I was...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>There&#039;s probably a really good reason for this (actually, wait. We&#039;re talking about IE. Nevermind) <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Just wanted to post a reminder to myself should I ever come across this weirdness again. I was working on a layout recently, and everything was working fine in Firefox, and everything was fine in IE except for one little nagging problem. A box that had a repeating background image in it sometimes showed up with the background in IE, and then sometimes not. Sometimes if I refreshed the page &#8211; suddenly the background image appeared. The line in my css calling for the background image looked like this:</p>
<p><code>#mybox {<br />
background: url(images/my_background_tile.jpg) top left repeat-y;<br />
}</code></p>
<p>Everything looks kosher &#8211; at least it SHOULD be. For some reason IE REALLY wanted a <strong>background color too</strong>! (even though it wouldn&#039;t be showing up because the image would be covering over it). Okay. Whatever. So this is what made the background image show up consistently:</p>
<p><code>#mybox {<br />
background #fff url(images/my_background_tile.jpg) top left repeat-y;<br />
}</code></p>
<p>IE was happy. And there was much rejoicing.<br />
(*one quick note: this problem was specific to REPEATING background images. Background images set to no-repeat were not having problems)</p>
<p>Oh also &#8211; <em>don&#039;t ever do this:</em></p>
<p><code>#mybox {<br />
background: #fff url(images/my_background_tile.jpg) top repeat-y;<br />
}</code></p>
<p>All kinds of weirdness happens then. If you&#039;re going to specify background coordinate locations (with either &#034;top&#034;, &#034;left&#034;, &#034;5px&#034;, etc.) you have to specify both x and y locations. IE will hate you otherwise. And we don&#039;t want THAT! do we?</p>


<p>Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2009/10/27/striping-img-tags-from-the_content-in-wordpress-and-how-to-fudge-page-excerpts/' rel='bookmark' title='Permanent Link: Striping IMG tags from the_content in WordPress (and how to fudge page excerpts)'>Striping IMG tags from the_content in WordPress (and how to fudge page excerpts)</a> <small>Background: For a site I was working on, I was...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2008/10/01/repeating-backgrounds-and-ie/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How margins work in CSS</title>
		<link>http://www.scriptygoddess.com/archives/2007/05/08/how-margins-work-in-css/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/05/08/how-margins-work-in-css/#comments</comments>
		<pubDate>Tue, 08 May 2007 18:36:38 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/05/08/how-margins-work-in-css/</guid>
		<description><![CDATA[This is a great article/tutorial on how margins work in css (why/when then collapse, and why/when they don&#039;t). No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This is a great article/tutorial on <a href="http://www.search-this.com/2007/05/07/wheres-my-margin-gone-or-why-111/">how margins work in css</a> (why/when then collapse, and why/when they don&#039;t).</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/05/08/how-margins-work-in-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live CSS editing in IE</title>
		<link>http://www.scriptygoddess.com/archives/2007/04/28/live-css-editing-in-ie/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/04/28/live-css-editing-in-ie/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 15:11:58 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/04/28/live-css-editing-in-ie/</guid>
		<description><![CDATA[I know there was some install you could do so you could do &#034;live&#034; css editing of a webpage within IE (much like the web developer extension for Firefox) I&#039;ve since lost the link (feel free to post it in the comments if you have any idea what I&#039;m talking about! LOL) but for some [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I know there was some install you could do so you could do &#034;live&#034; css editing of a webpage within IE (much like the <a href="http://chrispederick.com/work/webdeveloper/">web developer extension for Firefox</a>) I&#039;ve since lost the link (feel free to post it in the comments if you have any idea what I&#039;m talking about! LOL) but for some reason I could never get it to work. I gave up for a time, but last night I was working on something that, of course, worked just fine in Firefox, but IE was doing something completely different and I couldn&#039;t figure out why. So I went looking again. What I found: <a href="http://www.sitevista.com/cssvista/">CSS Vista</a>. Lets you edit the css of webpages and see your changes live on the screen&#8230; AND what I really like about it is that it has two preview panes &#8211; one for firefox and one for IE &#8211; so you can see if what you&#039;re doing is going to be changing something in one browser and not the other.</p>
<p><img src="http://www.scriptygoddess.com/resources/cssvista-screenshot.jpg" alt="CSS Vista Screenshot" /></p>
<p>This isn&#039;t terribly new &#8211; I guess the program has been out for awhile. I wish I had known about it sooner. Would have saved me a bunch of headaches!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/04/28/live-css-editing-in-ie/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS &quot;TOC&quot; style?</title>
		<link>http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 03:13:43 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>
		<category><![CDATA[Call for help]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/</guid>
		<description><![CDATA[I&#039;m just curious&#8230; is there a fancy way to do something like this in CSS: Introduction &#8230;&#8230;&#8230;&#8230;&#8230; Page 1 Information &#8230;&#8230;&#8230;&#8230;&#8230;. Page 2 More Info &#8230;&#8230;&#8230;&#8230;&#8230;&#8230; Page 3 &#8230; where the &#034;Page&#034; text lines up and the &#034;&#8230;..&#034; just fills in until it reaches the &#034;Page&#034; text&#8230; kind of like you&#039;d see in a table [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#039;m just curious&#8230; is there a fancy way to do something like this in CSS:</p>
<p>Introduction &#8230;&#8230;&#8230;&#8230;&#8230; Page 1<br />
Information &#8230;&#8230;&#8230;&#8230;&#8230;. Page 2<br />
More Info &#8230;&#8230;&#8230;&#8230;&#8230;&#8230; Page 3</p>
<p>&#8230; where the &#034;Page&#034; text lines up and the &#034;&#8230;..&#034; just fills in until it reaches the &#034;Page&#034; text&#8230; kind of like you&#039;d see in a table of contents in a book? (Ideally the &#034;&#8230;.&#034; wouldn&#039;t even be text in the markup. It would just be a background fill or something&#8230;) Is that even possible?</p>
<p><strong>Update:</strong> Jenna got me on the right track&#8230;. (Thank you!) <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Make each line part of a list item. Apply the background image to &lt;li&gt; style. Wrap each part with another tag. Float one right, the other left, and give them both a solid color background the same as the rest of the page (so that it covers the dot, so it won&#039;t show through under the text). I also wanted the right column to line up, so I gave it a width, and told the text to align-left. <a href="http://www.scriptygoddess.com/resources/1460/test.htm">Here&#039;s the example.</a> </p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>floated box with extra (unintented) margin</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/#comments</comments>
		<pubDate>Mon, 22 Jan 2007 18:02:09 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/</guid>
		<description><![CDATA[Boy, do I love that &#034;Position is everything&#034; site. Every problem I&#039;ve been having these days with CSS, the fix can be found there. Here&#039;s today&#039;s CSS dilema. Had a simple floated div. Gave it a margin &#8211; and for some reason, IE doubled it. The solution is just to add &#034;display: inline;&#034; to the [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Boy, do I love that &#034;Position is everything&#034; site. Every problem I&#039;ve been having these days with CSS, the fix can be found there.</p>
<p>Here&#039;s today&#039;s CSS dilema. Had a simple floated div. Gave it a margin &#8211; and for some reason, IE doubled it. <a href="http://www.positioniseverything.net/explorer/doubled-margin.html">The solution</a> is just to add &#034;display: inline;&#034; to the floated div, and all is well.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Floated boxes extending outside of container box</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/#comments</comments>
		<pubDate>Sun, 21 Jan 2007 02:28:40 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/</guid>
		<description><![CDATA[Ran into this problem today: Had a container div with floated divs inside. However the container div was shrinking up above the bottom of the floated divs inside. See example here. Found this solution which basically suggested adding the following so that it wouldn&#039;t do that: .containerdiv:after { content: "."; display: block; height: 0; clear: [...]


Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2009/12/16/swfobject-flash-doesnt-load-in-firefox/' rel='bookmark' title='Permanent Link: swfobject &#8211; flash doesn&#039;t load in Firefox'>swfobject &#8211; flash doesn&#039;t load in Firefox</a> <small>Ran into a bizarre problem today using swfobject. A lot...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Ran into this problem today: Had a container div with floated divs inside. However the container div was shrinking up above the bottom of the floated divs inside.</p>
<p><a href="http://www.scriptygoddess.com/resources/1444-before.htm">See example here.</a></p>
<p>Found <a href="http://www.positioniseverything.net/easyclearing.html">this solution</a> which basically suggested adding the following so that it wouldn&#039;t do that:</p>
<p><code>.containerdiv:after {<br />
    content: ".";<br />
    display: block;<br />
    height: 0;<br />
    clear: both;<br />
    visibility: hidden;<br />
}</code></p>
<p>As well as adding a <em>height: 1%</em> (to to the container div)</p>
<p><a href="http://www.scriptygoddess.com/resources/1444-after.htm">See fixed example here.</a></p>


<p>Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2009/12/16/swfobject-flash-doesnt-load-in-firefox/' rel='bookmark' title='Permanent Link: swfobject &#8211; flash doesn&#039;t load in Firefox'>swfobject &#8211; flash doesn&#039;t load in Firefox</a> <small>Ran into a bizarre problem today using swfobject. A lot...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vertical Center Text in DIV</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 18:55:59 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/</guid>
		<description><![CDATA[Like I said, I&#039;m still fighting my way through understanding CSS. Here&#039;s a little tid-bit I finally understand today. Had a bit of text that I wanted to have centered in a nav bar. &#034;vertical-align: middle;&#034; didn&#039;t seem to do anything. Found this article which said this: the thing with vertical-align is that it&#039;s vertical [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Like I said, I&#039;m still fighting my way through understanding CSS. Here&#039;s a little tid-bit I finally understand today. Had a bit of text that I wanted to have centered in a nav bar. &#034;vertical-align: middle;&#034; didn&#039;t seem to do anything. Found <a href="http://www.webmasterworld.com/forum83/5595.htm">this article</a> which said this:</p>
<blockquote><p>the thing with vertical-align is that it&#039;s vertical aligning text according to the default line-height of the inline-text boxes. You can manipulate that by setting the line-height to the same height as your block, but this will only be effective if the line of text (link) does not wrap onto more than one line.</p></blockquote>
<p>NOW it makes sense&#8230;</p>
<p>So if you had:</p>
<p><code>&lt;div id="nav"&gt;&lt;a href="#" class="centerme"&gt;Home&lt;/a&gt;&lt;/div&gt;</code></p>
<p>Then:</p>
<p><code>#nav {<br />
height: 25px;<br />
line-height: 25px;<br />
}<br />
.centerme {<br />
vertical-align: middle;<br />
}</code></p>
<p>should do the trick&#8230;</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Good CSS (and PHP and more) References</title>
		<link>http://www.scriptygoddess.com/archives/2004/10/08/good-css-and-php-and-more-references/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/10/08/good-css-and-php-and-more-references/#comments</comments>
		<pubDate>Fri, 08 Oct 2004 20:25:26 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/10/08/good-css-and-php-and-more-references/</guid>
		<description><![CDATA[Laura (no link) left only the link to the following reference as a &#034;guest authored&#034; post: University Of Minnesota Deluth: Web Design References This particular one is for CSS, but in the sidebar you&#039;ll see many more to PHP, Typography, Usability, Javascript, etc. etc. My one note is their URL is very unfortunate. They MUST [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Laura (no link) left only the link to the following reference as a &#034;guest authored&#034; post:</p>
<p><a href="http://www.d.umn.edu/itss/support/Training/Online/webdesign/css.html">University Of Minnesota Deluth: Web Design References</a><br />
This particular one is for CSS, but in the sidebar you&#039;ll see many more to PHP, Typography, Usability, Javascript, etc. etc.</p>
<p>My one note is their URL is very unfortunate. They MUST get jabs for it. When I first saw it in the guest authored post &#8211; I thought it was a joke:<br />
<strong>www.d.umn.edu</strong>? Sorta looked like <strong>www.d.umb.edu</strong> to me. (Then again, I&#039;m kind of dyslexic&#8230;)</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2004/10/08/good-css-and-php-and-more-references/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Many CSS Links</title>
		<link>http://www.scriptygoddess.com/archives/2004/10/08/many-css-links/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/10/08/many-css-links/#comments</comments>
		<pubDate>Fri, 08 Oct 2004 17:43:42 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/10/08/many-css-links/</guid>
		<description><![CDATA[[via del.icio.us] HTML Help: CSS References Westciv: Learn Web standards Veerle&#039;s Blog: Designing a CSS based template (from psd to css) &#8211; in 5 parts &#8211; looks VERY good at first glance CSS Vault Gallery of CSS based design (need to add this to my &#034;design inspiration&#034; post as well Related posts:Anchor Links in WordPress [...]


Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2009/09/10/anchor-links-in-wordpress-posts-another-shortcode-solution/' rel='bookmark' title='Permanent Link: Anchor Links in WordPress Posts &#8211; another shortcode solution'>Anchor Links in WordPress Posts &#8211; another shortcode solution</a> <small>I was recently asked by a client how they could...</small></li>
<li><a href='http://www.scriptygoddess.com/archives/2009/10/30/multiple-featured-content-galleries/' rel='bookmark' title='Permanent Link: Multiple Featured Content Galleries'>Multiple Featured Content Galleries</a> <small>On a site I was working on recently, the client...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>[via del.icio.us]</p>
<p><a href="http://www.htmlhelp.com/reference/css/references.html">HTML Help: CSS References</a></p>
<p><a href="http://www.westciv.com/style_master/house/">Westciv: Learn Web standards</a></p>
<p><a href="http://veerle.duoh.com/comments.php?id=226_0_2_0_C">Veerle&#039;s Blog: Designing a CSS based template</a><br />
(from psd to css) &#8211; in 5 parts &#8211; looks VERY good at first glance</p>
<p><a href="http://cssvault.com/">CSS Vault</a><br />
Gallery of CSS based design (need to add this to my <a href="http://www.scriptygoddess.com/archives/2004/02/10/design-inspiration/">&#034;design inspiration&#034; post</a> as well</p>


<p>Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2009/09/10/anchor-links-in-wordpress-posts-another-shortcode-solution/' rel='bookmark' title='Permanent Link: Anchor Links in WordPress Posts &#8211; another shortcode solution'>Anchor Links in WordPress Posts &#8211; another shortcode solution</a> <small>I was recently asked by a client how they could...</small></li>
<li><a href='http://www.scriptygoddess.com/archives/2009/10/30/multiple-featured-content-galleries/' rel='bookmark' title='Permanent Link: Multiple Featured Content Galleries'>Multiple Featured Content Galleries</a> <small>On a site I was working on recently, the client...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2004/10/08/many-css-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.809 seconds -->
