28172 sujets

CSS et mise en forme, CSS3

bonjour,

j'essaye sans succes un alignement vertical de mon texte avec mon css sans succes

j'ai teste line-heigh et vertical-align sans succes.


.nav-wrap { margin: 0px auto;   border-top: 2px solid white; border-bottom: 2px solid white; }

.group:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
*:first-child+html .group { zoom: 1; } /* IE7 */

#example-one { margin: 0 auto; list-style: none; position: relative; width: 900px; height:30px;padding-left:2px;}
#example-one li {
text-align:center;
position: relarive;
 display: inline;
 }
#example-one li a {
width:100px;height:30px;background-image:url('css/img/bouton1.png');
color: #000; font-size: .9em; display: block; float: left;  text-decoration: none; text-transform: uppercase;font-weight:bold; }


#example-one li a:hover { color: 000; font-style:italic;font-weight:bold;background-image:url('css/img/bouton1.png');}
#magic-line { position: absolute; bottom: -2px; left: 0; width: 100px; height: 2px; background: #ccc; }



.current_page_item a{ color: black !important; font-size: .9em; }

/* Menu de navigation */
#navigation {background: #84ce31;

}


#navigation li.droite {
	float: right;
}




<div id="navigation"> 
			
 	<div class="nav-wrap">

		<ul class="group" id="example-one">
            
            <li class="current_page_item"><a href="<?echo $site_url;?>ma-maison-crea-concept.html">Accueil</a></li>
            <li><a href="<?echo $site_url;?>news-ma-maison-crea-concept.html">News</a></li>
            <li><a href="<?echo $site_url;?>photo-ma-maison-crea-concept.html">Photos</a></li>

            <li class="droite"><a  href="<?echo $site_url;?>nous-contacter-ma-maison-crea-concept.html">Contact</a></li>
            <li class="droite"><a  href="<?echo $site_url;?>info.php?height=300&width=300" title="Infos" class="thickbox">Info</a></li>
        </ul></div>









	</div>


merci pour l'aide