<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CornerPixel Blog - CSS</title>
    <link>http://blog.cornerpixel.net/</link>
    <description>Rant by Mike</description>
    <language>en-us</language>
    <copyright>2008-2009 CornerPixel LLC</copyright>
    <lastBuildDate>Mon, 30 Nov 2009 00:07:10 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>blog@cornerpixel.net</managingEditor>
    <webMaster>blog@cornerpixel.net</webMaster>
    <item>
      <trackback:ping>http://blog.cornerpixel.net/Trackback.aspx?guid=1bcac4b7-4b07-4cac-bb6a-044a77e59d9a</trackback:ping>
      <pingback:server>http://blog.cornerpixel.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.cornerpixel.net/PermaLink,guid,1bcac4b7-4b07-4cac-bb6a-044a77e59d9a.aspx</pingback:target>
      <dc:creator>Mike</dc:creator>
      <wfw:comment>http://blog.cornerpixel.net/CommentView,guid,1bcac4b7-4b07-4cac-bb6a-044a77e59d9a.aspx</wfw:comment>
      <wfw:commentRss>http://blog.cornerpixel.net/SyndicationService.asmx/GetEntryCommentsRss?guid=1bcac4b7-4b07-4cac-bb6a-044a77e59d9a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I have been designing a site for a customer that is going to rely on having a good
looking and functional DNN Core Repository.
</p>
        <p>
I found that creating a template for the repository was pretty simple after I found
some <a href="http://www.dotnetnuke.com/Development/Forge/ModuleRepository/Downloads/tabid/831/Default.aspx" target="_blank">online
documentation on the DNN Repository</a>.
</p>
        <p>
I found that in the /wwwroot/DesktopModules/Repository/Templates/ directory I could
add my own template which will show up under the Repository Skin drop down box. 
As shown below.
</p>
        <p>
          <a href="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DotNetNukeRepositoryBordersinSafariandOp_E27C/image.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="DotNetNuke Repository dropdown for choosing the template or skin for your repository" border="0" alt="DotNetNuke Repository dropdown for choosing the template or skin for your repository" src="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DotNetNukeRepositoryBordersinSafariandOp_E27C/image_thumb.png" width="225" height="260" />
          </a>
          <br />
As you notice the bottom one is the one I added.
</p>
        <h6>Now the Issue
</h6>
        <p>
I was very excited to make my own repository template, but soon found I was getting
pesky borders around the tables of the repository in the Safari and Opera browser.  
</p>
        <p>
I tried editing the repository.aspx file, but was uncomfortable doing that because
that is going beyond a simple template.
</p>
        <p>
So then I did some experiments with the two browsers having the issues.  (Safari
and Opera)  You can see my <a href="http://www.cornerpixel.net/demo/dnn-repository-borders/" target="_blank">demo
page</a> and how I ended up fixing the issue.  (NOTE: for the demo page to make
sense you need to view it in either Safari or Opera)
</p>
        <p>
Basically to fix the issue I ended up using CSS to tell the tables inside the div
I use for Content to have no borders.  Below is the CSS. (in the example below
the DIV that the tables are in has the class bordernone)
</p>
        <blockquote>
          <p>
.bordernone table, 
<br />
.bordernone td, 
<br />
.bordernone tr, 
<br />
.bordernone tbody 
<br />
{ 
<br />
    border: none !important 
<br />
}
</p>
        </blockquote>
        <p>
I hope that all makes sense.  Please feel free to email me if you have questions. 
You can also make a comment here with a question, or heck, a better way to fix this
issue.
</p>
        <img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=1bcac4b7-4b07-4cac-bb6a-044a77e59d9a" />
      </body>
      <title>DotNetNuke Repository – Borders in Safari and Opera</title>
      <guid isPermaLink="false">http://blog.cornerpixel.net/PermaLink,guid,1bcac4b7-4b07-4cac-bb6a-044a77e59d9a.aspx</guid>
      <link>http://blog.cornerpixel.net/2009/11/30/DotNetNuke+Repository+Borders+In+Safari+And+Opera.aspx</link>
      <pubDate>Mon, 30 Nov 2009 00:07:10 GMT</pubDate>
      <description>&lt;p&gt;
I have been designing a site for a customer that is going to rely on having a good
looking and functional DNN Core Repository.
&lt;/p&gt;
&lt;p&gt;
I found that creating a template for the repository was pretty simple after I found
some &lt;a href="http://www.dotnetnuke.com/Development/Forge/ModuleRepository/Downloads/tabid/831/Default.aspx" target="_blank"&gt;online
documentation on the DNN Repository&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I found that in the /wwwroot/DesktopModules/Repository/Templates/ directory I could
add my own template which will show up under the Repository Skin drop down box.&amp;#160;
As shown below.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DotNetNukeRepositoryBordersinSafariandOp_E27C/image.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="DotNetNuke Repository dropdown for choosing the template or skin for your repository" border="0" alt="DotNetNuke Repository dropdown for choosing the template or skin for your repository" src="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DotNetNukeRepositoryBordersinSafariandOp_E27C/image_thumb.png" width="225" height="260" /&gt;&lt;/a&gt; 
&lt;br /&gt;
As you notice the bottom one is the one I added.
&lt;/p&gt;
&lt;h6&gt;Now the Issue
&lt;/h6&gt;
&lt;p&gt;
I was very excited to make my own repository template, but soon found I was getting
pesky borders around the tables of the repository in the Safari and Opera browser.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
I tried editing the repository.aspx file, but was uncomfortable doing that because
that is going beyond a simple template.
&lt;/p&gt;
&lt;p&gt;
So then I did some experiments with the two browsers having the issues.&amp;#160; (Safari
and Opera)&amp;#160; You can see my &lt;a href="http://www.cornerpixel.net/demo/dnn-repository-borders/" target="_blank"&gt;demo
page&lt;/a&gt; and how I ended up fixing the issue.&amp;#160; (NOTE: for the demo page to make
sense you need to view it in either Safari or Opera)
&lt;/p&gt;
&lt;p&gt;
Basically to fix the issue I ended up using CSS to tell the tables inside the div
I use for Content to have no borders.&amp;#160; Below is the CSS. (in the example below
the DIV that the tables are in has the class bordernone)
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
.bordernone table, 
&lt;br /&gt;
.bordernone td, 
&lt;br /&gt;
.bordernone tr, 
&lt;br /&gt;
.bordernone tbody 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; border: none !important 
&lt;br /&gt;
}
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
I hope that all makes sense.&amp;#160; Please feel free to email me if you have questions.&amp;#160;
You can also make a comment here with a question, or heck, a better way to fix this
issue.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=1bcac4b7-4b07-4cac-bb6a-044a77e59d9a" /&gt;</description>
      <comments>http://blog.cornerpixel.net/CommentView,guid,1bcac4b7-4b07-4cac-bb6a-044a77e59d9a.aspx</comments>
      <category>CSS</category>
      <category>DotNetNuke</category>
      <category>Web Standards</category>
    </item>
    <item>
      <trackback:ping>http://blog.cornerpixel.net/Trackback.aspx?guid=fd4183d1-1e7d-416e-afee-d0b10badf0df</trackback:ping>
      <pingback:server>http://blog.cornerpixel.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.cornerpixel.net/PermaLink,guid,fd4183d1-1e7d-416e-afee-d0b10badf0df.aspx</pingback:target>
      <dc:creator>Mike</dc:creator>
      <wfw:comment>http://blog.cornerpixel.net/CommentView,guid,fd4183d1-1e7d-416e-afee-d0b10badf0df.aspx</wfw:comment>
      <wfw:commentRss>http://blog.cornerpixel.net/SyndicationService.asmx/GetEntryCommentsRss?guid=fd4183d1-1e7d-416e-afee-d0b10badf0df</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I have been working on skinning <a href="http://www.mindtouch.com/" target="_blank">MindTouch
Deki Wiki</a> on and off for the last two weeks, maybe more, and I’ve gotten to a
point where I have one of my skins packaged and ready for <a href="http://deki.cornerpixel.net/Fiesta-Pixel-Spring" target="_blank">download</a>.
</p>
        <p>
I based the 4 skins I am working on, (to include Pixel-Spring) on the already popular
Fiesta skin that comes with MindTouch Deki Wiki.  Some day in the near, maybe
distant future I will create some skins that are a family of their own, but at the
moment I just wanted to play around with the skinning process of Deki Wiki. 
I’ve been quite happy with how easy it is to change the look and feel of Deki Wiki.
</p>
        <p>
I also made it a point not to change any of the php files and only change the style.css
sheet.  If I needed to over-ride anything in the _content.css sheet I included
it at the bottom of the style.css sheet with an !important attribute attached. 
The style.css sheet is commented so the user can see what any extra CSS is for. 
In doing this, I hope it will allow the Pixel Skins to be used for a long time to
come.  Basically as long as the fiesta skin is used.
</p>
        <p>
Another thing I allowed for was multiple <a href="http://deki.cornerpixel.net/Fiesta-Pixel-Spring/Background-Art" target="_blank">background
choices</a>.  I added seven background images and CSS for the user to place in
the control panel’s custom CSS page.  The background images come with the skin
package the user will find instructions on implementing them in the !NOTES.txt file. 
I am planning on making several more alternate backgrounds in the near future, but
first I need to get all four skins out and packaged.  (Before the end of the
week)
</p>
        <p>
          <a href="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DekiWikiSkinPixelSpringisavailablefordow_ACDA/templateBoxExample_2.jpg">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="templateBoxExample" border="0" alt="templateBoxExample" align="right" src="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DekiWikiSkinPixelSpringisavailablefordow_ACDA/templateBoxExample_thumb.jpg" width="240" height="228" />
          </a> Last
but not least, I included two extra templates in the !NOTES.txt file for the user
to add to their Deki Wiki website for a little more pizzazz.  The image to the
right is and example of the template box included in the Pixel-Spring skin. 
It is simple but adds an extra area for the user to have extra “Stuff”.
</p>
        <p>
There is a five step process to adding the templates, and the steps are easy to follow. 
You can find the instructions in the !NOTES.txt file.  
</p>
        <p>
I also have some instructional videos to help the users.  The quality of the
videos could be better, but I think they will help.
</p>
        <p>
 
</p>
        <p>
I guess that’s all to blog for now.  I hope to have all four of the Pixel skins
packaged as soon as possible, but for now feel free to download and use the Pixel-Spring
Skin.  If you have any questions about the skin, or how to do something, feel
free to email me.  <a href="mailto:admin@cornerpixel.net">admin@cornerpixel.net</a> 
I can’t promise I will respond same day, but I will try.
</p>
        <p>
~MikePixel
</p>
        <img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=fd4183d1-1e7d-416e-afee-d0b10badf0df" />
      </body>
      <title>Deki Wiki Skin “Pixel-Spring” is available for download</title>
      <guid isPermaLink="false">http://blog.cornerpixel.net/PermaLink,guid,fd4183d1-1e7d-416e-afee-d0b10badf0df.aspx</guid>
      <link>http://blog.cornerpixel.net/2009/02/04/Deki+Wiki+Skin+PixelSpring+Is+Available+For+Download.aspx</link>
      <pubDate>Wed, 04 Feb 2009 20:17:35 GMT</pubDate>
      <description>&lt;p&gt;
