<?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>Raymond Selda &#187; XHTML and CSS</title>
	<atom:link href="http://www.raymondselda.com/category/xhtml-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raymondselda.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 Nov 2011 04:31:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Convert A Content Box Design Into XHTML and CSS</title>
		<link>http://www.raymondselda.com/convert-a-content-box-design-into-xhtml-and-css/</link>
		<comments>http://www.raymondselda.com/convert-a-content-box-design-into-xhtml-and-css/#comments</comments>
		<pubDate>Wed, 27 May 2009 16:39:22 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[XHTML and CSS]]></category>

		<guid isPermaLink="false">http://www.raymondselda.com/?p=1118</guid>
		<description><![CDATA[Are you a web designer who doesn&#8217;t know how to write markup? Have you ever followed an interface tutorial in Photoshop and requested for a follow up on how to convert a design? I&#8217;ve read in an interview that web designers who don&#8217;t code is kinda like working at McDonalds and calling themselves a chef. [...]]]></description>
			<content:encoded><![CDATA[<p id="top" /><span class="dropcaps">A</span>re you a web designer who doesn&#8217;t know how to write markup? Have you ever followed an interface tutorial in Photoshop and requested for a follow up on how to convert a design? I&#8217;ve read in an <a rel="nofollow" href="http://www.fuelyourcreativity.com/interview-with-ryan-downie/">interview</a> that web designers who don&#8217;t code is kinda like working at McDonalds and calling themselves a chef.</p>
<p><span id="more-1118"></span></p>
<p>Today I am going to convert a <a rel="nofollow" href="http://psdvibe.com/2008/12/03/content-box-with-orange-banner-heading/">content box with an orange heading</a> design into markup using XHTML and CSS. </p>
<p><a href="http://www.raymondselda.com/demo/content-box/">View Finished Content Box</a></p>
<p>The inspiration for this tutorial came from a <a rel="nofollow" href="http://psdvibe.com/2008/12/03/content-box-with-orange-banner-heading/comment-page-1/#comment-556">comment</a> asking how to code the content box. This is going to be fun so let&#8217;s get started.</p>
<h2>Step 1 &#8211; Slice the PSD</h2>
<p>I don&#8217;t use the Slice tool in Photoshop whenever I chop off a design. What I do is use the Rectangular Marquee Tool to select the graphic I need to slice then go to Image Menu and Crop (F2). </p>
<p>For this tutorial we only need to chop three design elements&#8230; the orange header, the rounded content box and the separator for each menu (you can also apply a CSS bottom border in place of the separator if you like). </p>
<p>You should chop a longer content box if you think you&#8217;re going to have a longer list of links. This will bulletproof your markup in case you decided to put in more links.</p>
<h2>Step 2 &#8211; Write A Solid Structure (XHTML)</h2>
<p>We only need a header and a menu list inside our content box division. Very simple.</p>
<pre class="xhtml" name="code">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;title&gt;Content Box&lt;/title&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
/* CSS here */
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;content-box&quot;&gt;
	&lt;h2 id=&quot;site-menu&quot;&gt;Site Main Menu&lt;/h2&gt;
	&lt;ul id=&quot;menu&quot;&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;&lt;!-- #menu --&gt;
&lt;/div&gt;&lt;!-- #content-box --&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h2>Step 3 &#8211; Apply Basic Body Styles</h2>
<p>For the purposes of this tutorial we&#8217;re going to apply some basic styling. We&#8217;re just changing the background to black and setting our font face.</p>
<pre class="css" name="code">
body {
	background:#000;
	font-family:Arial, Verdana, sans-serif;
}
</pre>
<h2>Step 4 &#8211; Content Box Styles</h2>
<p>Set the background for our content box. The graphic&#8217;s width is going to be the width for our content box division.</p>
<pre class="css" name="code">
#content-box {
	width:300px;
	margin:100px auto 0;
	padding-bottom:30px;
	background:transparent url(images/content-boxbg.gif) no-repeat center bottom;
}
</pre>
<h2>Step 5 &#8211; Header Styles</h2>
<p>We apply the orange header for the background. The key here is the relative position of the header so we can shift it to the left with a negative value giving us that &#8220;out of the box&#8221; effect.</p>
<pre class="css" name="code">
h2#site-menu {
	width:330px;
	height:79px;
	background:transparent url(images/menu-header.gif) no-repeat;
	position:relative;
	left:-15px;
	text-indent:-99999em;
}
</pre>
<h2>Step 6 &#8211; List Styles</h2>
<p>Remove the bullets from the list and apply the separator as background for each individual list elements.</p>
<pre class="css" name="code">
ul#menu {
	list-style-type:none;
	padding:0 0 0 10px;
	margin:0 0 0 7px;
}

ul#menu li {
	width:265px;
	text-indent:10px;
	background:transparent url(images/separator.gif) no-repeat center bottom;
}
</pre>
<h2>Step 7 &#8211; Link Styles</h2>
<p>We then finish off by styling the links. Here we apply a color and adjust the padding for each links. We also styled the hover state.</p>
<pre class="css" name="code">
ul#menu li a {
	color:#aaa;
	font-size:14px;
	font-weight:bold;
	display:block;
	padding:15px 0;
	text-decoration:none;
}

