Witam mam taki problem, nie działa mi menu, a wygląda to tak.
Mam strone zbudowaną dynamicznie.
Na w pliku index wygląda to tak :
<leftcolumn><?php include "include/menu_lewe.php"; ?></leftcolumn>
zaś plik menu_lewe
<html><body>
<head>
<link rel="stylesheet" href="main.css" type="text/css" media="screen" />
</head>
<ul class="blueblok">
<?php
// sprawdzenie czy zmienna $add_site istnieje
if(!$add_site) exit;
?> <br>
<form action="index.php?go=0" method=POST>
<li><p><input type=submit name="submit" value="Definicje"></p></li></form>
<form action="index.php?go=1" method=POST>
<p><input type=submit name="submit" value="przeglądaj"></p></form>
<form action="index.php?go=2" method=POST>
<p><input type=submit name="submit" value="dodaj"></p></form>
<form action="index.php?go=6" method=POST>
<p><input type=submit name="submit" value="usun"></p></form>
<form action="index.php?go=7" method=POST>
<p><input type=submit name="submit" value="edycja"></p></form>
</ul>
</body>
</html>
a plik ze stylami jest taki
/*
Created by Keith Donegan of Code-Sucks.com
E-Mail: Keithdonegan@gmail.com
You can do whatever you want with these layouts,
but it would be greatly appreciated if you gave a link
back to http://www.code-sucks.com
*/
*{ padding: 0; margin: 0; }
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 25px;
font-color: #FFFFFF;
}
#wrapper {
margin: 0 auto;
width: 922px;
}
#faux {
background: url(faux-1-2-col.gif);
margin-bottom: 5px;
overflow: auto;
width: 100%
}
header {
background:url(images/logo.jpg);
background-repeat:no-repeat;
background-size:100% 100%;
border-top-left-radius ;
border-top-right-radius ;
border-bottom-left-radius;
border-bottom-right-radius;
border-radius: 12px 10px ;
float: center;
color: #333;
width: auto ;
padding: 100px;
height: auto;
margin: 10px 10px 5px 10px;
}
#navigation {
color: #331;
width: auto;
padding: 10px;
margin: 0px 0px 5px 0px;
background: #ABBEBE;
}
leftcolumn {
display: inline;
color: #333;
margin: 0px;
padding: 10px;
width: 20%;
height: 500px;
float: left;
background: #DC143C;
}
srodek{
display: inline;
color: #333;
margin: 0px;
padding: 10px;
width: 76%;
height: 500px;
float: right;
font-color: white;
}
footer {
width: auto;
clear: both;
color: #333;
margin: 0px 0px 10px 0px;
padding: 10px;
}
div.contener
{width: auto;
height: auto;
margin-left:auto;
margin-right:auto;
color:white;
}
.clear { clear: both; background: none; }
<style type="text/css">
blueblock{
width: 180px;
border-right: 1px solid #000;
padding: 0 0 1em 0;
margin-bottom: 1em;
font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
font-size: 90%;
background-color: #90bade;
color: #333;
}
* html #blueblock{ /*IE 6 only */
w\idth: 147px; /*Box model bug: 180px minus all left and right paddings for #blueblock */
}
blueblock ul{
list-style: none;
margin: 0;
padding: 0;
border: none;
}
blueblock li {
border-bottom: 1px solid #90bade;
margin: 0;
}
blueblock li a{
display: block;
padding: 5px 5px 5px 8px;
border-left: 10px solid #1958b7;
border-right: 10px solid #508fc4;
background-color: #2175bc;
color: #fff;
text-decoration: none;
width: 100%;
}
html>body #blueblock li a{ /*Non IE6 width*/
width: auto;
}
blueblock li a:hover{
border-left: 10px solid #1c64d1;
border-right: 10px solid #5ba3e0;
background-color: #2586d7;
color: #fff;
}
</style>
ma ktoś pomysł dlaczego nie stosuje mi stylu menu