<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6925512389578633076</id><updated>2011-08-17T07:08:45.684-07:00</updated><title type='text'>CSS Solution</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-6129615484146983978</id><published>2008-07-12T02:05:00.000-07:00</published><updated>2008-07-12T02:11:06.356-07:00</updated><title type='text'>Positioning with DIV</title><content type='html'>This tutorial examines the different layout properties available in CSS: position:static, position:relative, position:absolute, and float.&lt;br /&gt;&lt;span style="font-size:180%;"&gt;1. position:static&lt;/span&gt;&lt;br /&gt;The default positioning for all elements is position:static, which means the element is not positioned and occurs where it normally would in the document.&lt;br /&gt;Normally you wouldn’t specify this unless you needed to override a positioning that had been previously set.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1 {&lt;br /&gt;position:static;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;2. position:relative&lt;/span&gt;&lt;br /&gt;If you specify position:relative, then you can use top or bottom, and left or right to move the element relative to where it would normally occur in the document.&lt;br /&gt;Let’s move div-1 down 20 pixels, and to the left 40 pixels:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1 {&lt;br /&gt;position:relative;&lt;br /&gt;top:20px;&lt;br /&gt;left:-40px;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;Notice the space where div-1 normally would have been if we had not moved it: now it is an empty space. The next element (div-after) did not move when we moved div-1. That’s because div-1 still occupies that original space in the document, even though we have moved it.&lt;br /&gt;It appears that position:relative is not very useful, but it will perform an important task later in this tutorial.&lt;br /&gt;&lt;span style="font-size:180%;"&gt;3. position:absolute&lt;/span&gt;&lt;br /&gt;When you specify position:absolute, the element is removed from the document and placed exactly where you tell it to go.&lt;br /&gt;Let’s move div-1a to the top right of the page:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1a {&lt;br /&gt;position:absolute;&lt;br /&gt;top:0;&lt;br /&gt;right:0;&lt;br /&gt;width:200px;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;Notice that this time, since div-1a was removed from the document, the other elements on the page were positioned differently: div-1b, div-1c, and div-after moved up since div-1a was no longer there.&lt;br /&gt;Also notice that div-1a was positioned in the top right corner of the page. It’s nice to be able to position things directly the page, but it’s of limited value.&lt;br /&gt;What I really want is to position div-1a relative to div-1. And that’s where relative position comes back into play.&lt;br /&gt;Footnotes&lt;br /&gt;There is a bug in the Windows IE browser: if you specify a relative width (like “width:50%”) then the width will be based on the parent element instead of on the positioning element.&lt;br /&gt;&lt;span style="font-size:180%;"&gt;4. position:relative + position:absolute&lt;/span&gt;&lt;br /&gt;If we set relative positioning on div-1, any elements within div-1 will be positioned relative to div-1. Then if we set absolute positioning on div-1a, we can move it to the top right of div-1:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1 {&lt;br /&gt;position:relative;&lt;br /&gt;}&lt;br /&gt;#div-1a {&lt;br /&gt;position:absolute;&lt;br /&gt;top:0;&lt;br /&gt;right:0;&lt;br /&gt;width:200px;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;5. two column absolute&lt;/span&gt;&lt;br /&gt;Now we can make a two-column layout using relative and absolute positioning!&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1 {&lt;br /&gt;position:relative;&lt;br /&gt;}&lt;br /&gt;#div-1a {&lt;br /&gt;position:absolute;&lt;br /&gt;top:0;&lt;br /&gt;right:0;&lt;br /&gt;width:200px;&lt;br /&gt;}&lt;br /&gt;#div-1b {&lt;br /&gt;position:absolute;&lt;br /&gt;top:0;&lt;br /&gt;left:0;&lt;br /&gt;width:200px;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;One advantage to using absolute positioning is that we can position the elements in any order on the page, regardless of the order they appear in the HTML. So I put div-1b before div-1a.&lt;br /&gt;But wait - what happened to the other elements? They are being obscured by the absolutely positioned elements. What can we do about that?&lt;br /&gt;&lt;span style="font-size:180%;"&gt;6. two column absolute height&lt;br /&gt;&lt;/span&gt;One solution is to set a fixed height on the elements.&lt;br /&gt;But that is not a viable solution for most designs, because we usually do not know how much text will be in the elements, or the exact font sizes that will be used.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1 {&lt;br /&gt;position:relative;&lt;br /&gt;height:250px;&lt;br /&gt;}&lt;br /&gt;#div-1a {&lt;br /&gt;position:absolute;&lt;br /&gt;top:0;&lt;br /&gt;right:0;&lt;br /&gt;width:200px;&lt;br /&gt;}&lt;br /&gt;#div-1b {&lt;br /&gt;position:absolute;&lt;br /&gt;top:0;&lt;br /&gt;left:0;&lt;br /&gt;width:200px;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;7. float&lt;/span&gt;&lt;br /&gt;For variable height columns, absolute positioning does not work, so let’s come up with another solution.&lt;br /&gt;We can “float” an element to push it as far as possible to the right or to the left, and allow text to wrap around it. This is typically used for images, but we will use it for more complex layout tasks (because it’s the only tool we have).&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1a {&lt;br /&gt;float:left;&lt;br /&gt;width:200px;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;8. float columns&lt;/span&gt;&lt;br /&gt;If we float one column to the left, then also float the second column to the left, they will push up against each other.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1a {&lt;br /&gt;float:left;&lt;br /&gt;width:150px;&lt;br /&gt;}&lt;br /&gt;#div-1b {&lt;br /&gt;float:left;&lt;br /&gt;width:150px;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;9. float columns with clear&lt;/span&gt;&lt;br /&gt;Then after the floating elements we can “clear” the floats to push down the rest of the content.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#div-1a {&lt;br /&gt;float:left;&lt;br /&gt;width:190px;&lt;br /&gt;}&lt;br /&gt;#div-1b {&lt;br /&gt;float:left;&lt;br /&gt;width:190px;&lt;br /&gt;}&lt;br /&gt;#div-1c {&lt;br /&gt;clear:both;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;10. Disclaimer &amp;amp; Resources&lt;/span&gt;&lt;br /&gt;These examples are extremely simplified and do not trigger some of the CSS bugs in the Windows IE browser (of which there are many).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-6129615484146983978?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/6129615484146983978/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=6129615484146983978' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/6129615484146983978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/6129615484146983978'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/07/positioning-with-div.html' title='Positioning with DIV'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-7031068921414307146</id><published>2008-07-09T08:22:00.000-07:00</published><updated>2008-07-09T08:38:26.645-07:00</updated><title type='text'>Stylizer</title><content type='html'>&lt;a href="http://skybound.ca/stylizer"&gt;Stylizer&lt;/a&gt; (Windows)&lt;br /&gt;Two things make Stylizer a slightly different mindset than the others: it uses a grid interface instead of a text editor, and it has Firefox and IE embedded, so when the user changes the CSS, it’s propagated right away to the browser. The grid system makes CSS feel like “CSS on rails”, because it makes it impossible to have any CSS errors. It lets Stylizer do things such as a Firebug-like element inspector that lets the user diagnose and edit in the same place, and an editable, spotlight-style filtering system.&lt;br /&gt;&lt;br /&gt;CSS Editor Screenshot&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_cfIvRhuVMew/SHTbKJdAvHI/AAAAAAAAAAg/MztFBHxeQGE/s1600-h/bound.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_cfIvRhuVMew/SHTbKJdAvHI/AAAAAAAAAAg/MztFBHxeQGE/s320/bound.jpg" alt="" id="BLOGGER_PHOTO_ID_5221038835412024434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In Stylizer dimensions can be adjusted on the fly. To change a height, a margin, or a background-position, the user can literally click on the value, drag the mouse around, and watch the element be manipulated in real time. Colors are the same. The user can click on them, drag the mouse, and see the color of the text, background, or border change in the browser, in real-time, creating a “Photoshop for the web” type feeling. Stylizer Basic is free. The premium version (Price: $69.95) isn’t that different, however in a free version it’s impossible to filter a style sheet to only show rules with specified content.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-7031068921414307146?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/7031068921414307146/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=7031068921414307146' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/7031068921414307146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/7031068921414307146'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/07/stylizer.html' title='Stylizer'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_cfIvRhuVMew/SHTbKJdAvHI/AAAAAAAAAAg/MztFBHxeQGE/s72-c/bound.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-7655877297262872914</id><published>2008-07-04T22:56:00.000-07:00</published><updated>2008-07-04T22:57:56.249-07:00</updated><title type='text'>External Style Sheet</title><content type='html'>This will be very useful when we have so many styles defined. We will want to take all the styles in to a different file. That's what we do in External CSS. We take all the styles in a external file and map it with the html page.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;We will put the following style in a text file say mystyle.css&lt;br /&gt;&lt;style&gt;&lt;br /&gt;.mystyle1&lt;br /&gt;{&lt;br /&gt;color: green;&lt;br /&gt;background-color: orange;&lt;br /&gt;}&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In our head we will link to the external style sheet using the tag link in header portion&lt;br /&gt;Tag:&lt;br /&gt;&lt;br /&gt;&lt;'head&gt;&lt;br /&gt;&lt;'link rel="stylesheet" type="text/css" href="mystyle.css"/&gt;&lt;br /&gt;&lt;'/head&gt;&lt;br /&gt;(Note : ignore the "'" text )&lt;br /&gt;The names used for user defined styles should not belong to any html tag. We set the style for the tag using the attribute "class".&lt;br /&gt;EX1:&lt;br /&gt;&lt;font class=mystyle1&gt; MY STYLE &lt;/font&gt;&lt;br /&gt;Result1: MY STYLE&lt;br /&gt;&lt;br /&gt;EX1:&lt;br /&gt;&lt;a href="index.php" class=mystyle1&gt; MY STYLE &lt;/a&gt;&lt;br /&gt;Result1: MY STYLE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-7655877297262872914?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/7655877297262872914/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=7655877297262872914' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/7655877297262872914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/7655877297262872914'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/07/external-style-sheet.html' title='External Style Sheet'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-407865601449902664</id><published>2008-06-30T11:21:00.000-07:00</published><updated>2008-06-30T11:42:28.253-07:00</updated><title type='text'>CSS Sprite Navigation Tutorial</title><content type='html'>This tutorial teaches how to build a css navigation using sprite images. With the mobile web becoming more important than ever before, load time and the size of a web site are some of the biggest factors to consider when developing a site for mobile users.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HOW DOES SPRITING HELP?&lt;br /&gt;Sprite images takes the many images of a navigation and pushes them all into one larger image. Although the larger image may be significantly bigger than the individual buttons, you can usually save some size from all of the images added together. More importantly however, is the fact that the server only has to load one image to view your site navigation. This can greatly minimize server connections and can take seconds off of your load time. This technology has saved companies like apple and yahoo thousands of dollars a month on server requests.&lt;br /&gt;&lt;br /&gt;1) GETTING STARTED IN PHOTOSHOP&lt;br /&gt;I have started by designing my navigation in photoshop, slicing up my images and then combining my slices. Each button looks like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_cfIvRhuVMew/SGknIMvS8BI/AAAAAAAAAAY/Wsk53bhPnk0/s1600-h/screenshot_notes02.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp1.blogger.com/_cfIvRhuVMew/SGknIMvS8BI/AAAAAAAAAAY/Wsk53bhPnk0/s320/screenshot_notes02.jpg" alt="" id="BLOGGER_PHOTO_ID_5217744665097465874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) WHIP-UP SOME HTML&lt;br /&gt;After collecting all of my images I dive into writing some simple html for the navigation. Here is what it looks like.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_cfIvRhuVMew/SGkm3bUbCnI/AAAAAAAAAAQ/7Li77E-nbfM/s1600-h/screenshot_notes.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp3.blogger.com/_cfIvRhuVMew/SGkm3bUbCnI/AAAAAAAAAAQ/7Li77E-nbfM/s320/screenshot_notes.jpg" alt="" id="BLOGGER_PHOTO_ID_5217744376953506418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea width="300"&gt;&lt;br /&gt;&lt;div class="nav_container"&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul id="navMenu"&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;a class="navAbout" title="About" href="http://www.blogger.com/post-edit.g?blogID=6925512389578633076&amp;amp;postID=407865601449902664#"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;a class="navServices_a" title="Services" href="http://www.blogger.com/post-edit.g?blogID=6925512389578633076&amp;amp;postID=407865601449902664#"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;a class="navPortfolio" title="Portfolio" href="http://www.blogger.com/post-edit.g?blogID=6925512389578633076&amp;amp;postID=407865601449902664#"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;a class="navBlog" title="Blog" href="http://www.blogger.com/post-edit.g?blogID=6925512389578633076&amp;amp;postID=407865601449902664#"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;a class="navContact" title="Contact" href="http://www.blogger.com/post-edit.g?blogID=6925512389578633076&amp;amp;postID=407865601449902664#"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;Putting your navigation in a ul list helps organize your navigation and makes it much easier to change and edit through css. Each button has been given a class which is easily defined and easy to edit in the css file. To set a button to active you simply add _a to the class name. Have a look at my services button as an example. Now lets take a look at the meat of the navigation… the css.&lt;br /&gt;&lt;br /&gt;3) STIR A LITTLE CSS INTO THE MIX&lt;br /&gt;Each button has a style for it’s 3 different states. Here is what the about button looks like:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;a.navAbout, a.navAbout_a {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;display:block;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;float:left;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;width:148px;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;height:58px;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;background: url(”../images/about_button.jpg”);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;a.navAbout:hover {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;background: url(”../images/about_button.jpg”) 0 116px;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;a.navAbout_a {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;background: url(”../images/about_button.jpg”) 0 58px;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first navAbout defines what the button will look like. This defines the width and height of the button and the background image.&lt;br /&gt;The hover state uses the same width and height, but shifts the x and y coordinates of the background image to reveal the rollover state of that sprite. The same goes for the active state of the image.&lt;br /&gt;The css is a little more complex, but still fairly easy to follow. Have a look and good luck. Feel free to use this navigation anywhere you like, and if you think of it post a comment or shoot us an email letting us know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-407865601449902664?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/407865601449902664/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=407865601449902664' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/407865601449902664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/407865601449902664'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/css-sitemap-tutorial.html' title='CSS Sprite Navigation Tutorial'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_cfIvRhuVMew/SGknIMvS8BI/AAAAAAAAAAY/Wsk53bhPnk0/s72-c/screenshot_notes02.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-8650313076001267685</id><published>2008-06-28T02:34:00.000-07:00</published><updated>2008-06-28T02:39:09.361-07:00</updated><title type='text'>The Display Property</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;A key trick to the manipulation of HTML elements is understanding that there's nothing at all special about how most of them work. Most pages could be made up from just a few tags that can be styled any which way you choose. The browser's default visual representation of most HTML elements consist of varying font styles, margins, padding and, essentially, display types.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The most fundamental types of display are inline, block-line and none and they can be manipulated with the &lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/cssproperties/display/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;display&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; property and the values inline, block and none.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#ff0000;"&gt;inline &lt;/span&gt;does just what it says - elements that are displayed inline follow the flow of a line. Strong, anchor and emphasis elements are traditionally displayed inline.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;block&lt;/span&gt; puts a line break before and after the element. Header and paragraph elements are examples of elements that are traditionally displayed block-line.&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;none,&lt;/span&gt; well, doesn't display the element, which may sound pretty us&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;eless but can be used to good effect with accessibility considerations (see &lt;/span&gt;&lt;a href="http://htmldog.com/guides/htmladvanced/links/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Accessible Links&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;), alternate stylesheets or advanced hover effects.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The original default style-sheet for this site for example, manipulates a few traditionally in-line and block-line elements to fit the design.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt;h1 {     display: inline;     font-size: 2em; } &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt;#header p {     display: inline;     font-size: 0.9em;     padding-left: 2em; } &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This enabled the title 'htmldog.com' and the tag-line to be displayed next to each other rather than above and below each other while maintaining optimum accessibility.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt;#navigation, #seeAlso, #comments, #standards {     display: none; } &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The above code is used in the print-only styles to basically 'turn-off' those elements, such as navigation, which are insignificant to the single page.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;display: none and visibility: hidden vary in that display: none takes the element completely out of play, where as visibility: hidden keeps the element and its flow in place without visually representing its contents. For example, if the second paragraph of 3 were set to display: none, the first paragraph would run straight in to the third whereas if it were set to visibility: hidden, there would be a gap where the paragraph should be.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-8650313076001267685?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/8650313076001267685/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=8650313076001267685' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/8650313076001267685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/8650313076001267685'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/display-property.html' title='The Display Property'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-3891611679318466246</id><published>2008-06-28T02:17:00.000-07:00</published><updated>2008-06-28T02:21:04.990-07:00</updated><title type='text'>CSS Property: border-style, border-top-style, border-right-style, border-bottom-style, border-left-style</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;border-style specifies the style of an element's complete border.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;border-top-style specifies the style of an element's top border.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;border-right-style specifies the style of an element's right border.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;border-bottom-style specifies the style of an element's bottom border.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;border-left-style specifies the style of an element's left border.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:trebuchet ms;"&gt;Possible Values&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;ul&gt;&lt;li&gt;none - no border. &lt;/li&gt;&lt;li&gt;dotted - A series of dots (IE will display this as dashes if the border width is one pixel). &lt;/li&gt;&lt;li&gt;dashed - A series of dashes. &lt;/li&gt;&lt;li&gt;solid - A solid line. &lt;/li&gt;&lt;li&gt;double - Two solid lines. &lt;/li&gt;&lt;li&gt;groove - Patterned border that is supposed to represent a carved groove (opposite of idge). Renders differently in different browsers.&lt;/li&gt;&lt;li&gt; ridge - Patterned border that is supposed to represent an embossed ridge (opposite of roove). Renders differently in different browsers. &lt;/li&gt;&lt;li&gt;inset - Patterned border that is supposed to represent an inset depression (opposite of outset). Renders differently in different browsers. &lt;/li&gt;&lt;li&gt;outset - Patterned border that is supposed to represent an outset extrusion (opposite of inset). Renders differently in different browsers. &lt;/li&gt;&lt;li&gt;hidden - Used with tables. Same as "none", except where there are conflicting borders. Not supported by IE. &lt;/li&gt;&lt;li&gt;border-style can have:&lt;br /&gt;one value, such as solid, to specify the style of the entire border&lt;br /&gt;two values, such as solid dotted, to specify the style of top/bottom (first value) and right/left (second value) borders&lt;br /&gt;three values, such as solid dotted dashed, to specify the style of top (first value), right/left (second value) and bottom (third value) borders&lt;br /&gt;or four values, such as solid dotted dashed groove, to specify the style of top, right, bottom and left borders respectively &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Example&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;.curtains { border-right-style: solid; }          &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;.blinds { border-style: dotted dashed; }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-3891611679318466246?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/3891611679318466246/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=3891611679318466246' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/3891611679318466246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/3891611679318466246'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/css-property-border-style-border-top.html' title='CSS Property: border-style, border-top-style, border-right-style, border-bottom-style, border-left-style'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-4325955449515739038</id><published>2008-06-28T02:15:00.000-07:00</published><updated>2008-06-28T02:17:02.169-07:00</updated><title type='text'>CSS Property: background-repeat</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;Specifies how a background image will repeat itself within a box.&lt;/span&gt; &lt;br /&gt;&lt;p&gt;&lt;span style="font-family:trebuchet ms;"&gt;Possible Values&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;inherit &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;repeat (default) - tiled, repeating the image both horizontally and vertically. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;repeat-x - repeating the image horizontally only. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;repeat-y - repeating the image vertically only. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:trebuchet ms;"&gt;no-repeat - not repeating the image at all, showing just one instance. &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Example&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt;#header { background-repeat: repeat-x; }&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-4325955449515739038?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/4325955449515739038/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=4325955449515739038' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/4325955449515739038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/4325955449515739038'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/css-property-background-repeat.html' title='CSS Property: background-repeat'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-4385481902398669825</id><published>2008-06-28T02:09:00.000-07:00</published><updated>2008-06-28T02:11:57.256-07:00</updated><title type='text'>Background Images</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;There are a number of properties involved in the manipulation of background images.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Luckily, the property &lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/cssproperties/background/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;background&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; can deal with them all.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt;body&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#ff0000;"&gt; {     background: white url(http://www.htmldog.com/images/bg.gif) no-repeat top right; }&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This amalgamates these properties:&lt;br /&gt;&lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/cssproperties/background-color/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;background-color&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;, which we have come across before.&lt;br /&gt;&lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/cssproperties/background-image/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;background-image&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;, which is the location of the image itself.&lt;br /&gt;&lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/cssproperties/background-repeat/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;background-repeat&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;, which is how the image repeats itself. This can be repeat (equivalent to a 'tile' effect across the whole background), repeat-y (repeating on the 'y-axis', above and below), repeat-x (repeating on the 'x-axis', side-by-side) or no-repeat (which shows just one instance of the image).&lt;br /&gt;&lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/cssproperties/background-position/"&gt;&lt;span style="font-family:trebuchet ms;"&gt;background-position&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;, which can be top, center, bottom, left, right or any sensible combination, such as above. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;Background-images can be used in most HTML elements - not just for the whole page (body) and can be used for simple but effective results, such as shaped corners.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It is easy to get carried away with background images and plaster them all over your web pages. Some visually hyperactive people might believe it looks good to have a full-on brightly coloured photograph tiled across the background of a page, giving the user a Mensa-esque challenge in deciphering the foreground text. This is an extreme example, but the fact is that the most user-friendly, readable text is black on a plain white background or white on a plain black background (there is also a suggestion that a slightly off-white or off-black background is better as this reduces glare).&lt;br /&gt;So, the best use of background images is either to use them where there will be no content over the top or making the background image very light, which would also reduce the file size of the image, because there should be less colours involved (supposing you are using an indexed-colour format, such as GIF).&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-4385481902398669825?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/4385481902398669825/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=4385481902398669825' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/4385481902398669825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/4385481902398669825'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/background-images.html' title='Background Images'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-1111522780861199482</id><published>2008-06-28T02:02:00.000-07:00</published><updated>2008-06-28T02:06:19.405-07:00</updated><title type='text'>Pseudo Classes</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;Pseudo classes are bolted on to selectors to specify a state or relation to the selector. They take the form of selector:pseudo class { property: value; }, simply with a colon in between the selector and the pseudo class.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Many CSS proposals are not supported by all browsers, but there are four pseudo classes that can be used safely when applied to links.&lt;br /&gt;link is for an unvisited link.&lt;br /&gt;visited is for a link to a page that has already been visited.&lt;br /&gt;active is for a link when it is gains focus (for example, when it is clicked on).&lt;br /&gt;hover is for a link when the cursor is held over it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt; a.snowman:link { color: blue; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt; a.snowman:visited { color: purple; } &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;color:#ff0000;"&gt; a.snowman:active { color: red; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="color:#ff0000;"&gt; a.snowman:hover { text-decoration: none;  color: blue; background-color: yellow; }&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-1111522780861199482?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/1111522780861199482/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=1111522780861199482' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/1111522780861199482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/1111522780861199482'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/pseudo-classes.html' title='Pseudo Classes'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-342200837069219368</id><published>2008-06-28T01:59:00.000-07:00</published><updated>2008-06-28T02:02:04.158-07:00</updated><title type='text'>Grouping and Nesting</title><content type='html'>&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Grouping&lt;br /&gt;You can give the same properties to a number of selectors without having to repeat them by separating the selectors by commas.&lt;br /&gt;For example, if you have something like:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;color:#ff0000;"&gt;h2 {     color: red; }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;color:#ff0000;"&gt; .thisOtherClass {     color: red; } &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;span style="color:#ff0000;"&gt;.yetAnotherClass {     color: red; }&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;You could make it:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;span style="color:#ff0000;"&gt;h2, .thisOtherClass, .yetAnotherClass {     color: red; }&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:130%;color:#3333ff;"&gt;&lt;strong&gt;Nesting&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;If the CSS is structured well, there shouldn't be a need to use many class or ID selectors. This is because you can specify properties to selectors within other selectors.&lt;br /&gt;For example:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;color:#ff0000;"&gt;#top {     background-color: #ccc;     padding: 1em } &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;color:#ff0000;"&gt;#top h1 {     color: #ff0; } &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;span style="color:#ff0000;"&gt;#top p {     color: red;     font-weight: bold; }&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;This is because, by separating selectors with spaces, &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;we are saying '&lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/htmltags/h1h2h3h4h5h6/"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;h1&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt; inside ID top is colour #ff0' and '&lt;/span&gt;&lt;a class="acode" href="http://htmldog.com/reference/htmltags/p/"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;p&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt; inside ID top is red and bold'.&lt;br /&gt;This can get quite complicated (because it can go for more than two levels, such as this inside this inside this inside this etc.) and may take a bit of practice.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-342200837069219368?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/342200837069219368/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=342200837069219368' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/342200837069219368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/342200837069219368'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/grouping-and-nesting.html' title='Grouping and Nesting'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6925512389578633076.post-8655173228254079530</id><published>2008-06-28T01:35:00.000-07:00</published><updated>2008-06-28T01:56:44.152-07:00</updated><title type='text'>Class and ID Selectors</title><content type='html'>&lt;span style="font-family:georgia;font-size:85%;"&gt;In the CSS, a class selector is a name preceded by a full stop (.) and an ID selector is a name preceded by a hash character (#).&lt;br /&gt;So the CSS might look something like:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#ff0000;"&gt;#top { background-color: #ccc; padding: 1em }&lt;br /&gt;.intro { color: red; font-weight: bold; } &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The HTML refers to the CSS by using the attributes id and class. It could look something like this:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="font-size:85%;"&gt;&lt;textarea style="WIDTH: 358px; HEIGHT: 104px" rows="4" cols="38"&gt;&lt;div id="top"&gt; &lt;br /&gt;&lt;h1&gt;Chocolate curry&lt;/h1&gt;&lt;br /&gt;&lt;p class="intro"&gt;This is my recipe for making curry purely with chocolate&lt;/p&gt; &lt;p class="intro"&gt;Mmm mm mmmmm&lt;/p&gt; &lt;br /&gt;&lt;/div&gt;&lt;/textarea&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="color:#000000;"&gt;The difference between an ID and a class is that an ID can be used to identify one element, whereas a class can be used to identify more than one.&lt;br /&gt;You can also apply a selector to a specific HTML element by simply stating the HTML selector first, so p.jam { whatever } will only be applied to paragraph elements that have the class 'jam'&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6925512389578633076-8655173228254079530?l=cssonly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cssonly.blogspot.com/feeds/8655173228254079530/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6925512389578633076&amp;postID=8655173228254079530' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/8655173228254079530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6925512389578633076/posts/default/8655173228254079530'/><link rel='alternate' type='text/html' href='http://cssonly.blogspot.com/2008/06/class-and-id-selectors.html' title='Class and ID Selectors'/><author><name>Berry</name><uri>http://www.blogger.com/profile/05651691257322281016</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://2.bp.blogspot.com/-YSp3iv2UcE4/TkvLZHqsfnI/AAAAAAAAAWM/NRQEvT_RYJ0/s220/berry_close_up.jpg'/></author><thr:total>0</thr:total></entry></feed>