ul#menu li a:hover {
	color:#fff;
}
</pre>
<h2>Conclusion</h2>
<p>I enjoyed doing this tutorial and if you&#8217;re a web designer who doesn&#8217;t code, I do hope this article will encourage you to learn XHTML and CSS. </p>
<p>Articles on converting a design into markup will be a part of my blog so stay tuned as I roam around PSD tutorial sites and provide answers on how to convert designs. Thank you for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/convert-a-content-box-design-into-xhtml-and-css/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Importance of HTML Headings for Accessibility</title>
		<link>http://www.raymondselda.com/importance-of-html-headings-for-accessibility/</link>
		<comments>http://www.raymondselda.com/importance-of-html-headings-for-accessibility/#comments</comments>
		<pubDate>Wed, 20 May 2009 16:00:06 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[XHTML and CSS]]></category>

		<guid isPermaLink="false">http://www.raymondselda.com/?p=1102</guid>
		<description><![CDATA[This past few days I&#8217;ve been working on a WordPress theme and again I was faced with the question on what heading tag to use in the front page blog titles and in the articles page. This question never fails to creep up so I decided to once and for all look for a solution [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />This past few days I&#8217;ve been working on a WordPress theme and again I was faced with the question on what heading tag to use in the front page blog titles and in the articles page. This question never fails to creep up so I decided to once and for all look for a solution that I&#8217;m going to be comfortable with.</p>
<p><span id="more-1102"></span></p>
<h2>Importance of Headings</h2>
<p>According to a <a title="Screenreader Survey" rel="nofollow" href="http://webaim.org/projects/screenreadersurvey/">screenreader survey</a>, 76% of screenreader users use headings to navigate either &#8216;often&#8217; or &#8216;all the time&#8217;.  With that statistic we can&#8217;t argue how important headings are especially for people with disabilities.</p>
<p>One way to make your site more accessible is through the use of headings. Headings in HTML are created with the h1-h6 elements and they should be used as headings just like the ones you see in newspapers, books and other print documents.</p>
<h2>Screenreaders</h2>
<p>I&#8217;ve heard of screenreaders but I really didn&#8217;t have any idea on how a screenreader user&#8217;s experience would be like until now thanks to this video:</p>
<p><object width="500" height="405" data="http://www.youtube.com/v/AmUPhEVWu_E&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/AmUPhEVWu_E&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" /><param name="allowfullscreen" value="true" /></object></p>
<p>The video was presented by a blind person giving a brief tour how he uses a screenreader and it was really a discovery on how screenreaders actually work. Then at the end of the video he visited a <a title="YouTube" rel="nofollow" href="http://www.youtube.com/">big time video sharing site</a> and I was shocked that no headings were used for accessibility navigation.</p>
<h2>Google Is Accessible</h2>
<p>After watching, I decided to further investigate the other sites and looked at how their headings are organized. I tried to check how Google uses headings and I was really impressed by what I saw.</p>
<p><img class="alignnone size-full wp-image-1105" title="Screenshot of Google's Heading Outline" src="http://www.raymondselda.com/wp-content/uploads/2009/05/google-headings.gif" alt="Screenshot of Google's Heading Outline" width="600" height="362" /></p>
<p>You have Google&#8217;s logo for heading 1 followed by &#8216;Sponsored Links&#8217; and &#8216;Search Results&#8217; for heading 2 then the actual results as heading 3. What&#8217;s interesting here is that the &#8216;Search Results&#8217; heading is actually hidden using CSS. This means that even if the search results page doesn&#8217;t actually show the actual text, we are assured that screenreaders will be able to navigate the document because of the meaningful markup.</p>
<h2>Make Your Site Accessible</h2>
<p>So I decided to tweak my headings to make it more accessible. First take a look at how the headings are outlined in your document. If you have <a title="Firebug" rel="nofollow" href="http://getfirebug.com/">Firebug</a> installed you can click on Information then View Document Outline. After doing some analysis I came up with the following outline for the headings in the frontpage:</p>
<p><img class="alignnone size-full wp-image-1106" title="Screenshot of RaymondSelda.com's Heading Outline" src="http://www.raymondselda.com/wp-content/uploads/2009/05/frontpage-headings.gif" alt="Screenshot of RaymondSelda.com's Heading Outline" width="600" height="457" /></p>
<p>The heading outline for the article page would be different. The article title would be heading one and sub sections as heading two. The remaining headings would also be marked as heading 2 as well.</p>
<p><img class="alignnone size-full wp-image-1107" title="Screenshot of Article Heading Outline" src="http://www.raymondselda.com/wp-content/uploads/2009/05/article-headings.gif" alt="Screenshot of Article Heading Outline" width="600" height="364" /></p>
<p>In my opinion this is the most meaningful outline for a document and I would place more importance on using headings to help people with disabilities rather than for SEO purposes. This is more or less the heading structure that I will be using in my projects.</p>
<h2>Conclusion</h2>
<p>This small changes can really help the Web to be a better place for everyone. This is only one way you could make a site accessible and I urge you to build websites to be as accessible as possible. Thoughts, comments and violent reactions are always welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/importance-of-html-headings-for-accessibility/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Professional Dark CSS Menu</title>
		<link>http://www.raymondselda.com/professional-dark-css-menu/</link>
		<comments>http://www.raymondselda.com/professional-dark-css-menu/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:00:17 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[XHTML and CSS]]></category>

		<guid isPermaLink="false">http://www.raymondselda.com/?p=841</guid>
		<description><![CDATA[I love to follow Photoshop tutorials on designing website layouts and interfaces. One thing I like to do after finishing up a tutorial is to slice the design and convert it into a working website using XHTML and CSS. I recently finished a Professional Dark Header tutorial and decided to slice it up and convert [...]]]></description>
			<content:encoded><![CDATA[<p id="top" /><span class="dropcaps">I</span> love to follow Photoshop tutorials on designing website layouts and interfaces. One thing I like to do after finishing up a tutorial is to slice the design and convert it into a working website using XHTML and CSS. I recently finished a <a href="http://www.idotutorials.com/2008/09/03/professional-dark-header/">Professional Dark Header tutorial</a> and decided to slice it up and convert it to XHTML and CSS.</p>
<p><span id="more-841"></span></p>
<p>I&#8217;ve provided a little screenshot below of the menu that we&#8217;re going to convert. Feel free to <a href="http://www.raymondselda.com/downloads/dark-menu.zip">download the source files</a> and you can check out a <a class="thickbox" href="http://www.raymondselda.com/demo/dark-menu/?TB_iframe=true&amp;height=130&amp;width=750">live demo</a> if you want.</p>
<p><img class="alignnone size-full wp-image-843" title="Professional Dark Menu" src="http://www.raymondselda.com/wp-content/uploads/2009/04/darkmenu.png" alt="Professional Dark Menu" width="600" height="132" /></p>
<h2>Overview</h2>
<p>These are the only graphics you will need to create our dark menu. You can download them from the zip.</p>
<p><img class="alignnone size-full wp-image-852" title="Dark Menu Required Graphics" src="http://www.raymondselda.com/wp-content/uploads/2009/04/darkmenu-graphics.png" alt="Dark Menu Required Graphics" width="600" height="480" /></p>
<p>We&#8217;re going to use the container and menu backgrounds to tile horizontally for the container and menu using CSS. The menu matrix background is an image sprite we&#8217;re going to use  for the links. This is only a single image with the default state on the top half and the hover state below the other half. We&#8217;re going to control how they are displayed using background positioning in CSS.</p>
<h2>XHTML Source</h2>
<p>Here we have a container div and another div to wrap our unordered list. Take note that we have assigned a unique id for each of the individual list elements.</p>
<pre class="xhtml" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;

&lt;head&gt;
	&lt;title&gt;Professional Dark Menu&lt;/title&gt;
	&lt;meta http-equiv="content-type" content="text/html;charset=utf-8" /&gt;
	&lt;meta http-equiv="Content-Style-Type" content="text/css" /&gt;
	&lt;style type="text/css"&gt;

	&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="container"&gt;
	&lt;div id="menuwrap"&gt;
		&lt;ul id="menu"&gt;
		&lt;li id="home"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li id="articles"&gt;&lt;a href="#"&gt;Articles&lt;/a&gt;&lt;/li&gt;
		&lt;li id="videos"&gt;&lt;a href="#"&gt;Videos&lt;/a&gt;&lt;/li&gt;
		&lt;li id="services"&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt;
		&lt;li id="about"&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
		&lt;li id="contact"&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>CSS Source</h2>
<h3>#container</h3>
<p>You can specify any width for the container but the height must be equal to the height of containerbg.jpg. You can then tile the container background.</p>
<pre class="css" name="code">#container {
    width:960px;
    height:132px;
    margin:0 auto;
    background:transparent url(images/containerbg.jpg);
}</pre>
<h3>#menuwrap</h3>
<p>Set the width to 100% so it will expand to whatever the width of the parent (#container). Height will be equal to the height of the menubg.jpg. We then apply a position:relative so we can place the #menuwrap 25 pixels from the top of the container.</p>
<pre class="css" name="code">#menuwrap {
	width:100%;
	height:63px;
	position:relative;
	top:25px;
	background:transparent url(images/menubg.jpg) repeat-x;
}</pre>
<h3>ul#menu</h3>
<p>Set the width and height then float the list to the right. You can easily remove float:right if you want to left align the menu. We then remove the margins, padding and remove the default bullets beside the list.</p>
<pre class="css" name="code">ul#menu {
	width:535px;
	height:59px;
	float:right;
	margin:0;
	padding:0;
	list-style-type:none;
	background:transparent url(images/menubg.jpg) repeat-x;
}</pre>
<h3>ul#menu li</h3>
<p>Now let&#8217;s float our individual list elements to the left to display the links horizontally. You could experiment and try floating them to the right.</p>
<pre class="css" name="code">ul#menu li {
	float:left;
}</pre>
<h3>ul#menu li a</h3>
<p>Very important to set display:block for anchor elements especially when doing image replacements because anchors are inline elements by default. The height would be the height of the menu-matrix.jpg divided by 2 which is 59 pixels. Setting the overflow to hidden will only outline the individual block of link. Then we hide the text by setting a huge negative text-indent value.</p>
<p><strong>Update:</strong> Thanks to <a href="http://www.sohtanaka.com/">Soh Tanaka</a> for his <a href="http://www.raymondselda.com/professional-dark-css-menu/#comment-611">suggestion</a> on optimizing the CSS for our menu. I&#8217;ve made some CSS modifications to the code below and I believe this will make our CSS easier to understand. Thank you Soh.</p>
<pre class="css" name="code">ul#menu li a {
	display: block;
	height:59px;
	overflow:hidden;
	text-indent:-99999px;
	background:transparent url(images/menu-matrix.jpg) no-repeat;
}</pre>
<h3>ul#menu li#home a</h3>
<p>Now we go to the fun part! We&#8217;re going to control how our image sprite (menu-matrix.jpg) will be displayed using CSS background positioning. I&#8217;ve created a guide so you can better visualize how I came up with the values.</p>
<p><img class="alignnone size-full wp-image-877" title="Menu Matrix Guide" src="http://www.raymondselda.com/wp-content/uploads/2009/04/menu-matrix-guide.png" alt="Menu Matrix Guide" width="600" height="194" /></p>
<p>First we&#8217;re going to style our home menu by showing only the default home graphic. We can do this by setting the horizontal and vertical position to zero. I&#8217;m writing it this way so you will have a clear idea on how the values are set. We&#8217;re also going to set the width for each of the graphic that will be shown.</p>
<pre class="css" name="code">ul#menu li#home a { background-position:0 0; width:82px; }</pre>
<h3>ul#menu li#home a:hover</h3>
<p>For the hover state of the home menu, the horizontal value will be the same but we will adjust the vertical value to -59 pixels. This will position the graphic 59 pixels below starting from the top of the menu-matrix.jpg.</p>
<pre class="css">ul#menu li#home a:hover { background-position:0 -59px; width:82px; }</pre>
<p>From here on it&#8217;s just a matter of calculating where you need to position the graphic. You can view the rest of the menu styles below.</p>
<h2>Complete XHTML and CSS Source</h2>
<pre class="xhtml" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;

&lt;head&gt;
	&lt;title&gt;Professional Dark Menu&lt;/title&gt;
	&lt;meta http-equiv="content-type" content="text/html;charset=utf-8" /&gt;
	&lt;meta http-equiv="Content-Style-Type" content="text/css" /&gt;
&lt;style type="text/css"&gt;
#container {
	width:960px;
	height:132px;
	margin:0 auto;
	background:transparent url(images/containerbg.jpg);
}

#menuwrap {
	width:100%;
	height:63px;
	position:relative;
	top:25px;
	background:transparent url(images/menubg.jpg) repeat-x;
}

ul#menu {
	width:535px;
	height:59px;
	float:right;
	margin:0;
	padding:0;
	list-style-type:none;
	background:transparent url(images/menubg.jpg) repeat-x;
}

ul#menu li {
	float:left;
}

ul#menu li a {
	display: block;
	height:59px;
	overflow:hidden;
	text-indent:-99999px;
	background:transparent url(images/menu-matrix.jpg) no-repeat;
}

ul#menu li#home a { background-position:0 0; width:82px; }
ul#menu li#home a:hover { background-position:0 -59px; width:82px; }

ul#menu li#articles a { background-position:-82px 0; width:89px; }
ul#menu li#articles a:hover { background-position:-82px -59px; width:89px; }

