Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Poziome menu
lukashid
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 30.10.2009

Ostrzeżenie: (0%)
-----


Witam mam taki kod :
Kod
.mojemenu {
    position:relative;
        top:-52px;
        left:0px;
    font-size:20px;
         width:950px;
    color:#f8991b;    
    text-align:center;
    font-family:Verdana,Arial,Times;


To jest pionowe menu.Ja chce poziome.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
emtiej
post
Post #2





Grupa: Zarejestrowani
Postów: 207
Pomógł: 18
Dołączył: 12.04.2009
Skąd: Rypin

Ostrzeżenie: (0%)
-----


Style.css
  1. @charset "utf-8";
  2. /* CSS Document */
  3.  
  4.  
  5. .mojemenu
  6. {
  7. margin: 0 auto; /* wyrównanie do środka */
  8. display: block; /* element blokowy */
  9. font-size:20px; /* wielkość tekstu */
  10. width:950px; /* szerokość */
  11. height: 40px; /* wysokość */
  12. color:#f8991b; /* kolor tekstu */
  13. text-align:center; /* wyrównanie tekstu do środka */
  14. font-family:Verdana,Arial,Times; /* czcionka */
  15. background-color: red; /* kolor tła */
  16. padding-top: 10px; /* margines wewnętrzny od góry */
  17. }


index.html
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Menu</title>
  5. <link rel="Stylesheet" type="text/css" href="style.css" />
  6. </head>
  7. <div class="mojemenu">
  8. <a href="#">Link </a>
  9. <a href="#">Link </a>
  10. <a href="#">Link </a>
  11. <a href="#">Link </a>
  12. <a href="#">Link </a>
  13. <a href="#">Link </a>
  14. <a href="#">Link </a>
  15. <a href="#">Link </a>
  16. <a href="#">Link </a>
  17. </div>
  18.  
  19. </body>
  20. </html>



Jak pomogłem no to wiesz co robić

Ten post edytował emtiej 24.12.2009, 22:34:57
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 04:41