I have been working on skinning &lt;a href="http://www.mindtouch.com/" target="_blank"&gt;MindTouch
Deki Wiki&lt;/a&gt; on and off for the last two weeks, maybe more, and I’ve gotten to a
point where I have one of my skins packaged and ready for &lt;a href="http://deki.cornerpixel.net/Fiesta-Pixel-Spring" target="_blank"&gt;download&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I based the 4 skins I am working on, (to include Pixel-Spring) on the already popular
Fiesta skin that comes with MindTouch Deki Wiki.&amp;#160; Some day in the near, maybe
distant future I will create some skins that are a family of their own, but at the
moment I just wanted to play around with the skinning process of Deki Wiki.&amp;#160;
I’ve been quite happy with how easy it is to change the look and feel of Deki Wiki.
&lt;/p&gt;
&lt;p&gt;
I also made it a point not to change any of the php files and only change the style.css
sheet.&amp;#160; If I needed to over-ride anything in the _content.css sheet I included
it at the bottom of the style.css sheet with an !important attribute attached.&amp;#160;
The style.css sheet is commented so the user can see what any extra CSS is for.&amp;#160;
In doing this, I hope it will allow the Pixel Skins to be used for a long time to
come.&amp;#160; Basically as long as the fiesta skin is used.
&lt;/p&gt;
&lt;p&gt;
Another thing I allowed for was multiple &lt;a href="http://deki.cornerpixel.net/Fiesta-Pixel-Spring/Background-Art" target="_blank"&gt;background
choices&lt;/a&gt;.&amp;#160; I added seven background images and CSS for the user to place in
the control panel’s custom CSS page.&amp;#160; The background images come with the skin
package the user will find instructions on implementing them in the !NOTES.txt file.&amp;#160;
I am planning on making several more alternate backgrounds in the near future, but
first I need to get all four skins out and packaged.&amp;#160; (Before the end of the
week)
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DekiWikiSkinPixelSpringisavailablefordow_ACDA/templateBoxExample_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="templateBoxExample" border="0" alt="templateBoxExample" align="right" src="http://blog.cornerpixel.net/content/binary/WindowsLiveWriter/DekiWikiSkinPixelSpringisavailablefordow_ACDA/templateBoxExample_thumb.jpg" width="240" height="228" /&gt;&lt;/a&gt; Last
but not least, I included two extra templates in the !NOTES.txt file for the user
to add to their Deki Wiki website for a little more pizzazz.&amp;#160; The image to the
right is and example of the template box included in the Pixel-Spring skin.&amp;#160;
It is simple but adds an extra area for the user to have extra “Stuff”.
&lt;/p&gt;
&lt;p&gt;
There is a five step process to adding the templates, and the steps are easy to follow.&amp;#160;
You can find the instructions in the !NOTES.txt file.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
I also have some instructional videos to help the users.&amp;#160; The quality of the
videos could be better, but I think they will help.
&lt;/p&gt;
&lt;p&gt;
&amp;#160;
&lt;/p&gt;
&lt;p&gt;
I guess that’s all to blog for now.&amp;#160; I hope to have all four of the Pixel skins
packaged as soon as possible, but for now feel free to download and use the Pixel-Spring
Skin.&amp;#160; If you have any questions about the skin, or how to do something, feel
free to email me.&amp;#160; &lt;a href="mailto:admin@cornerpixel.net"&gt;admin@cornerpixel.net&lt;/a&gt;&amp;#160;
I can’t promise I will respond same day, but I will try.
&lt;/p&gt;
&lt;p&gt;
~MikePixel
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=fd4183d1-1e7d-416e-afee-d0b10badf0df" /&gt;</description>
      <comments>http://blog.cornerpixel.net/CommentView,guid,fd4183d1-1e7d-416e-afee-d0b10badf0df.aspx</comments>
      <category>CSS</category>
      <category>Deki Wiki</category>
      <category>Skinning</category>
    </item>
    <item>
      <trackback:ping>http://blog.cornerpixel.net/Trackback.aspx?guid=96237d69-9328-4fbf-aaeb-81686a43df0a</trackback:ping>
      <pingback:server>http://blog.cornerpixel.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.cornerpixel.net/PermaLink,guid,96237d69-9328-4fbf-aaeb-81686a43df0a.aspx</pingback:target>
      <dc:creator>Mike</dc:creator>
      <wfw:comment>http://blog.cornerpixel.net/CommentView,guid,96237d69-9328-4fbf-aaeb-81686a43df0a.aspx</wfw:comment>
      <wfw:commentRss>http://blog.cornerpixel.net/SyndicationService.asmx/GetEntryCommentsRss?guid=96237d69-9328-4fbf-aaeb-81686a43df0a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was working on some Deki Wiki Skins yesterday and came across the use of Variable
in CSS.  I have been working with CSS for a while now and haven't used variables,
and had never seen them before.  I feel pretty dumb for not knowing about that,
but now I do, and I like them a bunch.
</p>
        <p>
This is what I came across in Deki Wiki's CSS sheet.
</p>
        <blockquote>
          <p>
.header .siteNav .userAuth a.userPage:hover {<br />
    color: var(linkcolor_hover);<br />
} 
</p>
          <p>
#siteNavTree a {<br />
    color: var(sitenav_color);<br />
}
</p>
        </blockquote>
        <p>
There were some more, but that was just a couple.  Okay I Google' d CSS variables
and I found a good article from the guys at <a href="http://disruptive-innovations.com/" target="_blank">disruptive-innovations</a>. 
Below is the meat of the article with a link to the full article below the information. 
</p>
        <blockquote>
          <p>
Using the value of a variable as the value or one of the values of a property in a
CSS declaration should be achieved using the new functional notation var(). This function
takes only one argument being the identifier being the name of the variable. The declaration
becomes invalid if the variable does not exist. 
</p>
          <p>
            <br />
            <strong>Examples:</strong>
          </p>
          <p>
@variables 
<br />
{  
<br />
CorporateLogoBGColor: #fe8d12;<br />
} 
</p>
          <p>
div.logoContainer 
<br />
{  
<br />
background-color: var(CorporateLogoBGColor);<br />
} 
</p>
          <h6>
          </h6>
          <p>
            <strong>More Examples:</strong>
          </p>
          <p>
@variables 
<br />
{  
<br />
myMargin1: 2em;<br />
}<br />
@variables print 
<br />
{<br />
myMargin1: 10px;<br />
} 
</p>
          <p>
.data, div.entry 
<br />
{  
<br />
margin-left: 30px;  
<br />
margin-left: var(myMargin1);<br />
} 
</p>
          <p>