ul#menu li#videos a { background-position:-170px 0; width:87px; }
ul#menu li#videos a:hover { background-position:-170px -59px; width:87px; }

ul#menu li#services a { background-position:-256px 0; width:91px; }
ul#menu li#services a:hover { background-position:-256px -59px; width:91px; }

ul#menu li#about a { background-position:-346px 0; width:84px; }
ul#menu li#about a:hover { background-position:-346px -59px; width:84px; }

ul#menu li#contact a { background-position:-429px 0; width:102px; }
ul#menu li#contact a:hover { background-position:-429px -59px; width:102px; }

&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="container"&gt;
	&lt;div id="menuwrap"&gt;
		&lt;ul id="menu"&gt;
		&lt;li id="home"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li id="articles"&gt;&lt;a href="#"&gt;Articles&lt;/a&gt;&lt;/li&gt;
		&lt;li id="videos"&gt;&lt;a href="#"&gt;Videos&lt;/a&gt;&lt;/li&gt;
		&lt;li id="services"&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt;
		&lt;li id="about"&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
		&lt;li id="contact"&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>I hope you will find this article helpful in creating your own optimized menu using XHTML and CSS. I want to learn from you guys so if there&#8217;s anything that you want to improve in this tutorial or anything in this blog please feel free to leave your comments below. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/professional-dark-css-menu/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Emastic CSS Framework</title>
		<link>http://www.raymondselda.com/emastic-css-framework/</link>
		<comments>http://www.raymondselda.com/emastic-css-framework/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 17:01:57 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[XHTML and CSS]]></category>

		<guid isPermaLink="false">http://www.raymondselda.com/?p=259</guid>
		<description><![CDATA[Emastic is a CSS Framework, it's continuing mission: to explore a strange new world, to seek out new life and new web spaces, to boldly go where no CSS Framework has gone before.]]></description>
			<content:encoded><![CDATA[<p id="top" /><span class="dropcaps">J</span>ust when I was getting comfortable with <a title="Blueprint CSS" href="http://www.blueprintcss.org/" rel="nofollow">Blueprint</a> another CSS framework has come into play. <a title="Emastic CSS Framework" href="http://code.google.com/p/emastic/" rel="nofollow">Emastic</a> is yet another CSS framework and has the following features:</p>
<p><span id="more-259"></span></p>
<p style="text-align: center;"><img class="aligncenter" title="Emastic CSS Framework" src="http://www.raymondselda.com/wp-content/uploads/emastic.png" alt="" width="200" height="76" /></p>
<ul>
<li>Lightweight (compressed version weighs less than 4KB)</li>
<li>Page width in &#8220;em&#8221;s, pixels and percentages.</li>
<li>Use of fixed and fluid columns in the grid and</li>
<li>Elastic layouts using &#8220;em&#8221;s</li>
</ul>
<p>New stuff in their second beta release are:</p>
<ul>
<li>gadgets.css (plugin)</li>
<li>Vertical Spacing and</li>
<li>Improved Typography (baseline grid)</li>
</ul>
<p>One feature that I really like of course is the framework&#8217;s small filesize. But one intriguing feature is having your page widths sized in &#8220;em&#8221;s and percentages. It sounds really interesting and at the same time exciting because it allows you to not get stuck in using pixels for fixed width layouts. Both types of layouts whether fixed or fluid has its advantages and disadvantages depending on what your situation is.</p>
<p>I wonder how will it size up with Blueprint and the other CSS frameworks around. I guess I have to wait until morning to check out Emastic.</p>
<p>How about you? Did you already get your hands dirty with Emastic? How was it? I would really love to hear your thoughts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/emastic-css-framework/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Layout Version of W3Schools.com</title>
		<link>http://www.raymondselda.com/css-layout-w3schools/</link>
		<comments>http://www.raymondselda.com/css-layout-w3schools/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 14:55:19 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[XHTML and CSS]]></category>

		<guid isPermaLink="false">http://www.raymondselda.com/w3schools-table-free-version/</guid>
		<description><![CDATA[Its been my practice every time I stumble on a website to check if the design especially the layout is in CSS. One morning around 1am I was looking for some tutorials when I landed at W3Schools. Although CSS controls much of the presentation, it still uses tables for laying out their columns. Not concerned [...]]]></description>
			<content:encoded><![CDATA[<p id="top" /><span class="dropcaps">I</span>ts been my practice every time I stumble on a website to check if the design especially the layout is in CSS. One morning around 1am I was looking for some tutorials when I landed at <a href="http://w3schools.com/" rel="nofollow">W3Schools</a>. Although CSS controls much of the presentation, it still uses tables for laying out their columns. Not concerned what time it was I decided to strip those table tags and overhaul it with CSS. Here&#8217;s the <a title="W3Schools CSS Version" href="http://raymondselda.com/test/w3schools.htm">W3Schools CSS Version</a> in case you&#8217;re eager to check out the final result.</p>
<p><span id="more-32"></span></p>
<p>First I worked on the HTML markup then determining the source order of of the elements. The source order will help you to decide on what floating techniques to use. The source order will be: header, content, left nav, right nav and the footer. They say that having the content near the top of the source will help improve search engines to crawl your site. With this kind of order I will have to use floats and negative margins in order to line up the columns.</p>
<p>I start by resetting the the margin and padding:</p>
<pre class="css" name="code">
* {
margin:0;
padding:0;
}</pre>
<p>Common styles:</p>
<pre class="css" name="code">body {
font:70% "Verdana", "Tahoma", "Arial", sans-serif;
color:#000;
background:#F1F1F1 url(images/bodyback.gif) repeat-x top;
}

h1 {font-size:160%;}
h2 {font-size:120%;}
h3 {font-size:110%;}
h4 {font-size:100%;}
h5 {font-size:90%;}
h6 {font-size:80%;}
</pre>
<p>Header:</p>
<pre class="css" name="code">#masthead {
height:97px;
background-color:#F1F1F1;
color:#000;
width:400px;
}

#masthead h1 {
background:url(images/w3logo.jpg) no-repeat;
width:420px;
height:90px;
}

#masthead span {
display:none;
}</pre>
<p>Container wrapper:</p>
<pre class="css" name="code">#wrapper {
width:790px;
}</pre>
<p>Layout styles for the three main elements (content and the two side columns)</p>
<pre class="css" name="code">#content {
width:500px;
float:left;
display:inline; /* for IE */
margin-left:145px;
}

#mainNav {
width:145px;
float:left;
margin-left:-500px;
position:relative;
left:-140px;
}

