www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] moving navigation bar

  1. #1
    Join Date
    Sep 2012
    Posts
    48

    resolved [RESOLVED] moving navigation bar

    Hello, I'm trying to ove my navigation bar to the center and can't get it to move. Can someone help please?




    Code:
    ul#css3menu1,ul#css3menu1 ul{
    	margin:0;list-style:none;background-color:#000;background-image:url("mainbk.png");background-repeat:repeat;border-width:0px;border-style:solid;border-color:#999999;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}
    ul#css3menu1 ul{
    	display:none;position:absolute;left:0;top:100%;-moz-box-shadow:0.7px 0.7px 1px #777777;-webkit-box-shadow:0.7px 0.7px 1px #777777;box-shadow:0.7px 0.7px 1px #777777;padding:0 9px 9px;background-color:#00546b;background-image:none;border-width:1px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-style:solid;border-color:#5A5E60;}
    ul#css3menu1 li:hover>*{
    	display:block;}
    ul#css3menu1 li:hover{
    	position:relative;}
    ul#css3menu1 ul ul{
    	position:absolute;left:100%;top:0;}
    ul#css3menu1{
    	padding:1px 1px 1px 0;display:block;font-size:0;float:left;}
    ul#css3menu1 li{
    	display:block;white-space:nowrap;font-size:0;float:left;}
    ul#css3menu1>li,ul#css3menu1 li{
    	margin:0 0 0 1px;}
    ul#css3menu1 ul>li{
    	margin:1px 0 0;}
    ul#css3menu1 a:active, ul#css3menu1 a:focus{
    	outline-style:none;}
    ul#css3menu1 a,ul#css3menu1 a.pressed{
    	display:block;vertical-align:middle;text-align:left;text-decoration:none;font:bold 12px Arial;color:#cccccc;cursor:default;}
    ul#css3menu1 ul li{
    	float:none;margin:9px 0 0;}
    ul#css3menu1 ul a{
    	text-align:left;padding:8px 0 0 0;background-color:#00546b;background-image:none;border-width:1px 0 0 0;border-style:solid;border-color:#262626;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;font:13px Arial;color:#ffffff;text-decoration:none;}
    ul#css3menu1 li:hover>a{
    	background-color:#00c4ff;border-style:none;font:bold 12px Arial;color:#ffffff;text-decoration:none;background-image:url("mainbk.png");background-position:0 100px;}
    ul#css3menu1 img{
    	border:none;vertical-align:middle;margin-right:10px;}
    ul#css3menu1 img.over{
    	display:none;}
    ul#css3menu1 li:hover > a img.def{
    	display:none;}
    ul#css3menu1 li:hover > a img.over{
    	display:inline;}
    ul#css3menu1 li a.pressed img.over{
    	display:inline;}
    ul#css3menu1 li a.pressed img.def{
    	display:none;}
    ul#css3menu1 span{
    	display:block;overflow:visible;background-position:right center;background-repeat:no-repeat;padding-right:0px;}
    ul#css3menu1 a{
    	padding:10px;background-color:#00546b;background-image:url("mainbk.png");background-repeat:repeat;background-position:0 200px;border-width:0px;border-style:none;border-color:;color:#cccccc;text-decoration:none;}
    ul#css3menu1 li:hover>a,ul#css3menu1 li>a.pressed{
    	background-color:#00c4ff;background-image:url("mainbk.png");background-position:0 100px;border-style:none;color:#ffffff;text-decoration:none;}
    ul#css3menu1 ul li:hover>a,ul#css3menu1 ul li>a.pressed{
    	background-color:#0080a3;background-image:none;border-style:solid;border-color:#262626;font:13px Arial;color:#ffffff;text-decoration:none;}
    ul#css3menu1 li.topfirst>a{
    	height:16px;line-height:16px;border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;-webkit-border-radius:4px;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;text-shadow:#000000 0px -1px 1px;}
    ul#css3menu1 li.topfirst:hover>a,ul#css3menu1 li.topfirst>a.pressed{
    	line-height:16px;text-shadow:#3d3d3d 0px -1px 1px;}
    ul#css3menu1 li.topmenu>a{
    	height:16px;line-height:16px;text-shadow:#000000 0px -1px 1px;}
    ul#css3menu1 li.topmenu:hover>a,ul#css3menu1 li.topmenu>a.pressed{
    	line-height:16px;text-shadow:#3d3d3d 0px -1px 1px;}
    ul#css3menu1 li.toplast>a{
    	height:16px;line-height:16px;border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0;-webkit-border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;text-shadow:#000000 0px -1px 1px;}
    ul#css3menu1 li.toplast:hover>a,ul#css3menu1 li.toplast>a.pressed{
    	line-height:16px;text-shadow:#3d3d3d 0px -1px 1px;}
    ul#css3menu1 ._>li>a{
    	padding:0;}
    ul#css3menu1 li.subfirst>a{
    	border-width:0;border-style:none;padding:0;}
    ul#css3menu1 li.subfirst:hover>a,ul#css3menu1 li.subfirst>a.pressed{
    	border-style:none;}
    HTML Code:
    <div align="center">
    
    <div align="center"><center><ul id="css3menu1" class="topmenu">
    	<li class="topfirst"><a href="index.html" title="Home" style="width:120px;height:16px;line-height:16px;">Home</a></li>
    	<li class="topmenu"><a  style="width:120px;height:16px;line-height:16px;"><span>Destinations</span></a>
    	<ul>
    		<li class="subfirst"><a href="#" title="North America">North America</a>
                <ul>
    						<li><a href="#">Canada</a></li>
    						<li><a href="#">Cuba</a></li>
                            <li><a href="#">Mexico</a></li>
                            <li><a href="#">Suriname</a></li>
                            <li><a href="#">United States</a></li>
    					</ul>
    				</li>
    		<li class="subfirst"><a href="#" title="Central America">Central America</a>
                        <ul>
    						<li><a href="#">Costa Rica</a></li>
    						<li><a href="#">EI Salvador</a></li>
                            <li><a href="#">Guatemala</a></li>
                            <li><a href="#">Honduras</a></li>
    						<li><a href="#">Nicaragua</a></li>
                            <li><a href="#">Panama</a></li>
                            <li><a href="#">Turks And Caicos Islands</a></li>
    					</ul>
    				</li>
    		<li class="subfirst"><a href="#" title="South America">South America</a>
            <ul>
    			<li><a href="#">Argentina</a></li>
    			<li><a href="#">Bolivia</a></li>
                <li><a href="#">Brazil</a></li>
                <li><a href="#">Chile</a></li>
    		    <li><a href="#">Columbia</a></li>
                <li><a href="#">Ecuador</a></li>
                <li><a href="#">French Guiana</a></li>
    			<li><a href="#">Guyana</a></li>
                <li><a href="#">Paraguay</a></li>
                <li><a href="#">Peru</a></li>
    			<li><a href="#">Uruguay</a></li>
                <li><a href="#">Venezuela</a></li>			
    			</ul>			
    				</li>		
            <li><a href="#" title="Patio's">Europe</a></li>
            <li><a href="#" title="Patio's">Caribbean</a></li>
            <li><a href="#" title="Patio's">Africa</a></li>
            <li><a href="#" title="Patio's">Middle East</a></li>
            <li><a href="#" title="Patio's">Australia</a></li>
            <li><a href="#" title="Patio's">Asia</a></li>
        </ul>
    	</li>
    	<li class="topmenu"><a  style="width:120px;height:16px;line-height:16px;"><span>Resources</span></a></li>
    	<li class="topmenu"><a  style="width:120px;height:16px;line-height:16px;"><span>Comments</span></a></li>
        <li class="topfirst"><a href="index.html.html" title="Contact" style="width:120px;height:16px;line-height:16px;">Contact</a></li>
    
        </ul>
    	</li>
        
    </ul></center>
    </div>

  2. #2
    Join Date
    Oct 2012
    Posts
    39
    Here’s another thread with some sample code for navigation links.

  3. #3
    Join Date
    Sep 2012
    Posts
    48
    There was no thread attached to your comment LOL
    Last edited by charisma44; 10-11-2012 at 07:48 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.29824 seconds
  • Memory Usage 2,902KB
  • Queries Executed 15 (?)
More Information
Template Usage (34):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (3)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (72):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates