Yea, would be better to solve it. Well, my problem is that the main content section for my menu is "breaking away" from the top header section of the menu. It only happened when I added the borders, I could remove the borders but it looks wierd if without them.
HTML Code:
Code:
<div class="main_content">
<!--End of Declare Main Content Area,
Beginning of Menu section-->
<div class="main_menu_all">
<div class="main_menu_top_all">
<div class="main_menu_top_left"></div>
<div class="main_menu_top_textimg_left"></div>
<div class="main_menu_top_textimg_repeat">
<h1 class="menu">Menu</h1>
</div>
<div class="main_menu_top_textimg_right"></div>
<div class="main_menu_top_right"></div>
</div>
<div class="main_menu_content_bg">
<!--Main Menu Text-->
<p class="spacer"> </p> <!--Stop the menu buttons bunching at top-->
<p class="menu">- Home</p>
<p class="menu">- News</p>
<p class="menu">- Forums</p>
<p class="menu">- Spotlight</p>
<p class="menu">- Servers</p>
<p class="menu">- Competitions</p>
<p class="menu">- Newsletter</p>
<p class="menu">- Calender</p>
<p class="menu">- Contact</p>
<p class="bottom">- Clans</p> <!--Allows Spacing at bottom of menu-->
<!--End Main Menu Text-->
</div>
And the CSS Code for this section:
Code:
/*Main menu*/
.main_menu_all {
width: 250px;
height: 100%;
float: left;
margin-top: 10px;
}
/*Main menu top section*/
.main_menu_top_all {
width: 250px;
height: 23px;
background-image: url(images/contentbox_top_repeat.jpg);
background-repeat: repeat-x;
}
.main_menu_top_left {
width: 8px;
height: 23px;
float: left;
background-image: url(images/contentbox_top_left_end.gif);
background-color: #FFFFFF;
}
.main_menu_top_right {
width: 8px;
height: 23px;
float: right;
background-image: url(images/contentbox_top_right_end.gif);
background-color: #FFFFFF;
}
.main_menu_top_textimg_left {
width: 19px;
height: 23px;
float: left;
background-image: url(images/contentbox_top_midtext_left.jpg);
margin-left: 5px;
}
.main_menu_top_textimg_repeat {
width: 65px;
height: 23px;
float:left;
background-image: url(images/contentbox_top_midtext_repeat.jpg);
background-repeat: repeat-x;
}
.main_menu_top_textimg_repeat h1.menu {
font-family: Tahoma;
font-size: 12px;
color: #FFFFFF;
text-align: center;
vertical-align: text-bottom;
}
.main_menu_top_textimg_right {
width: 19px;
height: 23px;
float: left;
background-image: url(images/contentbox_top_midtext_right.jpg);
}
/*End of Main Menu top section*/
/*Main Menu Content Area*/
.main_menu_content_bg {
width: 247px;
height: 100%;
background-image: url(images/content_grad.jpg);
background-color: #cccccc;
background-repeat: repeat-x;
margin-left: 1px;
border-right-width: 1px;
border-left-width: 1px;
border-right-style: solid;
border-left-style: solid;
border-right-color: #006699;
border-left-color: #006699;
}
/*Main Menu Text, Spacer and Bottom Item Text*/
.main_menu_content_bg p.spacer {
font-family: Tahoma;
font-size: 12px;
color: #006699;
vertical-align: bottom;
padding-left: 35px;
font-weight: bold;
margin-top: 0px;
padding-top: 0px;
}
.main_menu_content_bg p.menu {
font-family: Tahoma;
font-size: 12px;
color: #006699;
vertical-align: bottom;
padding-left: 35px;
font-weight: bold;
padding-top: 0px;
margin-top: 0px;
}
.main_menu_content_bg p.bottom {
font-family: Tahoma;
font-size: 12px;
color: #006699;
vertical-align: bottom;
padding-left: 35px;
font-weight: bold;
margin-top: 0px;
padding-bottom: 30px;
}
Thanks for the quick reply
Bookmarks