Navi Problem ;)


  • system32
  • 826 Aufrufe 5 Antworten

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Navi Problem ;)

    Hey,


    Ich brauche dringend Hilfe bei HTML bzw. CSS und zwar bruach ich die navi von hier, in der Seite drin.


    Es wär nett wenn mir das jemand machen könnte weil ich nicht grad sehr viel Plan hab von CSS.

    So hier mal der Code von den Seiten. main.htm und style.css gehören zusammen.

    style.css

    PHP-Quellcode

    1. /* Main menu */
    2. ul.page{
    3. list-style:none;
    4. margin-left: 210px;
    5. width:140px;
    6. }
    7. ul.page li{
    8. display:inline;
    9. line-height:1.2em;
    10. width:140px;
    11. }
    12. ul.page li a{
    13. background-color:#f4f4f4;
    14. border-left:4px solid #cccccc;
    15. color:#505050;
    16. float:left;
    17. font-weight:bold;
    18. margin-bottom:5px;
    19. padding:5px 1px 5px 5px;
    20. text-decoration:none;
    21. width:130px;
    22. }
    23. ul.page li a:hover, ul.page li.current_page_item a{
    24. background-color:#eaeaea;
    25. border-left:4px solid #286ea0;
    26. color:#505050;
    27. }
    28. content
    29. {
    30. margin-left:120;
    31. width: 400px;
    32. heigth: 300px;
    33. }
    Alles anzeigen


    main.htm

    PHP-Quellcode

    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. <head>
    4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    5. <link rel="stylesheet" type="text/css" href="style1.css" />
    6. <title>Navi</title>
    7. </head>
    8. <body>
    9. <div align="center"><img src="logo.jpg"/>
    10. </div>
    11. <ul class="page">
    12. <li class="page_item current_page_item"> <a href="http://www.sg-kandern.de">Home</a></li>
    13. <li class="page_item"><a href="#" target="#content" title="DSL">DSL</a></li>
    14. <li class="page_item"><a href="#" target="#content" title="Computer">Computer</a></li>
    15. <li class="page_item"><a href="#" target="#content" title="Reperaturen">Reperaturen</a></li>
    16. <li class="page_item"><a href="#" target="#content" title="Webhosting">Webhosting</a></li>
    17. <li class="page_item"><a href="#" target="#content" title="Netzwerke">Netzwerke</a></li>
    18. <li class="page_item"><a href="#" target="#content" title="Ueber Uns">Über Uns</a></li>
    19. </ul>
    20. </div>
    21. </body>
    22. </html>
    Alles anzeigen


    main2.htm

    PHP-Quellcode

    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. <head>
    4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    5. <style type="text/css"><!--
    6. body
    7. {
    8. font-family:Verdana;
    9. font-size:1px;
    10. background-color:#eeeeee;
    11. text-align:center;
    12. margin:0px;
    13. }
    14. code {font-size:16px;color:#000;}
    15. pre
    16. {
    17. font-size:14px;
    18. color:#0000ff;
    19. padding:5px;
    20. }
    21. a:link, a:visited, a:active, a:hover
    22. {
    23. text-decoration:underline;
    24. font-weight:normal;
    25. color:#ff0000;
    26. font-size:12px;
    27. }
    28. a:active, a:hover
    29. {
    30. background-color:#eeeeee;
    31. border-left:4px solid #cccccc;
    32. color:#505050;
    33. }
    34. a.menu {
    35. display:block;
    36. padding:5px 1px 5px 5px;
    37. border-left:4px solid #cccccc;
    38. font-weight:bold;
    39. background-color:#eeeeee;
    40. text-align:center;
    41. color:#eeeeee;
    42. text-decoration:none;
    43. }
    44. a.menu:link, a.menu:visited
    45. {
    46. color:#eeeeee;
    47. background-color:#737994;
    48. text-decoration:none; font-weight:bold;
    49. }
    50. a.menu:active, a.menu:hover
    51. {
    52. color:#737994; font-weight:bold;
    53. background-color:#eeeeee;
    54. }
    55. #title {
    56. height:140px;
    57. padding:5px;
    58. background-color:#eeeeee;
    59. border-bottom:1px solid #000;
    60. }
    61. #left {
    62. background-color:#bdbec6;
    63. width:128px;
    64. float:left;
    65. }
    66. .menutitle{
    67. font-weight:bold;
    68. text-align:center;
    69. margin:2px;
    70. }
    71. .menucontainer {
    72. background-color:#eeeeee;
    73. width:106px;
    74. margin:10px;
    75. }
    76. #content {
    77. border:1px solid #efeff7;
    78. background-color:#efeff7;
    79. width:610px;
    80. float:right;
    81. padding:0px 10px;
    82. }
    83. //--></style>
    84. <title>You2Net</title>
    85. </head>
    86. <body>
    87. <div style="width:770px;height:650px;margin:0px auto;text-align:left;background-color:#bdbec6;border:1px solid #000000;">
    88. <div id="title">
    89. <img src="logo.jpg" />
    90. </div>
    91. <div id="left">
    92. <div class="menucontainer">
    93. <a class="menu" href="http://www.profiseller.de/shop1/mega/index.php3?shop=10&amp;ps_id=P10063736" target="_blank">DSL</a>
    94. <a class="menu" href="computer.htm" target="content">Computer</a>
    95. <a class="menu" href="reperatur.htm" target="content">Reperaturen</a>
    96. <a class="menu" href="http://www.profiseller.de/shop1/mega/index.php3?ps_id=P10063736&shop=1" target="_blank">Webhosting</a>
    97. <a class="menu" href="netzwerk.htm" target="content">Netzwerke</a>
    98. <a class="menu" href="overus.htm" target="content">&Uuml;ber Uns</a>
    99. </div>
    100. </div>
    101. <div id="content">
    102. <iframe src="home.htm" width="100%" height="490" name="content" scrolling="no" frameborder="0">
    103. <p align="center">&nbsp;</p>
    104. <p align="center">&nbsp;</p>
    105. <h2 style="margin-top:10px;"></h2>
    106. <p style="margin-top:10px;"></p>
    107. <p style="margin-top:10px;"></p>
    108. <p style="margin-top:10px;"></p>
    109. <p style="margin-top:10px;"></p>
    110. <p style="margin-top:10px;"></p>
    111. <p style="margin-top:10px;"></p>
    112. <p style="margin-top:10px;"></p>
    113. </div>
    114. <p><br style="clear:both;" />
    115. </p>
    116. </div>
    117. </body>
    118. </html>
    Alles anzeigen



    mfg system32
  • Das ganze könnte man(wenn man nur rein html verwenden möchte) mit Frames machen!

    Das würde dann so aussehen:

    Du müsstest eine index.html erstellen mit Worpad, Editor;

    Dort schreibst du dann:

    HTML-Quellcode

    1. <html>
    2. <head>
    3. <title>Den Name deiner Seite!
    4. </title>
    5. <frameset>
    6. <frame src="main.htm" Noresize>
    7. <frame src="main2.htm" Name="content">
    8. </frameset>
    9. </head>
    10. </html>


    Hoffe ich konnte dir weiterhelfen!:D

    edit: Das würdest du aber auch auf der Selfhtml Homepage finden!:D


    Mfg Tigga!

    User helfen Usern: die FSB-Tutoren! (Zum Chat) mit den Tutoren
  • Nein ich will keine Frames. Die Positionierung etc is ja schon fertig mit CSS ich will eben nur die Navi von main.htm in main2.htm drin haben. Ich hab leider dafür zu wenig Ahnung von CSS.

    Es ist eigentlich nur der mouseover effekt und halt farben udn grössen änderungnen.

    mfg cheatkiller
  • hi bennen deine style.css mal in style1.css um oder ändern in main.htm folgende Zeile:
    [alt] <link rel="stylesheet" type="text/css" href="style1.css" />
    [neu] <link rel="stylesheet" type="text/css" href="style.css" />

    ps.: Andre Style-Ideen klauen is nich grad die feine englische...

    ´gruß
    [size=1][FONT="Courier New"]###############_###_####_
    #_ __ #___ _ _| |_(_)__(_)__ _ _ _###############new uploads: [1] [2] [3] [4] [5] [6] [7] [8]
    |#'##\/ _ \ '_|##_| / _| / _` | ' \
    |_|_|_\___/_|##\__|_\__|_\__,_|_||_|###############Bis 28. Sept. weg[/FONT][/size]