PDA

Zobacz pełną wersję : Problem z przesunięciem obrazka w menu górnym pod tekst



pool
18-08-2011, 14:37
Witam, próbuję stworzyć górne menu(chciałbym u mieścić tam 4 bloczki), mam problem z przesunięciem obrazka pod tekst, wygląda to u mnie tak:
4280

Tekst "O Nas" chciałbym, żeby znajdował się pod obrazkiem(obecnie znajduje się obok), ogólnie chciałbym żeby wyglądało to tak:

4281


Może ktoś na forum pracowal juz z tego typu menu, jeslil możecie w jakikolwiek pomoc proszę o rady. Dodam jeszcze, że menu jest wielopoziomowe, a problem tkwi w umieszczeniu tam obrazka i tekstu z odsyłaczem pod nim.

Oto moj kod css:


/* begin Menu */
/* menu structure */

.art-hmenu a, .art-hmenu a:link, .art-hmenu a:visited, .art-hmenu a:hover
{
outline: none;
}

.art-hmenu, .art-hmenu ul
{
margin: 0;
padding: 0;
border: 0;
list-style-type: none;
display: block;
}

.art-hmenu li
{
margin: 0;
padding: 0;
border: 0;
display: block;
float: left;
position: relative;
z-index: 5;
background: none;
}

.art-hmenu li:hover
{
z-index: 10000;
white-space: normal;
}

.art-hmenu li li
{
float: none;
}

.art-hmenu ul
{
visibility: hidden;
position: absolute;
z-index: 10;
left: 0;
top: 0;
background: none;
min-height: 0;
background-image: url('../images/spacer.gif');
padding: 10px 30px 30px 30px;
margin: -10px 0 0 -30px;
}

.art-hmenu li:hover>ul
{
visibility: visible;
top: 100%;
}

.art-hmenu li li:hover>ul
{
top: 0;
left: 100%;
}

.art-hmenu:after, .art-hmenu ul:after
{
content: ".";
height: 0;
display: block;
visibility: hidden;
overflow: hidden;
clear: both;
}
.art-hmenu{
min-height: 0;
position:relative;
padding: 0 0 0 0;
float: left;
}

.art-hmenu ul ul
{
padding: 30px 30px 30px 10px;
margin: -30px 0 0 -10px;
}

/* menu structure */

.art-nav
{
position: relative;
width:990px;
margin:0 auto;
min-height: 112px;
z-index: 100;
margin-top: 0;
margin-bottom: 0;

}

.art-nav-outer
{
position:absolute;
width:100%;
}

.art-nav-wrapper
{
position: relative;
width:990px;
margin:0 auto;
}
.art-nav-inner
{
margin: 0 0;
}

.art-nav-l, .art-nav-r
{
position: absolute;
z-index: -1;
top: 0;
height: 100%;
background-image: url('../images/nav.png');
}

.art-nav-l
{
left: 0;
right: 0;
}

.art-nav-r
{
right: 0;
width: 990px;
clip: rect(auto, auto, auto, 990px);
}

.art-hmenu-extra1
{
position: relative;
display: block;
float: left;
width: auto;
height: 112px;
background-position: center;
}

.art-hmenu-extra2
{
position: relative;
display: block;
float: right;
width: auto;
height: 112px;
background-position: center;
}

/* images in menu items */
ul.art-hmenu img.art-menu-image, ul.art-hmenu img.art-menu-image-left
{
vertical-align: middle;
margin-right: 0;
}

ul.art-hmenu img.art-menu-image-right
{
vertical-align: middle;
margin-left: 5px;
}
/* end Menu */

/* begin MenuItem */
.art-hmenu a
{

position: relative;
display: block;
overflow: hidden;
height: 112px;
cursor: pointer;
font-family: "Franklin Gothic Medium Cond",Arial, Helvetica, Sans-Serif;
font-size: 20px;
text-align: left;
text-decoration: none;
}


.art-hmenu ul li
{

margin:0;
clear: both;
}

.art-hmenu a .r, .art-hmenu a .l
{

position: absolute;
display: block;
top: 0;
z-index: -1;
height: 346px;
background-image: url('../images/menuitem.png');
}

.art-hmenu a .l
{
left: 0;
right: 17px;
}

.art-hmenu a .r
{
width: 434px;
right: 0;
clip: rect(auto, auto, auto, 417px);
}

.art-hmenu a .t, .art-hmenu ul a, .art-hmenu a:link, .art-hmenu a:visited, .art-hmenu a:hover
{
font-family: "Franklin Gothic Medium Cond",Arial, Helvetica, Sans-Serif;
font-size: 15px;
text-align: left;
text-decoration: none;
}

.art-hmenu a .t
{
color: #EEEEEE;
padding: 0 0px;
margin: 0 0px;
line-height: 153px;
text-align: center;
}

.art-hmenu a:hover .l, .art-hmenu a:hover .r
{
top: -117px;
}

.art-hmenu li:hover>a .l, .art-hmenu li:hover>a .r
{
top: -117px;
}

.art-hmenu li:hover a .l, .art-hmenu li:hover a .r
{
top: -117px;
}
.art-hmenu a:hover .t
{
color: #59B1C5;
}

.art-hmenu li:hover a .t
{
color: #59B1C5;
}

.art-hmenu li:hover>a .t
{
color: #59B1C5;
}

.art-hmenu a:hover.separator-without-submenu
{
cursor: default;
}

.art-hmenu a:hover.separator-without-submenu .t
{
color: #EEEEEE;
}

.art-hmenu li:hover a.separator-without-submenu .t
{
color: #EEEEEE;
}

a:hover.separator-without-submenu .r, a:hover.separator-without-submenu .l
{
top: 0 !important;
}
/* end MenuItem */

/* begin MenuSeparator */
.art-hmenu .art-hmenu-li-separator
{
display: block;
width: 25px;
height:112px;
}
/* end MenuSeparator */

/* begin MenuSubItem */
.art-hmenu ul a
{
display: block;
white-space: nowrap;
height: 38px;
width: 266px;
overflow: hidden;
background-image: url('../images/subitem.png');
background-position: left top;
background-repeat: repeat-x;
border-width: 0;
border-style: solid;
text-align: left;
text-indent: 12px;
text-decoration: none;
line-height: 38px;
color: #EEEEEE;
margin:0;
padding:0;
}

.art-nav ul.art-hmenu ul span, .art-nav ul.art-hmenu ul span span
{
display: inline;
float: none;
margin: inherit;
padding: inherit;
background-image: none;
text-align: inherit;
text-decoration: inherit;
}

.art-hmenu ul a:link, .art-hmenu ul a:visited, .art-hmenu ul a:hover, .art-hmenu ul a:active, .art-nav ul.art-hmenu ul span, .art-nav ul.art-hmenu ul span span
{
text-align: left;
text-indent: 12px;
text-decoration: none;
line-height: 38px;
color: #EEEEEE;
margin:0;
padding:0;
}

.art-hmenu ul li a:hover
{
color: #B9C4C6;
background-position: 0 -38px;
}

.art-hmenu ul li:hover>a
{
color: #B9C4C6;
background-position: 0 -38px;
}

.art-nav .art-hmenu ul li a:hover span, .art-nav .art-hmenu ul li a:hover span span
{
color: #B9C4C6;
}

.art-nav .art-hmenu ul li:hover>a span, .art-nav .art-hmenu ul li:hover>a span span
{
color: #B9C4C6;
}

/* end MenuSubItem */

Z góry dziękuje za pomoc:)

a_m
18-08-2011, 14:41
masz tę stronę w sieci?

pool
18-08-2011, 16:30
Nie, próbuję zrobić stronę na serwerze domowym (VertrigoServ).

---------- Post dodany o 13:30 ---------- Poprzedni post był o 11:47 ----------

nie mogę sobie z tym poradzić, macie jakiś pomysł jak to rozwiązać? Jak przesunąć tekst pod obrazek..

a_m
18-08-2011, 16:40
bez linka ciężko o pomysły