Been scratching my head for hours now and cant figure it out.
In my top menu i have categories but i have also added an "home button" in header.tpl.
Problem is, "home button" looks like all the other headers in the menu and when i try to move the "home button" to the left all the categories follows, because the "home button" doesn't have an own class. Or i think it has but cant figure it out how to modify it in my css.
Here is the part in my header.tpl:
Code: Select all
<div id="menu">
<ul>
<li><a class="hem"><a href="index.php?route=common/home">HEM</a></li>
<?php foreach ($categories as $category) { ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
<?php if ($category['children']) { ?>
<div>
Code: Select all
#menu {
background: #FFFFFF;
border: 1px dashed #000000;
height: 35px;
margin-bottom: 15px;
padding: 0px 2px;
}
#menu ul {
list-style: none;
margin: 0;
padding: 0;
margin-left: 240px;
}
#menu > ul > li .hem {
margin-left: 100px;
}
#menu > ul > li {
position: relative;
float: left;
z-index: 20;
}
#menu > ul > li:hover {
}
#menu > ul > li > a {
font-size: 13px;
color: #000000;
line-height: 14px;
text-decoration: none;
display: table;
padding: 9px 10px 10px 15px;
margin-top: 2px;
z-index: 6;
position: relative;
Thanks in advance guys and girls!
Johan