In the example just above, the left margin of an element carrying the class 'data'
will be 2em for instance for the 'screen' medium type, and 10px for the 'print' medium
type in a user agent conformant to CSS Variables. A legacy non-conformant browser
would apply a 30px left margin to such elements in all media types. 
</p>
        </blockquote>
        <p>
          <a href="http://disruptive-innovations.com/zoo/cssvariables/" target="_blank">I highly
recommend reading the full article</a>.  It is very good. 
</p>
        <p>
~MikePixel (Michael Silva)
</p>
        <img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=96237d69-9328-4fbf-aaeb-81686a43df0a" />
      </body>
      <title>CSS Variables  -  @variables</title>
      <guid isPermaLink="false">http://blog.cornerpixel.net/PermaLink,guid,96237d69-9328-4fbf-aaeb-81686a43df0a.aspx</guid>
      <link>http://blog.cornerpixel.net/2009/01/11/CSS+Variables+Variables.aspx</link>
      <pubDate>Sun, 11 Jan 2009 00:27:47 GMT</pubDate>
      <description>&lt;p&gt;
I was working on some Deki Wiki Skins yesterday and came across the use of Variable
in CSS.&amp;nbsp; I have been working with CSS for a while now and haven't used variables,
and had never seen them before.&amp;nbsp; I feel pretty dumb for not knowing about that,
but now I do, and I like them a bunch.
&lt;/p&gt;
&lt;p&gt;
This is what I came across in Deki Wiki's CSS sheet.
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
.header .siteNav .userAuth a.userPage:hover {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; color: var(linkcolor_hover);&lt;br&gt;
} 
&lt;p&gt;
#siteNavTree a {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; color: var(sitenav_color);&lt;br&gt;
}
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
There were some more, but that was just a couple.&amp;nbsp; Okay I Google' d CSS variables
and I found a good article from the guys at &lt;a href="http://disruptive-innovations.com/" target="_blank"&gt;disruptive-innovations&lt;/a&gt;.&amp;nbsp;
Below is the meat of the article with a link to the full article below the information. &lt;blockquote&gt; 
&lt;p&gt;
Using the value of a variable as the value or one of the values of a property in a
CSS declaration should be achieved using the new functional notation var(). This function
takes only one argument being the identifier being the name of the variable. The declaration
becomes invalid if the variable does not exist. 
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;strong&gt;Examples:&lt;/strong&gt; 
&lt;/p&gt;
&lt;p&gt;
@variables 
&lt;br&gt;
{&amp;nbsp; 
&lt;br&gt;
CorporateLogoBGColor: #fe8d12;&lt;br&gt;
} 
&lt;p&gt;
div.logoContainer 
&lt;br&gt;
{&amp;nbsp; 
&lt;br&gt;
background-color: var(CorporateLogoBGColor);&lt;br&gt;
} 
&lt;h6&gt;
&lt;/h6&gt;
&lt;p&gt;
&lt;strong&gt;More Examples:&lt;/strong&gt; 
&lt;p&gt;
@variables 
&lt;br&gt;
{&amp;nbsp; 
&lt;br&gt;
myMargin1: 2em;&lt;br&gt;
}&lt;br&gt;
@variables print 
&lt;br&gt;
{&lt;br&gt;
myMargin1: 10px;&lt;br&gt;
} 
&lt;p&gt;
.data, div.entry 
&lt;br&gt;
{&amp;nbsp; 
&lt;br&gt;
margin-left: 30px;&amp;nbsp; 
&lt;br&gt;
margin-left: var(myMargin1);&lt;br&gt;
} 
&lt;p&gt;
In the example just above, the left margin of an element carrying the class 'data'
will be 2em for instance for the 'screen' medium type, and 10px for the 'print' medium
type in a user agent conformant to CSS Variables. A legacy non-conformant browser
would apply a 30px left margin to such elements in all media types. 
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
&lt;a href="http://disruptive-innovations.com/zoo/cssvariables/" target="_blank"&gt;I highly
recommend reading the full article&lt;/a&gt;.&amp;nbsp; It is very good. 
&lt;p&gt;
~MikePixel (Michael Silva)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=96237d69-9328-4fbf-aaeb-81686a43df0a" /&gt;</description>
      <comments>http://blog.cornerpixel.net/CommentView,guid,96237d69-9328-4fbf-aaeb-81686a43df0a.aspx</comments>
      <category>CSS</category>
    </item>
    <item>
      <trackback:ping>http://blog.cornerpixel.net/Trackback.aspx?guid=88f18205-b38f-4166-b984-63b9879b63d0</trackback:ping>
      <pingback:server>http://blog.cornerpixel.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.cornerpixel.net/PermaLink,guid,88f18205-b38f-4166-b984-63b9879b63d0.aspx</pingback:target>
      <dc:creator>Mike</dc:creator>
      <wfw:comment>http://blog.cornerpixel.net/CommentView,guid,88f18205-b38f-4166-b984-63b9879b63d0.aspx</wfw:comment>
      <wfw:commentRss>http://blog.cornerpixel.net/SyndicationService.asmx/GetEntryCommentsRss?guid=88f18205-b38f-4166-b984-63b9879b63d0</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Just yesterday I was answering a CSS question in an online CSS group I belong to. 
The question was on how to make tooltips with CSS.  The person who asked had
a website with pictures on it.  He wanted to be able to hover over the pictures
and get another tooltip box to pop up with yet another picture in it.
</p>
        <p>
I tried to explain how I would do it, but I think I missed some things.  So I
will try to redeem myself now with an explanation and a <a href="http://www.cornerpixel.net/demo/tooltips/">demo
page</a>!
</p>
        <p>
Below is the markup I used for the list and it's tooltips.
</p>
        <blockquote>
          <p>
&lt;div class="main_wrap"&gt; 
<br />
        &lt;ul class="ninja_list"&gt; 
<br />
            &lt;li class="left_ninja"&gt;&lt;a
href="#"&gt;&lt;span class="smoke"&gt;&lt;em&gt;title you want
people to see if CSS is disabled or for screenreaders&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; 
<br />
              &lt;li
class="mid_ninja"&gt;&lt;a href="#"&gt;&lt;span class="smoke"&gt;&lt;em&gt;title
you want people to see if CSS is disabled or for screenreaders&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; 
<br />
              &lt;li
class="right_ninja"&gt;&lt;a href="#"&gt;&lt;span class="smoke"&gt;&lt;em&gt;title
you want people to see if CSS is disabled or for screenreaders&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; 
<br />
        &lt;/ul&gt; 
<br />
&lt;/div&gt;
</p>
        </blockquote>
        <p>
This will provide a list for those who have CSS off or those who are using text readers. 
The next bit is the CSS to make the tooltips happen, along with placing the list items.
</p>
        <blockquote>
          <p>
.main_wrap 
<br />
{ 
<br />
    position: relative; 
<br />
    height: 400px; 
<br />
    background: url(images/ninjas_three.jpg) no-repeat; 
<br />
} 
<br />
.main_wrap ul 
<br />
{ 
<br />
    margin: 0px; 
<br />
    padding: 0px; 
<br />
    list-style: none; 
<br />
    display: block; 
<br />
} 
<br />
.left_ninja 
<br />
{ 
<br />
    position: absolute; 
<br />
    left: 50px; 
<br />
    top: 80px; 
<br />
} 
<br />
.mid_ninja 
<br />
{ 
<br />
    position: absolute; 
<br />
    left: 235px; 
<br />
    top: 100px; 
<br />
} 
<br />
.right_ninja 
<br />
{ 
<br />
    position: absolute; 
<br />
    left: 405px; 
<br />
    top: 90px; 
<br />
} 
<br />
/* NINJA in a box */ 
<br />
/* difines the width and height of anchors along with block */
</p>
          <p>
.left_ninja a 
<br />
{ 
<br />
    display: block; 
<br />
    width: 100px; 
<br />
    height: 160px; 
<br />
    position: relative; 
<br />
} 
<br />
.mid_ninja a 
<br />
{ 
<br />
    display: block; 
<br />
    width: 80px; 
<br />
    height: 140px; 
<br />
    position: relative; 
<br />
} 
<br />
.right_ninja a 
<br />
{ 
<br />
    display: block; 
<br />
    width: 80px; 
<br />
    height: 160px; 
<br />
    position: relative; 
<br />
} 
<br />
/* NINJA pop smoke, span disappear */ 
<br />
/* hides the span where the tooltip is */ 
<br />
/* this also hides text */ 
<br />
.left_ninja span, 
<br />
.mid_ninja span, 
<br />
.right_ninja a span, 
<br />
span.smoke em 
<br />
{ 
<br />
    display: none; 
<br />
} 
<br />
/* span appear like NINJA out of nowhere */ 
</p>
          <p>
.left_ninja a:hover span 
<br />
{ 
<br />
    display: block; 
<br />
    width: 200px; 
<br />
    height: 91px; 
<br />
    position: absolute; 
<br />
    background: url(images/left_ninja_tooltip.png) no-repeat; 
<br />
    top: -45px; 
<br />
    left: 40px; 
<br />
} 
<br />
.mid_ninja a:hover span 
<br />
{ 
<br />
    display: block; 
<br />
    width: 200px; 
<br />
    height: 91px; 
<br />
    position: absolute; 
<br />
    background: url(images/mid_ninja_tooltip.png) no-repeat; 
<br />
    top: -70px; 
<br />
    left: -80px; 
<br />
} 
<br />
.right_ninja a:hover span 
<br />
{ 
<br />
    display: block; 
<br />
    width: 200px; 
<br />
    height: 91px; 
<br />
    position: absolute; 
<br />
    background: url(images/right_ninja_tooltip.png) no-repeat; 
<br />
    top: -40px; 
<br />
    left: -160px; 
<br />
}
</p>
        </blockquote>
        <p>
Basically you are telling the span inside the anchor element to display none. 
Then when the anchor is hovered over you are bringing back that span with display
block.  For more hands on and visual examples try out the <a href="http://www.cornerpixel.net/demo/tooltips">Tooltips
by Ninja's Page</a>.
</p>
        <p>
I hope this helps, and I hope you can use this  as a guide with tooltips and
even CSS drop down menu's.
</p>
        <p>
Happy CSS tinkering,
</p>
        <p>
~Michael
</p>
        <img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=88f18205-b38f-4166-b984-63b9879b63d0" />
      </body>
      <title>CSS Tooltips brought to you by Ninja's</title>
      <guid isPermaLink="false">http://blog.cornerpixel.net/PermaLink,guid,88f18205-b38f-4166-b984-63b9879b63d0.aspx</guid>
      <link>http://blog.cornerpixel.net/2008/09/14/CSS+Tooltips+Brought+To+You+By+Ninjas.aspx</link>
      <pubDate>Sun, 14 Sep 2008 08:20:44 GMT</pubDate>
      <description>&lt;p&gt;
