Une aide s'il vous plaît
- atlnycdude
- Newbie


- Inscription: Déc 30, 2008
- Messages: 6
- Status: Offline
Hey chambre. Vous avez une question rapide que je voudrais l'avoir résolu bientôt. J'ai créé une navigation à l'aide ul, li tags et css. J'ai créé l'arrière-plan de navigation à l'aide de Photoshop à l'aide | ig pour chaque onglet. Accueil, A propos de nous etc je voudrais pour chaque bloc sur la ligne horizontale pour s'adapter à chacun des "|" de l'IMG. Je veux qu'il en plein milieu, y compris le texte. Voici le code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Precious Jewels Learning Incorporated - Home</title>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="followus">
<a class="facebook"><img src="images/header/Precious-Jewels-Learning-Incorporated - facebook.jpg" alt="Facebook Page" /></a>
<a class="twitter"><img src="images/header/Precious-Jewels-Learning-Incorporated - twitter.jpg" alt="Twitter Page" /></a>
<a class="home"><img src="images/header/Precious-Jewels-Learning-Incorporated - home.jpg" alt="Home" /></a>
<a class="contact"><img src="images/header/Precious-Jewels-Learning-Incorporated - email.jpg" alt="email" /></a>
</div><!-- end "followus" DIV-->
</div><!-- end "header" DIV-->
<div id="navigation">
<p id="menuHome">
</p>
<ul id="menuOne" class="menuHoriz">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="services.html">Our Services</a></li>
<li><a href="contributions.html">Contributions</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
<ul id="menuSubTwo" class="menuVert">
<li><a href="mission.html">Mission Statement</a></li>
</ul>
<ul id="menuSubThree" class="menuVert">
<li><a href="preschool.html">Pre School</a></li>
<li><a href="teen.html">Teen Empowerment</a></li>
</ul>
<ul id="menuSubFive" class="menuVert">
<li><a href="newsletter.html">Newsletter</a></li>
</ul>
</div><!-- end "navigation" DIV-->
<div id="main">
<div id="left"><img src="images/body/Precious-Jewels-Learning-Incorporated---ezekial.jpg" alt="ezekial" /></div>
<div id="right"><img src="images/body/Precious-Jewels-Learning-Incorporated---picture-gallery.jpg" alt="pic gallery" />
</div><!-- end "main" DIV-->
<div style="clear: both;">
</div><!-- end "clear" DIV-->
</div><!-- end "wrapper" DIV-->
<div id="footer">
</div><!-- end "footer" DIV-->
</div>
</body>
</html>
p#menuHome{ float: left; } #navigation { position:relative; background-color: #333; background-image: url(../images/navigation/Precious-Jewels-Learning-Incorporated_03.jpg); background-repeat: no-repeat; width: 820px; height: 47px; font-size: 14pt; } #navigation a:link, #navigation a:visited { font-family: Arial, Helvetica, sans-serif; color: white; text-decoration: none; } #navigation a:hover { color: #03C; } #navigation ul, #navigation li { margin:0; padding:0; } #navigation ul { list-style-type: none; } ul.menuHoriz li { float: left; } ul.menuVert { position: absolute; top: 24px; } #navigation li { display: block; background-color:#FF0; width: 130px; height: 25px; margin: 0 3px 0 0; padding: 0; } ul#menuSubTwo { left: 133px } ul#menuSubThree { left: 266px } ul#menuSubFive { left: 532px }
Capture d'écran du site est fourni depuis des liens annonce n'est pas autorisée ici.
Se contenter de laisser tout le monde sait que les sous-menus ne fonctionnent pas encore, mais je tiens à résoudre ce premier problème avant de passer à l'étape suivante. Merci d'avance.
Code: [ Select ]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Precious Jewels Learning Incorporated - Home</title>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="followus">
<a class="facebook"><img src="images/header/Precious-Jewels-Learning-Incorporated - facebook.jpg" alt="Facebook Page" /></a>
<a class="twitter"><img src="images/header/Precious-Jewels-Learning-Incorporated - twitter.jpg" alt="Twitter Page" /></a>
<a class="home"><img src="images/header/Precious-Jewels-Learning-Incorporated - home.jpg" alt="Home" /></a>
<a class="contact"><img src="images/header/Precious-Jewels-Learning-Incorporated - email.jpg" alt="email" /></a>
</div><!-- end "followus" DIV-->
</div><!-- end "header" DIV-->
<div id="navigation">
<p id="menuHome">
</p>
<ul id="menuOne" class="menuHoriz">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="services.html">Our Services</a></li>
<li><a href="contributions.html">Contributions</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
<ul id="menuSubTwo" class="menuVert">
<li><a href="mission.html">Mission Statement</a></li>
</ul>
<ul id="menuSubThree" class="menuVert">
<li><a href="preschool.html">Pre School</a></li>
<li><a href="teen.html">Teen Empowerment</a></li>
</ul>
<ul id="menuSubFive" class="menuVert">
<li><a href="newsletter.html">Newsletter</a></li>
</ul>
</div><!-- end "navigation" DIV-->
<div id="main">
<div id="left"><img src="images/body/Precious-Jewels-Learning-Incorporated---ezekial.jpg" alt="ezekial" /></div>
<div id="right"><img src="images/body/Precious-Jewels-Learning-Incorporated---picture-gallery.jpg" alt="pic gallery" />
</div><!-- end "main" DIV-->
<div style="clear: both;">
</div><!-- end "clear" DIV-->
</div><!-- end "wrapper" DIV-->
<div id="footer">
</div><!-- end "footer" DIV-->
</div>
</body>
</html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Precious Jewels Learning Incorporated - Home</title>
- <link href="css/layout.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="wrapper">
- <div id="header">
- <div id="followus">
- <a class="facebook"><img src="images/header/Precious-Jewels-Learning-Incorporated - facebook.jpg" alt="Facebook Page" /></a>
- <a class="twitter"><img src="images/header/Precious-Jewels-Learning-Incorporated - twitter.jpg" alt="Twitter Page" /></a>
- <a class="home"><img src="images/header/Precious-Jewels-Learning-Incorporated - home.jpg" alt="Home" /></a>
- <a class="contact"><img src="images/header/Precious-Jewels-Learning-Incorporated - email.jpg" alt="email" /></a>
- </div><!-- end "followus" DIV-->
- </div><!-- end "header" DIV-->
- <div id="navigation">
- <p id="menuHome">
- </p>
- <ul id="menuOne" class="menuHoriz">
- <li><a href="index.html">Home</a></li>
- <li><a href="about.html">About Us</a></li>
- <li><a href="services.html">Our Services</a></li>
- <li><a href="contributions.html">Contributions</a></li>
- <li><a href="contact.html">Contact Us</a></li>
- </ul>
- <ul id="menuSubTwo" class="menuVert">
- <li><a href="mission.html">Mission Statement</a></li>
- </ul>
- <ul id="menuSubThree" class="menuVert">
- <li><a href="preschool.html">Pre School</a></li>
- <li><a href="teen.html">Teen Empowerment</a></li>
- </ul>
- <ul id="menuSubFive" class="menuVert">
- <li><a href="newsletter.html">Newsletter</a></li>
- </ul>
- </div><!-- end "navigation" DIV-->
- <div id="main">
- <div id="left"><img src="images/body/Precious-Jewels-Learning-Incorporated---ezekial.jpg" alt="ezekial" /></div>
- <div id="right"><img src="images/body/Precious-Jewels-Learning-Incorporated---picture-gallery.jpg" alt="pic gallery" />
- </div><!-- end "main" DIV-->
- <div style="clear: both;">
-
- </div><!-- end "clear" DIV-->
- </div><!-- end "wrapper" DIV-->
- <div id="footer">
- </div><!-- end "footer" DIV-->
- </div>
- </body>
- </html>
Code: [ Select ]
p#menuHome{ float: left; } #navigation { position:relative; background-color: #333; background-image: url(../images/navigation/Precious-Jewels-Learning-Incorporated_03.jpg); background-repeat: no-repeat; width: 820px; height: 47px; font-size: 14pt; } #navigation a:link, #navigation a:visited { font-family: Arial, Helvetica, sans-serif; color: white; text-decoration: none; } #navigation a:hover { color: #03C; } #navigation ul, #navigation li { margin:0; padding:0; } #navigation ul { list-style-type: none; } ul.menuHoriz li { float: left; } ul.menuVert { position: absolute; top: 24px; } #navigation li { display: block; background-color:#FF0; width: 130px; height: 25px; margin: 0 3px 0 0; padding: 0; } ul#menuSubTwo { left: 133px } ul#menuSubThree { left: 266px } ul#menuSubFive { left: 532px }
- p#menuHome{ float: left; } #navigation { position:relative; background-color: #333; background-image: url(../images/navigation/Precious-Jewels-Learning-Incorporated_03.jpg); background-repeat: no-repeat; width: 820px; height: 47px; font-size: 14pt; } #navigation a:link, #navigation a:visited { font-family: Arial, Helvetica, sans-serif; color: white; text-decoration: none; } #navigation a:hover { color: #03C; } #navigation ul, #navigation li { margin:0; padding:0; } #navigation ul { list-style-type: none; } ul.menuHoriz li { float: left; } ul.menuVert { position: absolute; top: 24px; } #navigation li { display: block; background-color:#FF0; width: 130px; height: 25px; margin: 0 3px 0 0; padding: 0; } ul#menuSubTwo { left: 133px } ul#menuSubThree { left: 266px } ul#menuSubFive { left: 532px }
Capture d'écran du site est fourni depuis des liens annonce n'est pas autorisée ici.
Se contenter de laisser tout le monde sait que les sous-menus ne fonctionnent pas encore, mais je tiens à résoudre ce premier problème avant de passer à l'étape suivante. Merci d'avance.
Attachments:
- Anonymous
- Bot


- Inscription: 25 Feb 2008
- Messages: ?
- Loc: Ozzuland
- Status: Online
Juin 16th, 2010, 11:49 am
Page 1 sur 1
Pour répondre à ce sujet, vous devez vous connecter ou vous enregistrer. Il est gratuit.
Afficher de l'information
- Total des messages de ce sujet: 2 messages
- Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 120 invités
- Vous ne pouvez pas poster de nouveaux sujets
- Vous ne pouvez pas répondre aux sujets
- Vous ne pouvez pas éditer vos messages
- Vous ne pouvez pas supprimer vos messages
- Vous ne pouvez pas joindre des fichiers

