<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: Menu,css</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Menu horizontal a images réactives en CSS</title>
        <link>http://www.posteet.com/view/150</link>
        <description>
        <![CDATA[<pre>/* Pour le code xhtml voir plus tout en bas */
/******** MENU ********/
#nav {
height: 25px !important;  /* Hauteur de la barre de menu*/
background: url(images/bg_barre.png) repeat-x; /* Fond d'écran de la barre' */
padding: 0 0 0 12px; /* Marge interne pour décaler les boutons et afficher la barre. Taille = (largeur totale - largeur des boutons)/2 */
border-right: 1px #e7e2cb solid; /* Liaison header &lt;--&gt; contenu */
border-left: 1px #e7e2cb solid;
}
 
#menu {
margin: 0;
width: 776px; /* Taille des boutons */
height: 25px; /* Hauteur de mes boutons */
list-style: none; /* Ne pas afficher les puces */
display: inline; /* Mode en ligne */
overflow: hidden; /* Si le texte sort du cadre, ne pas l'afficher*/
text-indent: -1000px; /* On fait disparaitre le texte en décalant de 1000px la première ligne. Il sort du cadre, et disparait */
}
 
#menu li {
margin: 0; 
padding: 0;
list-style: none; /* cf. ci-dessus, nécessaire pour un affichage correct */
display: inline;
}
 
#menu a {
float: left;
padding: 0;
overflow: hidden;
width: 194px !important; 
}
 
#menu a:hover {
background-position: 0 -25px; /* Décalage pour faire réagir l'image au survol de la souris */
}
 
 
/******* ITEMS DU MENU ******/
#home a {
height: 25px; /* Hauteur du bouton */
width: 194px; /* Largeur du bouton */
background: url(images/home.png) top left no-repeat; /* Image du bouton */
}	
 
#about a {
height: 25px;
width: 194px;
background: url(images/about.png) top left no-repeat;
}	
 
#time a {
height: 25px;
width: 194px;
background: url(images/time.png) top left no-repeat;
}
 
#date a {
height: 25px;
width: 194px;
background: url(images/date.png) top left no-repeat;
}
&lt;/style&gt;

/* Le menu lui-même (sémantiquement correct) 
&lt;div id=&quot;nav&quot;&gt;
&lt;ul id=&quot;menu&quot;&gt;
&lt;li id=&quot;home&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li id=&quot;about&quot;&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li id=&quot;time&quot;&gt;&lt;a href=&quot;#&quot;&gt;Time&lt;/a&gt;&lt;/li&gt;
&lt;li id=&quot;date&quot;&gt;&lt;a href=&quot;#&quot;&gt;Date&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
*/</pre> <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/html">[html]</a>  <a href="http://www.posteet.com/tags/images réactives">[images réactives]</a>  <a href="http://www.posteet.com/tags/menu">[menu]</a>  <a href="http://www.posteet.com/tags/xhtml">[xhtml]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sat, 03 Nov 2007 21:29:38 +0000</pubDate>

            <category>css</category>
            <category>html</category>
            <category>images réactives</category>
            <category>menu</category>
            <category>xhtml</category>
    
    </item>


</channel>
</rss>