Just yesterday I was answering a CSS question in an online CSS group I belong to.&amp;#160;
The question was on how to make tooltips with CSS.&amp;#160; The person who asked had
a website with pictures on it.&amp;#160; He wanted to be able to hover over the pictures
and get another tooltip box to pop up with yet another picture in it.
&lt;/p&gt;
&lt;p&gt;
I tried to explain how I would do it, but I think I missed some things.&amp;#160; So I
will try to redeem myself now with an explanation and a &lt;a href="http://www.cornerpixel.net/demo/tooltips/"&gt;demo
page&lt;/a&gt;!
&lt;/p&gt;
&lt;p&gt;
Below is the markup I used for the list and it's tooltips.
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
&amp;lt;div class=&amp;quot;main_wrap&amp;quot;&amp;gt; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ul class=&amp;quot;ninja_list&amp;quot;&amp;gt; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;li class=&amp;quot;left_ninja&amp;quot;&amp;gt;&amp;lt;a
href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;smoke&amp;quot;&amp;gt;&amp;lt;em&amp;gt;title you want
people to see if CSS is disabled or for screenreaders&amp;lt;/em&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;li
class=&amp;quot;mid_ninja&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;smoke&amp;quot;&amp;gt;&amp;lt;em&amp;gt;title
you want people to see if CSS is disabled or for screenreaders&amp;lt;/em&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;li
class=&amp;quot;right_ninja&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;smoke&amp;quot;&amp;gt;&amp;lt;em&amp;gt;title
you want people to see if CSS is disabled or for screenreaders&amp;lt;/em&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/ul&amp;gt; 
&lt;br /&gt;
&amp;lt;/div&amp;gt;
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
This will provide a list for those who have CSS off or those who are using text readers.&amp;#160;
The next bit is the CSS to make the tooltips happen, along with placing the list items.
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
.main_wrap 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: relative; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 400px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; background: url(images/ninjas_three.jpg) no-repeat; 
&lt;br /&gt;
} 
&lt;br /&gt;
.main_wrap ul 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; margin: 0px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; padding: 0px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; list-style: none; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: block; 
&lt;br /&gt;
} 
&lt;br /&gt;
.left_ninja 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: absolute; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; left: 50px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; top: 80px; 
&lt;br /&gt;
} 
&lt;br /&gt;
.mid_ninja 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: absolute; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; left: 235px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; top: 100px; 
&lt;br /&gt;
} 
&lt;br /&gt;
.right_ninja 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: absolute; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; left: 405px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; top: 90px; 
&lt;br /&gt;
} 
&lt;br /&gt;
/* NINJA in a box */ 
&lt;br /&gt;
/* difines the width and height of anchors along with block */
&lt;/p&gt;
&lt;p&gt;
.left_ninja a 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: block; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; width: 100px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 160px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: relative; 
&lt;br /&gt;
} 
&lt;br /&gt;
.mid_ninja a 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: block; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; width: 80px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 140px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: relative; 
&lt;br /&gt;
} 
&lt;br /&gt;
.right_ninja a 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: block; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; width: 80px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 160px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: relative; 
&lt;br /&gt;
} 
&lt;br /&gt;
/* NINJA pop smoke, span disappear */ 
&lt;br /&gt;
/* hides the span where the tooltip is */ 
&lt;br /&gt;
/* this also hides text */ 
&lt;br /&gt;
.left_ninja span, 
&lt;br /&gt;
.mid_ninja span, 
&lt;br /&gt;
.right_ninja a span, 
&lt;br /&gt;
span.smoke em 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: none; 
&lt;br /&gt;
} 
&lt;br /&gt;
/* span appear like NINJA out of nowhere */ 
&lt;/p&gt;
&lt;p&gt;
.left_ninja a:hover span 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: block; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; width: 200px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 91px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: absolute; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; background: url(images/left_ninja_tooltip.png) no-repeat; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; top: -45px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; left: 40px; 
&lt;br /&gt;
} 
&lt;br /&gt;
.mid_ninja a:hover span 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: block; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; width: 200px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 91px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: absolute; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; background: url(images/mid_ninja_tooltip.png) no-repeat; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; top: -70px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; left: -80px; 
&lt;br /&gt;
} 
&lt;br /&gt;
.right_ninja a:hover span 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; display: block; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; width: 200px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 91px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: absolute; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; background: url(images/right_ninja_tooltip.png) no-repeat; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; top: -40px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; left: -160px; 
&lt;br /&gt;
}
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
Basically you are telling the span inside the anchor element to display none.&amp;#160;
Then when the anchor is hovered over you are bringing back that span with display
block.&amp;#160; For more hands on and visual examples try out the &lt;a href="http://www.cornerpixel.net/demo/tooltips"&gt;Tooltips
by Ninja's Page&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I hope this helps, and I hope you can use this&amp;#160; as a guide with tooltips and
even CSS drop down menu's.
&lt;/p&gt;
&lt;p&gt;
Happy CSS tinkering,
&lt;/p&gt;
&lt;p&gt;
~Michael
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=88f18205-b38f-4166-b984-63b9879b63d0" /&gt;</description>
      <comments>http://blog.cornerpixel.net/CommentView,guid,88f18205-b38f-4166-b984-63b9879b63d0.aspx</comments>
      <category>CSS</category>
      <category>Web Standards</category>
    </item>
    <item>
      <trackback:ping>http://blog.cornerpixel.net/Trackback.aspx?guid=5d5c6883-40ea-47f5-b2fa-21401f884549</trackback:ping>
      <pingback:server>http://blog.cornerpixel.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.cornerpixel.net/PermaLink,guid,5d5c6883-40ea-47f5-b2fa-21401f884549.aspx</pingback:target>
      <dc:creator>Mike</dc:creator>
      <wfw:comment>http://blog.cornerpixel.net/CommentView,guid,5d5c6883-40ea-47f5-b2fa-21401f884549.aspx</wfw:comment>
      <wfw:commentRss>http://blog.cornerpixel.net/SyndicationService.asmx/GetEntryCommentsRss?guid=5d5c6883-40ea-47f5-b2fa-21401f884549</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
There was an <a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html" target="_blank">announcement</a> yesterday
about Google's new browser called Chrome.  I went through three different emotions
upon hearing about this new browser.
</p>
        <ol>
          <li>
I felt a quick kid like excitement.  I was rushing to download it and try it
out.</li>
          <li>
Then I felt a feeling of worry when I thought that I now had yet another browser to
test all my websites against.  So at that point I went to the Chrome site and
started to read the little <a href="http://www.google.com/googlebooks/chrome/index.html" target="_blank">comic</a> they
have to explain their new browser.  As I read I found that there was a lot of
good sound things about Google's new browser.</li>
          <li>
Lastly my feeling was amusement and curiosity as I started to realize just how good
the browser was.  Here are some of the things I like about Chrome.</li>
        </ol>
        <p>
Things I like
</p>
        <ul>
          <li>
I was happy to see that it passed all the CSS3 tests on the <a href="http://www.css3.info/selectors-test/" target="_blank">CSS3.info
site</a>.  This is encouraging to me and it will be GREAT to test CSS3 stuff
and know I have a playground that supports all of CSS3 and not just a little bit of
it.</li>
          <li>
