LuCIFER_DeViL
Registered
Код:
<div style="width:360px;text-align: center;margin: 0px auto;" class="indentmenu1">
<ul>
<li><a href="index.php?sub=novini" <?php if($_GET['category'] == null){ echo 'class="selected"';} ?>>ВСИЧКИ</a></li>
<li><a href="index.php?sub=novini&category=1" <?php if($_GET['category'] == '1'){ echo 'class="selected"';} ?>>АКЦЕНТИ</a></li>
<li><a href="index.php?sub=novini&category=2" <?php if($_GET['category'] == '2'){ echo 'class="selected"';} ?>>АКТУАЛНИ ТЕМИ</a></li>
<li><a href="index.php?sub=novini&category=3" <?php if($_GET['category'] == '3'){ echo 'class="selected"';} ?>>СПЕЦИАЛНО</a></li>
</ul>
<br style="clear: left" />
</div>
<div style="width:300px;margin: 0px auto;font-align:center;" class="indentmenu2">
<ul>
<li><a href="index.php?sub=novini&category=4" <?php if($_GET['category'] == '4'){ echo 'class="selected"';} ?>>НАУКА И ТЕХНИКА</a></li>
<li><a href="index.php?sub=novini&category=5" <?php if($_GET['category'] == '5'){ echo 'class="selected"';} ?>>ЛЮБОПИТНО</a></li>
<li><a href="index.php?sub=gallery" <?php if($_GET['sub'] == 'gallery'){ echo 'class="selected"';} ?>>ГАЛЕРИЯ</a></li>
</ul>
<br style="clear: left" />
</div>
Код:
.indentmenu1{
font: 11px Arial;
width: 100%; /*leave this value as is in most cases*/
}
.indentmenu1 ul{
margin: 0;
padding: 0;
float: left;
/* width: 80%; width of menu*/
border: 1px dashed black; /*navy border*/
background: black url(../indentbg.gif) center center repeat-x;
}
.indentmenu1 ul li{
display: inline;
}
.indentmenu1 ul li a{
float: left;
color: white; /*text color*/
padding: 5px 11px;
text-decoration: none;
border: 0px solid black; /*navy divider between menu items*/
}
.indentmenu1 ul li a:visited{
color: white;
}
.indentmenu1 ul li a.selected{
color: white !important;
padding-top: 6px; /*shift text down 1px*/
padding-bottom: 4px;
background: black url(../indentbg2.gif) center center repeat-x;
}
.indentmenu2{
font: 11px Arial;
width: 100%; /*leave this value as is in most cases*/
}
.indentmenu2 ul{
margin: 0;
padding: 0;
float: left;
/* width: 80%; width of menu*/
border-bottom: 1px dashed black; /*navy border*/
border-left: 1px dashed black; /*navy border*/
border-right: 1px dashed black; /*navy border*/
background: black url(../indentbg.gif) center center repeat-x;
}
.indentmenu2 ul li{
display: inline;
}
.indentmenu2 ul li a{
float: left;
color: white; /*text color*/
padding: 5px 11px;
text-decoration: none;
border: 0px solid black; /*navy divider between menu items*/
}
.indentmenu2 ul li a:visited{
color: white;
}
.indentmenu2 ul li a.selected{
color: white !important;
padding-top: 6px; /*shift text down 1px*/
padding-bottom: 4px;
background: black url(../indentbg2.gif) center center repeat-x;
}
Имам проблем, не мога да го центрирам в ИЕ, докато в Мозила си седи добре.