<?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>Pleasanton Web Design &#187; css</title>
	<atom:link href="http://pleasantonwebdesignblog.com/category/css/feed" rel="self" type="application/rss+xml" />
	<link>http://pleasantonwebdesignblog.com</link>
	<description>Information on Web design, technology, and culture from my vantage point here in Pleasanton, California.</description>
	<lastBuildDate>Fri, 03 Feb 2012 04:36:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CSS Problem &#8211; Background-Position in IE7</title>
		<link>http://pleasantonwebdesignblog.com/2009/08/background-position-in-ie7-css-problem.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=background-position-in-ie7-css-problem</link>
		<comments>http://pleasantonwebdesignblog.com/2009/08/background-position-in-ie7-css-problem.html#comments</comments>
		<pubDate>Sat, 22 Aug 2009 04:58:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://pleasantonwebdesignblog.com/?p=474</guid>
		<description><![CDATA[I ran aross this problem with the way Internet Explore 7 (IE7) handles the background-position css property, and thought I&#8217;d post it just in case I could save someone some time. I was working on a layout, and it looked great in IE8, Firefox 2, Firefox 3 &#38; Google Chrome 2. When viewed in IE7, however, the background-position [...]]]></description>
			<content:encoded><![CDATA[<div class="none"><div class="g-plusone" data-href="http://pleasantonwebdesignblog.com/2009/08/background-position-in-ie7-css-problem.html" size="small" count="true"></div></div><p>I ran aross this problem with the way Internet Explore 7 (IE7) handles the background-position css property, and thought I&#8217;d post it just in case I could save someone some time. I was working on a layout, and it looked great in IE8, Firefox 2, Firefox 3 &amp; Google Chrome 2. When viewed in IE7, however, the background-position of one of the elements was off.</p>
<p>After a bit of experimentation, as is a normal part of cross-browser testing with Microsoft Internet Exploder, I narrowed down the problem to the fact that I had overflow hidden for this particular element. All other browsers used the declared dimensions of the element to position the background. The problem is that there was some overflow, and all browsers but IE7 properly ignored it. IE7 used the dimensions including the overflow to determine the background-position.<br />

<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-8315023803230274";
/* 468x60, created 1/7/09 */
google_ad_slot = "2170958206";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
<br />
In this situation I was able to size the element in such a way to eliminate the possibility of overflow, and then was able to remove the overflow:hidden declaration.</p>
]]></content:encoded>
			<wfw:commentRss>http://pleasantonwebdesignblog.com/2009/08/background-position-in-ie7-css-problem.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Horizontal Navigation Menu</title>
		<link>http://pleasantonwebdesignblog.com/2008/04/css-horizontal-navigation-menu.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-horizontal-navigation-menu</link>
		<comments>http://pleasantonwebdesignblog.com/2008/04/css-horizontal-navigation-menu.html#comments</comments>
		<pubDate>Tue, 22 Apr 2008 03:58:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://pleasantonwebdesign.tpdevspace.com/?p=146</guid>
		<description><![CDATA[I&#8217;ve had a request to expand my css navigation tutorial to include a horizontal navigation. This is an extention of my previous css navigation menu tutorial. To create a horizontal navigation menu in the header, you&#8217;ll need to create two horizontally stacked divs within the header. The way I normally code it is to create [...]]]></description>
			<content:encoded><![CDATA[<div class="none"><div class="g-plusone" data-href="http://pleasantonwebdesignblog.com/2008/04/css-horizontal-navigation-menu.html" size="small" count="true"></div></div><p>I&#8217;ve had a request to expand my css navigation tutorial to include a horizontal navigation. This is an extention of my previous <a href="http://pleasantonwebdesignblog.com/2008/04/css-navigation-menu-cascading-stylesheets-tutorial.html">css navigation menu tutorial.</a></p>
<p>To create a horizontal navigation menu in the header, you&#8217;ll need to create two horizontally stacked divs within the header. The way I normally code it is to create a div in the header named header top, and under that I&#8217;ll put the nav div. Make sure to size them both to the header width so they can&#8217;t appear side by side. You&#8217;ll also need to add a clearing div after the header so that following divs will begin in the correct place:</p>
<p>&lt;div id=&#8221;header&#8221;&gt;<br />
 &lt;div id=&#8221;header-top&#8221;&gt;&lt;/div&gt;<br />
 &lt;div id=&#8221;nav&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Nothing&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
 &lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&#8221;clr&#8221;&gt;&lt;/div&gt;
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-8315023803230274";
/* 468x60, created 1/7/09 */
google_ad_slot = "2170958206";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>As a convention I started the naming of the navigation styles starting with the nav div. This change will need to &#8220;cascade&#8221; to all of the other styles within the unordered list. As you can see below, the key to making the nav list horizontal is adding float:left to the li tag. The header-top now displays the header image as a background, and the header div is now just a container to hold the header-top and nav divs. I added a background color to it for aesthetics.#header{<br />
width: 780px;<br />
height: 84px;<br />
background: #333333;<br />
}</p>
<p>#header-top{<br />
width: 780px;<br />
background-image: url(&#8216;images/header.jpg&#8217;);<br />
background-repeat: no-repeat;<br />
height: 50px;<br />
}</p>
<p>#nav{<br />
width:780px;<br />
height: 32px;<br />
}</p>
<p>div#clr{<br />
clear: both;<br />
}</p>
<p>div#nav ul li{<br />
float:left;<br />
}</p>
<p>div#nav ul{<br />
list-style: none;<br />
padding: 0px;<br />
margin: 0px;<br />
}</p>
<p>div#nav ul li a{<br />
display: block;<br />
padding:5px;<br />
margin: 1px;<br />
border: 1px solid white;<br />
width: 100px;<br />
height: 20px;<br />
background: #333333;<br />
color: white;<br />
text-decoration: none;<br />
}</p>
<p>div#nav ul li a:hover{<br />
background: #666666;<br />
}</p>
<p><a href="http://www.tpdesigns.net/tutorials/css_test3.htm">Here is how it looks.</a>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-8315023803230274";
/* 468x60, created 1/7/09 */
google_ad_slot = "2170958206";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
]]></content:encoded>
			<wfw:commentRss>http://pleasantonwebdesignblog.com/2008/04/css-horizontal-navigation-menu.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Navigation Menu &#8211; Cascading Stylesheets Tutorial</title>
		<link>http://pleasantonwebdesignblog.com/2008/04/css-navigation-menu-cascading-stylesheets-tutorial.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-navigation-menu-cascading-stylesheets-tutorial</link>
		<comments>http://pleasantonwebdesignblog.com/2008/04/css-navigation-menu-cascading-stylesheets-tutorial.html#comments</comments>
		<pubDate>Mon, 21 Apr 2008 20:22:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://pleasantonwebdesign.tpdevspace.com/?p=145</guid>
		<description><![CDATA[In the first tutorial of the series, CSS Positioning, we build a basic, table-less structure for a two-column webpage. In this post, we&#8217;ll add what every webpage needs: navigation. Some designers prefer to add an additional &#60;div&#62; and identify it as &#8220;nav&#8221; or &#8220;navigation&#8221; using a class or id. Since almost all navigation bars I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<div class="none"><div class="g-plusone" data-href="http://pleasantonwebdesignblog.com/2008/04/css-navigation-menu-cascading-stylesheets-tutorial.html" size="small" count="true"></div></div><p>In the first tutorial of the series, <a href="http://bottlecapnapkin.blogspot.com/2008/04/css-positioning-cascading-style-sheets.html">CSS Positioning</a>, we build a basic, table-less structure for a two-column webpage. In this post, we&#8217;ll add what every webpage needs: navigation.
<p>Some designers prefer to add an additional &lt;div&gt; and identify it as &#8220;nav&#8221; or &#8220;navigation&#8221; using a class or id. Since almost all navigation bars I&#8217;ve seen styled with CSS use an unordered list, &lt;ul&gt;, I like to style that directly, rather than adding the additional &lt;div&gt;.</p>
<p> From the first tutorial, we have the following page structure:</p>
</p>
<blockquote><p>&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 strict//EN&#8221;&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;CSS Test&lt;/title&gt;<br />&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=iso-8859-1&#8243;&gt;<br />&lt;link href=&#8221;test.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221;&gt;<br />&lt;/head&gt;<br />&lt;body&gt;</p>
<p>&lt;div id=&#8221;wrapper&#8221;&gt;</p>
<p>&lt;div id=&#8221;header&#8221;&gt;&lt;/div&gt;</p>
<p>&lt;div id=&#8221;column1&#8243;&gt;<br />&lt;/div&gt;</p>
<p> &lt;div id=&#8221;column2&#8243;&gt;<br />&lt;/div&gt;</p>
<p>&lt;div id=&#8221;footer&#8221;&gt;&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/body&gt;<br />&lt;/html&gt;</p>
</blockquote>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-8315023803230274";
/* 468x60, created 1/7/09 */
google_ad_slot = "2170958206";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>Now we will add our unordered list to column one, between the &lt;div&gt;&lt;/div&gt;<br />tags:</p>
</p>
<blockquote><p>&lt;ul id=&#8221;nav&#8221;&gt;<br />&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Nothing&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;</p></blockquote>
<p>Now to style our list into a standard navigation menu. First we&#8217;ll take the unslightly list attributes from the &lt;ul&gt; tag itself:</p>
</p>
<blockquote><p>ul#nav{<br />list-style: none;<br />padding: 0px;<br />margin: 0px;<br />}</p></blockquote>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-8315023803230274";
/* 468x60, created 1/7/09 */
google_ad_slot = "2170958206";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>Setting the list-style to none removes the bullet, and setting padding and margins to 0px removes the indent. </p>
<p>I&#8217;m going to ignore the &lt;li&gt; tag and style the link &lt;a&gt; tag directly. I do this to take advantage of a:hover to change the links background on rollover:</p>
</p>
<blockquote><p>ul#nav li a{<br />display: block;<br />padding:5px;<br />margin: 1px;<br />border: 1px solid white;<br />width: 100px;<br />height: 20px;<br />background: #333333;<br />color: white;<br />text-decoration: none;<br />}</p></blockquote>
<p>First we style the link as a block, so the browser will treat the element like we want it to, as a rectangular button. We style the appearance of the element as we would any box. Finally we remove the link&#8217;s underline by setting text-decoration:none.</p>
<p>All that&#8217;s left is to set the rollover using a:hover. The only thing we want to change is the background color, so all we have to do is this:</p>
</p>
<blockquote><p>ul#nav li a:hover{<br />background: #666666;<br />}</p></blockquote>
<p>Now fill your content column with text, and you have a table-less, two column webpage, displayed using css. </p>
<p><a href="http://www.tpdesigns.net/tutorials/css_test2.htm">Here is the design in action</a>.</p>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-8315023803230274";
/* 468x60, created 1/7/09 */
google_ad_slot = "2170958206";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
]]></content:encoded>
			<wfw:commentRss>http://pleasantonwebdesignblog.com/2008/04/css-navigation-menu-cascading-stylesheets-tutorial.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