#sideBar {
width:145px;
float:left;
margin-right:-145px; /* for IE */</code>
}
</pre>
<p>These last 3 rules are the key in this type of CSS layout. By using negative margins we can put the content at the beginning of the source. You can view the final result <a href="http://raymondselda.com/test/w3schools.htm">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/css-layout-w3schools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scenery CSS Tweak</title>
		<link>http://www.raymondselda.com/little-wordpress-problem-solved/</link>
		<comments>http://www.raymondselda.com/little-wordpress-problem-solved/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 03:02:21 +0000</pubDate>
		<dc:creator>Raymond Selda</dc:creator>
				<category><![CDATA[XHTML and CSS]]></category>

		<guid isPermaLink="false">http://raymondselda.com/little-wordpress-problem-solved/</guid>
		<description><![CDATA[I want to share this to everyone who&#8217;s using the &#8220;Scenery&#8221; theme so you won&#8217;t be kicking yourself in the end. It all began in my homepage. I&#8217;m a little OC so I started noticing that my entry paragraphs didn&#8217;t look like normal paragraphs. I wanted my entries to have a top and bottom margin. [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />I want to share this to everyone who&#8217;s using the &#8220;Scenery&#8221; theme so you won&#8217;t be kicking yourself in the end.</p>
<p>It all began in my homepage. I&#8217;m a little OC so I started noticing that my entry paragraphs didn&#8217;t look like normal paragraphs. I wanted my entries to have a top and bottom margin. So I checked my WP editor and for countless times modified my article, put line break and paragraph tags in the code view and eventually re-installed everything! After all of the work the line breaks still wasn&#8217;t showing.</p>
<p><span id="more-3"></span></p>
<ul class="egg">
<li><a href="http://www.raymondselda.com/" class="internal">xhtml prototyping</a></li>
<li><a href="http://www.raymondselda.com/portfolio/" class="internal">prototyping with xhtml</a></li>
<li><a href="http://www.raymondselda.com/about/" class="internal">xhtml wireframes</a></li>
<li><a href="http://www.raymondselda.com/contact/" class="internal">prototyping techniques</a></li>
<li><a href="http://www.raymondselda.com/website-monitoring-tools-to-help-prevent-downtime/" class="internal">prototype xhtml model</a></li>
</ul>
<p>I then decided to take a look at the theme from the <a title="Scenery WordPress Theme" href="http://www.wpdemo.kaushalsheth.com/index.php?wptheme=Scenery" target="_blank">theme viewer</a> and saw that the paragraphs didn&#8217;t have the top and bottom margins as well. It was all the template&#8217;s fault! hahaha. I checked the structure and of course the stylesheet. There was this little CSS rule:</p>
<pre class="css" name="code">
p { margin:0; padding:0; }
</pre>
<p>As you can see this was the rule that&#8217;s been giving me the trouble.  I then decided to edit the rule by turning it into:</p>
<pre class="css" name="code">p { line-height:1.5em; margin-top:1.5em; margin-bottom:1.5em; }</pre>
<p>This rule based on an <a title="Compose to a Vertical Rhythm by Richard Rutter" href="http://24ways.org/2006/compose-to-a-vertical-rhythm" target="_blank">article</a> by <a title="Richard Rutter's personal website" href="http://clagnut.com/" target="_blank">Richard Rutter</a> did all the trick! The paragraphs were styled according to my liking  but there was one minor catch. It also affects the date styling for an entry! So I&#8217;m forced to switch back to the previous CSS for paragraphs and added a new rule instead:</p>
<pre class="css" name="code">
#right-column .box .entry p {
line-height:1.5em;
margin-top:1.5em;
margin-bottom:1.5em;
}</pre>
<p>I decided to forcibly apply a rule to target the paragraph entry and lucky for me it didn&#8217;t explode in IE! Hope this article will somewhat ease the burden when trying to modify the Scenery theme or any stylesheet in general that you&#8217;re dealing with. Of course comments and reactions are welcome. Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raymondselda.com/little-wordpress-problem-solved/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