I was happy that each tab is it's own process.  That way when a site goes mad
and freezes, I don't loose what I was doing on another tab.</li>
          <li>
It is very lite looking but pretty browser.  (ya I know I am a professional and
that shouldn't matter.  But it does.)</li>
          <li>
The search bar is the address bar.  I think that is how browsers should have
all been made.</li>
          <li>
Most visited sites page.  Kind of cool, but I want to see it in action a couple
months from now.</li>
          <li>
Load times are pretty darned fast.</li>
        </ul>
        <p>
Things I don't like
</p>
        <ul>
          <li>
When I was using Chrome on my Vista PC disc bullets were displayed with white corners
which made the bullets look like stars at certain sizes.</li>
          <li>
I don't like what it did to my favorites.  It imported my favorites from IE7
and then tried to logically sort them.  I can't find anything anymore. 
I wish I hadn't imported them.  My advice is do NOT import favorites.</li>
          <li>
The "Inspect Element" is a nice try but it isn't as good as IE8's Developer Toolbar
or Firefox's Firebug extension.  I can't get to a mode where I can hover over
the page and click an element I want to inspect.  I can go through the markup
and eventually find my element by watching what lights up.  But it just isn't
as good as I would like.</li>
        </ul>
        <p>
Well I think that is it for now.  I am going to use this browser a LOT in the
next couple weeks to test things out.  I know I will be able to soon ad much
more to both of the above lists.  I can't wait to find out what cool tools Google
has added to the browser.  I also can't wait to see if I can take some things
off my "Things I don't like" list when I get to know the browser a bit more.
</p>
        <p>
Well thanks Google for giving me more work to do.  The good thing is that I really
like my work.
</p>
        <p>
~Mike
</p>
        <img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=5d5c6883-40ea-47f5-b2fa-21401f884549" />
      </body>
      <title>Google Chrome</title>
      <guid isPermaLink="false">http://blog.cornerpixel.net/PermaLink,guid,5d5c6883-40ea-47f5-b2fa-21401f884549.aspx</guid>
      <link>http://blog.cornerpixel.net/2008/09/04/Google+Chrome.aspx</link>
      <pubDate>Thu, 04 Sep 2008 01:23:53 GMT</pubDate>
      <description>&lt;p&gt;
There was an &lt;a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html" target="_blank"&gt;announcement&lt;/a&gt; yesterday
about Google's new browser called Chrome.&amp;nbsp; I went through three different emotions
upon hearing about this new browser.
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
I felt a quick kid like excitement.&amp;nbsp; I was rushing to download it and try it
out.&lt;/li&gt;
&lt;li&gt;
Then I felt a feeling of worry when I thought that I now had yet another browser to
test all my websites against.&amp;nbsp; So at that point I went to the Chrome site and
started to read the little &lt;a href="http://www.google.com/googlebooks/chrome/index.html" target="_blank"&gt;comic&lt;/a&gt; they
have to explain their new browser.&amp;nbsp; As I read I found that there was a lot of
good sound things about Google's new browser.&lt;/li&gt;
&lt;li&gt;
Lastly my feeling was amusement and curiosity as I started to realize just how good
the browser was.&amp;nbsp; Here are some of the things I like about Chrome.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Things I like
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
I was happy to see that it passed all the CSS3 tests on the &lt;a href="http://www.css3.info/selectors-test/" target="_blank"&gt;CSS3.info
site&lt;/a&gt;.&amp;nbsp; This is encouraging to me and it will be GREAT to test CSS3 stuff
and know I have a playground that supports all of CSS3 and not just a little bit of
it.&lt;/li&gt;
&lt;li&gt;
I was happy that each tab is it's own process.&amp;nbsp; That way when a site goes mad
and freezes, I don't loose what I was doing on another tab.&lt;/li&gt;
&lt;li&gt;
It is very lite looking but pretty browser.&amp;nbsp; (ya I know I am a professional and
that shouldn't matter.&amp;nbsp; But it does.)&lt;/li&gt;
&lt;li&gt;
The search bar is the address bar.&amp;nbsp; I think that is how browsers should have
all been made.&lt;/li&gt;
&lt;li&gt;
Most visited sites page.&amp;nbsp; Kind of cool, but I want to see it in action a couple
months from now.&lt;/li&gt;
&lt;li&gt;
Load times are pretty darned fast.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Things I don't like
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
When I was using Chrome on my Vista PC disc bullets were displayed with white corners
which made the bullets look like stars at certain sizes.&lt;/li&gt;
&lt;li&gt;
I don't like what it did to my favorites.&amp;nbsp; It imported my favorites from IE7
and then tried to logically sort them.&amp;nbsp; I can't find anything anymore.&amp;nbsp;
I wish I hadn't imported them.&amp;nbsp; My advice is do NOT import favorites.&lt;/li&gt;
&lt;li&gt;
The "Inspect Element" is a nice try but it isn't as good as IE8's Developer Toolbar
or Firefox's Firebug extension.&amp;nbsp; I can't get to a mode where I can hover over
the page and click an element I want to inspect.&amp;nbsp; I can go through the markup
and eventually find my element by watching what lights up.&amp;nbsp; But it just isn't
as good as I would like.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Well I think that is it for now.&amp;nbsp; I am going to use this browser a LOT in the
next couple weeks to test things out.&amp;nbsp; I know I will be able to soon ad much
more to both of the above lists.&amp;nbsp; I can't wait to find out what cool tools Google
has added to the browser.&amp;nbsp; I also can't wait to see if I can take some things
off my "Things I don't like" list when I get to know the browser a bit more.
&lt;/p&gt;
&lt;p&gt;
Well thanks Google for giving me more work to do.&amp;nbsp; The good thing is that I really
like my work.
&lt;/p&gt;
&lt;p&gt;
~Mike
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=5d5c6883-40ea-47f5-b2fa-21401f884549" /&gt;</description>
      <comments>http://blog.cornerpixel.net/CommentView,guid,5d5c6883-40ea-47f5-b2fa-21401f884549.aspx</comments>
      <category>Browser - Chrome</category>
      <category>CSS</category>
      <category>Web News</category>
    </item>
    <item>
      <trackback:ping>http://blog.cornerpixel.net/Trackback.aspx?guid=721c3b36-e082-45af-9ee9-e4557fdbb63a</trackback:ping>
      <pingback:server>http://blog.cornerpixel.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.cornerpixel.net/PermaLink,guid,721c3b36-e082-45af-9ee9-e4557fdbb63a.aspx</pingback:target>
      <dc:creator>Mike</dc:creator>
      <wfw:comment>http://blog.cornerpixel.net/CommentView,guid,721c3b36-e082-45af-9ee9-e4557fdbb63a.aspx</wfw:comment>
      <wfw:commentRss>http://blog.cornerpixel.net/SyndicationService.asmx/GetEntryCommentsRss?guid=721c3b36-e082-45af-9ee9-e4557fdbb63a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
The normal way of preloading images is by using JavaScript to do the job.  In
the lieu of Firefox and it's NoScript type extensions I have stopped relying so heavily
on JavaScript in my pages.  So where does that leave us when it comes to preloading
images?
</p>
        <p>
In steps CSS.  Most of the time when I want to preload and image it is for hover
menu's or rollover type images that I know the user most likely won't hover over right
away.  In this case I want the rollover's to work right away.  My next example
won't please some of the real hard core standards people because it adds a little
markup to the page, but in my opinion it is better than and less markup than the common
JavaScript usually used to preload images.
</p>
        <p>
At the bottom of the page before the closing body tag I add a preload DIV.  I
assign the class of preload to the div and then let CSS handle the rest.  (you
will also have to add a DIV element inside the preload DIV for every image you want
to preload.  Hopefully in CSS  3 we can assign multiple images to the background
of one element (DIV) but for now this works.
</p>
        <p>
The CSS for this is
</p>
        <p>
.preload 
<br />
{ 
<br />
    position: absolute; 
<br />
    width: 0px; 
<br />
    height: 0px; 
<br />
    margin-left: -9999px; 
<br />
    background: url(yourimagehere.jpg) no-repeat; 
<br />
}
</p>
        <p>
Now the DIV elements inside the preload DIV only have to have the background set because
they are going to go to the left along with the preload div.  
</p>
        <p>
The reason I didn't do a display: none or visibility: hidden was because Opera and
Safari are smart enough not to waste resources loading your images because it can
see by the way you did the CSS that you don't want it to display.
</p>
        <p>
This has worked great for me in the past and I am continuing to use it in the future. 
I am sure some of you have arguments against it, and I would love to hear your arguments. 
Please feel free to post a comment here.  
</p>
        <p>
I am going to start a page by page guide for these type of things in the future that
will allow users to search and find help while they create their own web sites. 
For now you will have to search the blog to find good information.
</p>
        <p>
Thanks for your time 
<br />
~Mike
</p>
        <img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=721c3b36-e082-45af-9ee9-e4557fdbb63a" />
      </body>
      <title>Preloading Images with CSS</title>
      <guid isPermaLink="false">http://blog.cornerpixel.net/PermaLink,guid,721c3b36-e082-45af-9ee9-e4557fdbb63a.aspx</guid>
      <link>http://blog.cornerpixel.net/2008/08/27/Preloading+Images+With+CSS.aspx</link>
      <pubDate>Wed, 27 Aug 2008 09:30:41 GMT</pubDate>
      <description>&lt;p&gt;
The normal way of preloading images is by using JavaScript to do the job.&amp;#160; In
the lieu of Firefox and it's NoScript type extensions I have stopped relying so heavily
on JavaScript in my pages.&amp;#160; So where does that leave us when it comes to preloading
images?
&lt;/p&gt;
&lt;p&gt;
In steps CSS.&amp;#160; Most of the time when I want to preload and image it is for hover
menu's or rollover type images that I know the user most likely won't hover over right
away.&amp;#160; In this case I want the rollover's to work right away.&amp;#160; My next example
won't please some of the real hard core standards people because it adds a little
markup to the page, but in my opinion it is better than and less markup than the common
JavaScript usually used to preload images.
&lt;/p&gt;
&lt;p&gt;
At the bottom of the page before the closing body tag I add a preload DIV.&amp;#160; I
assign the class of preload to the div and then let CSS handle the rest.&amp;#160; (you
will also have to add a DIV element inside the preload DIV for every image you want
to preload.&amp;#160; Hopefully in CSS&amp;#160; 3 we can assign multiple images to the background
of one element (DIV) but for now this works.
&lt;/p&gt;
&lt;p&gt;
The CSS for this is
&lt;/p&gt;
&lt;p&gt;
.preload 
&lt;br /&gt;
{ 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; position: absolute; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; width: 0px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; height: 0px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; margin-left: -9999px; 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; background: url(yourimagehere.jpg) no-repeat; 
&lt;br /&gt;
}
&lt;/p&gt;
&lt;p&gt;
Now the DIV elements inside the preload DIV only have to have the background set because
they are going to go to the left along with the preload div.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
The reason I didn't do a display: none or visibility: hidden was because Opera and
Safari are smart enough not to waste resources loading your images because it can
see by the way you did the CSS that you don't want it to display.
&lt;/p&gt;
&lt;p&gt;
This has worked great for me in the past and I am continuing to use it in the future.&amp;#160;
I am sure some of you have arguments against it, and I would love to hear your arguments.&amp;#160;
Please feel free to post a comment here.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
I am going to start a page by page guide for these type of things in the future that
will allow users to search and find help while they create their own web sites.&amp;#160;
For now you will have to search the blog to find good information.
&lt;/p&gt;
&lt;p&gt;
Thanks for your time 
&lt;br /&gt;
~Mike
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.cornerpixel.net/aggbug.ashx?id=721c3b36-e082-45af-9ee9-e4557fdbb63a" /&gt;</description>
      <comments>http://blog.cornerpixel.net/CommentView,guid,721c3b36-e082-45af-9ee9-e4557fdbb63a.aspx</comments>
      <category>CSS</category>
    </item>
  </channel>
</rss>