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
- /* Main menu */
- ul.page{
- list-style:none;
- margin-left: 210px;
- width:140px;
- }
- ul.page li{
- display:inline;
- line-height:1.2em;
- width:140px;
- }
- ul.page li a{
- background-color:#f4f4f4;
- border-left:4px solid #cccccc;
- color:#505050;
- float:left;
- font-weight:bold;
- margin-bottom:5px;
- padding:5px 1px 5px 5px;
- text-decoration:none;
- width:130px;
- }
- ul.page li a:hover, ul.page li.current_page_item a{
- background-color:#eaeaea;
- border-left:4px solid #286ea0;
- color:#505050;
- }
- content
- {
- margin-left:120;
- width: 400px;
- heigth: 300px;
- }
main.htm
PHP-Quellcode
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" type="text/css" href="style1.css" />
- <title>Navi</title>
- </head>
- <body>
- <div align="center"><img src="logo.jpg"/>
- </div>
- <ul class="page">
- <li class="page_item current_page_item"> <a href="http://www.sg-kandern.de">Home</a></li>
- <li class="page_item"><a href="#" target="#content" title="DSL">DSL</a></li>
- <li class="page_item"><a href="#" target="#content" title="Computer">Computer</a></li>
- <li class="page_item"><a href="#" target="#content" title="Reperaturen">Reperaturen</a></li>
- <li class="page_item"><a href="#" target="#content" title="Webhosting">Webhosting</a></li>
- <li class="page_item"><a href="#" target="#content" title="Netzwerke">Netzwerke</a></li>
- <li class="page_item"><a href="#" target="#content" title="Ueber Uns">Über Uns</a></li>
- </ul>
- </div>
- </body>
- </html>
main2.htm
PHP-Quellcode
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <style type="text/css"><!--
- body
- {
- font-family:Verdana;
- font-size:1px;
- background-color:#eeeeee;
- text-align:center;
- margin:0px;
- }
- code {font-size:16px;color:#000;}
- pre
- {
- font-size:14px;
- color:#0000ff;
- padding:5px;
- }
- a:link, a:visited, a:active, a:hover
- {
- text-decoration:underline;
- font-weight:normal;
- color:#ff0000;
- font-size:12px;
- }
- a:active, a:hover
- {
- background-color:#eeeeee;
- border-left:4px solid #cccccc;
- color:#505050;
- }
- a.menu {
- display:block;
- padding:5px 1px 5px 5px;
- border-left:4px solid #cccccc;
- font-weight:bold;
- background-color:#eeeeee;
- text-align:center;
- color:#eeeeee;
- text-decoration:none;
- }
- a.menu:link, a.menu:visited
- {
- color:#eeeeee;
- background-color:#737994;
- text-decoration:none; font-weight:bold;
- }
- a.menu:active, a.menu:hover
- {
- color:#737994; font-weight:bold;
- background-color:#eeeeee;
- }
- #title {
- height:140px;
- padding:5px;
- background-color:#eeeeee;
- border-bottom:1px solid #000;
- }
- #left {
- background-color:#bdbec6;
- width:128px;
- float:left;
- }
- .menutitle{
- font-weight:bold;
- text-align:center;
- margin:2px;
- }
- .menucontainer {
- background-color:#eeeeee;
- width:106px;
- margin:10px;
- }
- #content {
- border:1px solid #efeff7;
- background-color:#efeff7;
- width:610px;
- float:right;
- padding:0px 10px;
- }
- //--></style>
- <title>You2Net</title>
- </head>
- <body>
- <div style="width:770px;height:650px;margin:0px auto;text-align:left;background-color:#bdbec6;border:1px solid #000000;">
- <div id="title">
- <img src="logo.jpg" />
- </div>
- <div id="left">
- <div class="menucontainer">
- <a class="menu" href="http://www.profiseller.de/shop1/mega/index.php3?shop=10&ps_id=P10063736" target="_blank">DSL</a>
- <a class="menu" href="computer.htm" target="content">Computer</a>
- <a class="menu" href="reperatur.htm" target="content">Reperaturen</a>
- <a class="menu" href="http://www.profiseller.de/shop1/mega/index.php3?ps_id=P10063736&shop=1" target="_blank">Webhosting</a>
- <a class="menu" href="netzwerk.htm" target="content">Netzwerke</a>
- <a class="menu" href="overus.htm" target="content">Über Uns</a>
- </div>
- </div>
- <div id="content">
- <iframe src="home.htm" width="100%" height="490" name="content" scrolling="no" frameborder="0">
- <p align="center"> </p>
- <p align="center"> </p>
- <h2 style="margin-top:10px;"></h2>
- <p style="margin-top:10px;"></p>
- <p style="margin-top:10px;"></p>
- <p style="margin-top:10px;"></p>
- <p style="margin-top:10px;"></p>
- <p style="margin-top:10px;"></p>
- <p style="margin-top:10px;"></p>
- <p style="margin-top:10px;"></p>
- </div>
- <p><br style="clear:both;" />
- </p>
- </div>
- </body>
- </html>
mfg system32