View Single Post
  #1  
Old 11-15-2009, 02:06 PM
Trasion Trasion is offline
 
Join Date: Sep 2009
Location: New York
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default why won't it align...

http://trasion.com/?styleid=1

The top part, I want it to all line up together. Right now, the top part of the tabs is one pixel off, even though they're all the same size.

Here's the down-low:

I wrapped the header and those tabs in one div, and had it aligned to the center. The div's class is header_nav, and I made it a set width, but I think it's one pixel too large. But if I shorten it by one, then the tabs get bumped, and one goes on the line below.

Here's my CSS, and header template:

header template:
Code:
<center><div class="header_nav"><img src="images/misc/header.png"><br />
<div id="mytabsmenu" class="tabsmenuclass">
<ul>
<li><a href="putlink" rel="gotsubmenu[selected]">Trasion Homepage</a></li>
<li><a href="putlink" rel="gotsubmenu">Trasion Community</a></li>
<li><a href="putlink" rel="gotsubmenu" style="float:right;">Skateboarding News</a></li>
<li><a href="putlink" rel="gotsubmenu">Skateboarding Galleries</a></li>
<li><a href="putlink" rel="gotsubmenu">Skateboarding Articles</a></li>
<li><a href="putlink" rel="gotsubmenu">Skateboarding Dictionary</a></li>
</ul>
</div>

<div id="mysubmenuarea" class="tabsmenucontentclass">

<!--1st link within submenu container should point to the external submenu contents file-->
<a href="submenucontents.htm" style="visibility:hidden">Sub Menu contents</a>

</div>

<script type="text/javascript">
//mouseovertabsmenu.init("tabs_container_id", "submenu_container_id", "bool_hidecontentsmouseout")
mouseovertabsmenu.init("mytabsmenu", "mysubmenuarea", true)

</script></div></center>


<!-- content table -->
$spacer_open

$_phpinclude_output
CSS:
Code:
/* ######### CSS for top level tabs ######### */

.tabsmenuclass ul{
overflow: hidden;
width: auto;
margin: 0;
padding: 0;
list-style-type: none;
}

.tabsmenuclass li{
float: left;
}

.tabsmenuclass a{
display: block;
padding: 5px 7px;
background: #373737;
color: #FFFFFF;
margin-right: 1px;
text-decoration: none;
font: bold 13px Tahoma;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 0px;
border-top: 1px solid #000000;
}

.tabsmenuclass a:hover, .tabsmenuclass a.selected{
background: #912F30;
color: white;
font: bold 13px Tahoma;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 0px;
border-top: 1px solid #000000;
}

/* ######### CSS for sub menu container below ######### */

.tabsmenucontentclass{
clear: left;
background: #912F30;
width: 926px;
height: 24px;
padding: 5px;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
border-top: 0px;
color: #FFFFFF;
font: bold 13px Arial;
}

.tabsmenucontentclass ul{
margin: 0;
padding: 0;
list-style-type: none;
}

.tabsmenucontentclass li{
float: left;
margin-right: 1em;
}

.header_nav {
width: 939px;
background-color: #E0E0E0;
}
How can I get this lined up properly?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01173 seconds
  • Memory Usage 1,779KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete