www.webdeveloper.com
Results 1 to 4 of 4

Thread: Menu Layout help urgently please

  1. #1
    Join Date
    Mar 2014
    Posts
    3

    Menu Layout help urgently please

    Hi guys, First post here but I desperately need your help. Working on a site for a mate at work but for the life of me I cannot work this out ....

    When I view the menu buttons on a mobile device it cuts out the logo (see attached image)

    http://i222.photobucket.com/albums/d...7/IMG_3319.png

    Here is my CSS code

    Code:
    html, body
    {
    	height: 100%;
    	width: 100%;
    }
    
    body
    {
    	margin: 0px;
    	padding: 0px;
    	background: #743D46;
    	font-family: 'Source Sans Pro', sans-serif;
    	font-size: 11pt;
    	font-weight: 300;
    	color: #6c6c6c
    	width:100%;
    }
    
    h1, h2, h3
    {
    	margin: 0;
    	padding: 0;b
    	font-weight: 600;
    	color: #454445;
    }
    
    p, ol, ul
    {
    	margin-top: 0;
    }
    
    ol, ul
    {
    	padding: 0;
    	list-style: none;
    }
    
    p
    {
    	line-height: 180%;
    	color: #FFF;
    }
    
    strong
    {
    	color: #FFFFFF;
    	font-size: 16pt;
    }
    
    a
    {
    	color: #743D46;
    }
    
    a:hover
    {
    	text-decoration: none;
    }
    
    .container
    {
    	margin: 0px auto;
    	width: auto;
    	alignment-adjust: central;	
    }
    
    /*********************************************************************************/
    /* Image Style                                                                   */
    /*********************************************************************************/
    
    	.image
    {
    	display: inherit;
    }
    
    .image img
    {
    	display: block;
    	width: 100%;
    }
    
    .image-full
    {
    	display: block;
    	width: 100%;
    	margin: 0 0 2em 0;
    }
    
    .image-left
    {
    	float: left;
    	margin: 0 2em 2em 0;
    }
    
    .image-centered
    {
    	display: block;
    	margin: 0 0 2em 0;
    }
    
    .image-centered img
    {
    	margin: 0 auto;
    	width: auto;
    }
    
    /*********************************************************************************/
    /* List Styles                                                                   */
    /*********************************************************************************/
    
    	ul.style1
    {
    	margin: 0;
    	padding: 0em 0em 0em 0em;
    	overflow: hidden;
    	list-style: none;
    	color: #6c6c6c
    }
    
    ul.style1 li
    {
    	overflow: hidden;
    	display: block;
    	padding: 2.80em 0em;
    	border-top: 1px solid #D1CFCE;
    }
    
    ul.style1 li:first-child
    {
    	padding-top: 0;
    	border-top: none;
    }
    
    ul.style1 .image-left
    {
    	margin-bottom: 0;
    }
    
    ul.style1 h3
    {
    	padding: 1.2em 0em 1em 0em;
    	letter-spacing: 0.10em;
    	text-transform: uppercase;
    	font-size: 1.2em;
    	font-weight: 600;
    	color: #454445;
    }
    
    ul.style1 a
    {
    	text-decoration: none;
    	color: #525252;
    }
    
    ul.style1 a:hover
    {
    	text-decoration: underline;
    	color: #525252;
    }
    
    ul.style2
    {
    	margin: 0;
    	padding-top: 1em;
    	list-style: none;
    }
    
    ul.style2 li
    {
    	border-top: solid 1px #E5E5E5;
    	padding: 0.80em 0 0.80em 0;
    	font-family: 0.80em;
    }
    
    ul.style2 li:before
    {
    	display: inherit;
    	padding: 4px;
    	background: #DB3256;
    }
    
    ul.style2 a
    {
    	display: inherit;
    	margin-left: 1em;
    }
    
    ul.style2 li:first-child
    {
    	border-top: 0;
    	padding-top: 0;
    }
    
    ul.style2 .icon
    {
    	color: #FFF;
    }
    
    ul.style3
    {
    	margin: 0;
    	padding-top: 1em;
    	list-style: none;
    }
    
    ul.style3 li
    {
    	border-top: solid 1px rgba(255,255,255,.2);
    	padding: 1em 0 1em 0;
    	font-family: 0.80em;
    }
    
    ul.style3 li:before
    {
    	display: inherit;
    	padding: 4px;
    	background: #FFF;
    }
    
    ul.style3 a
    {
    	display: inherit;
    	margin-left: 1em;
    	font-size: 1em !important;
    	color: #FFF;
    }
    
    ul.style3 li:first-child
    {
    	border-top: 0;
    	padding-top: 0;
    }
    
    ul.style3 .icon
    {
    	color: #DB3256;
    }
    
    /*********************************************************************************/
    /* Social Icon Styles                                                            */
    /*********************************************************************************/
    
    	ul.contact
    {
    	margin: 0;
    	padding: 2em 0em 0em 0em;
    	list-style: none;
    }
    
    ul.contact li
    {
    	display: inherit;
    	padding: 0em 0.30em;
    	font-size: 1em;
    }
    
    ul.contact li span
    {
    	display: none;
    	margin: 0;
    	padding: 0;
    }
    
    ul.contact li a
    {
    	color: #FFF;
    }
    
    ul.contact li a:before
    {
    	display: inherit;
    	background: #3f3f3f;
    	width: 40px;
    	height: 40px;
    	line-height: 40px;
    	border-radius: 20px;
    	text-align: center;
    	color: #FFFFFF;
    }
    
    ul.contact li a.icon-twitter:before
    {
    	background: #2DAAE4;
    }
    
    ul.contact li a.icon-facebook:before
    {
    	background: #39599F;
    }
    
    ul.contact li a.icon-dribbble:before
    {
    	background: #C4376B;
    }
    
    ul.contact li a.icon-tumblr:before
    {
    	background: #31516A;
    }
    
    ul.contact li a.icon-rss:before
    {
    	background: #F2600B;
    }
    
    /*********************************************************************************/
    /* Button Style                                                                  */
    /*********************************************************************************/
    
    	.button
    {
    	display: inline-block;
    	padding: 1.3em 3em;
    	background: #743D46;
    	-moz-transition: opacity 0.25s ease-in-out;
    	-webkit-transition: opacity 0.25s ease-in-out;
    	-o-transition: opacity 0.25s ease-in-out;
    	-ms-transition: opacity 0.25s ease-in-out;
    	transition: opacity 0.25s ease-in-out;
    	letter-spacing: 0.2em;
    	text-decoration: none;
    	text-transform: uppercase;
    	font-weight: 600;
    	color: #FFF;
    }
    
    .button:hover
    {
    }
    
    .button:active
    {
    }
    
    .button-big
    {
    	padding: 1.6em 4em;
    	font-size: 1.4em;
    	font-weight: 900;
    }
    
    /*********************************************************************************/
    /* Heading Titles                                                                */
    /*********************************************************************************/
    
    	.title
    {
    	margin-bottom: 3em;
    }
    
    .title h2
    {
    	font-weight: 400;
    	font-size: 2.8em;
    	color: #323232;
    }
    
    .title .byline
    {
    	letter-spacing: 0.15em;
    	text-transform: uppercase;
    	font-weight: 400;
    	font-size: 1.1em;
    	color: #6F6F6F;
    }
    
    /*********************************************************************************/
    /* Header                                                                        */
    /*********************************************************************************/
    	
    #header-wrapper
    {
    	background: #FFF;
    }
    
    #header
    {
    	position: relative;
    	height: 100px;
    }
    
    /*********************************************************************************/
    /* Logo                                                                          */
    /*********************************************************************************/
    
    {
    	position: absolute;
    	top: 2em;
    	left: 0;
    	width: 100%;
    }
    
    #logo h1
    {
    	display: inline-block;
    	font-size: 2.5em;
    	text-transform: uppercase;
    	font-weight: 700;
    	color: #2C383B;
    	padding-top: 0.5em;
    	padding-left: 0.5em;
    	padding-right: 0.5em;
    	border-right: 1px solid rgba(0,0,0,.3);
    }
    
    #logo span
    {
    	position: absolute;
    	top: 22px;
    	display: inline-block;
    	padding-left: 1.5em;
    	padding-top: 0.3em;
    	letter-spacing: 0.1em;
    	text-transform: uppercase;
    	font-size: 0.9em;
    	left: 100px;
    	width: 57px;
    	height: 56px;
    	color: #660000;
    }
    
    #logo a
    {
    	text-decoration: none;
    	color: #743D46;
    }
    
    /*********************************************************************************/
    /* Menu                                                                          */
    /*********************************************************************************/
    
    #menu
    {
    	position: absolute;
    	right: 20px;
    	top: 14px;
    }
    
    #menu ul
    {
    	display: inline-block;
    }
    
    #menu li
    {
    	display: block;
    	float: left;
    	text-align: center;
    	line-height: 60px;
    }
    
    #menu li a, #menu li span
    {
    	display: inline-block;
    	margin-left: 1px;
    	padding: 0em 1.5em;
    	letter-spacing: 0.1em;
    	text-decoration: none;
    	font-size: 1em;
    	text-transform: uppercase;
    	outline: 0;
    	color: #FFFFFF;
    	background: #743D46;
    }
    
    #menu li:hover a, #menu li.active a, #menu li.active span
    {
    }
    
    #menu .current_page_item a
    {
    	background: #383838;
    	color: #FFF;
    }
    
    
    
    /*********************************************************************************/
    /* Content                                                                       */
    /*********************************************************************************/
    
    #content
    {
    	padding: 0em 7em;
    }
    
    /*********************************************************************************/
    /* Sidebar                                                                       */
    /*********************************************************************************/
    
    	#sidebar
    {
    	float: right;
    	width: 100%;
    }
    
    #stwo-col
    {
    	margin-top: 2em;
    }
    
    #stwo-col h2
    {
    	display: block;
    	padding-bottom: 1.5em;
    	letter-spacing: 0.10em;
    	text-transform: uppercase;
    	font-size: 1.2em;
    	font-weight: 600;
    	color: #454445;
    }
    
    #stwo-col .sbox1
    {
    	float: left;
    	width: 210px;
    }
    
    #stwo-col .sbox2
    {
    	float: right;
    	width: 210px;
    }


    And here is my HTML

    Code:
    <div id="header-wrapper">
    	<div id="header" class="container">
    		<div id="logo">
    		  <h1><a href="index.php"> CCS </a></h1>
    			<span>Cumbria Cellar Services</a></span> </div>
                
                
    		<div id="menu">
    			<ul>
    				<li class="current_page_item"><a href="index.php" accesskey="1" title="">Homepage</a></li>
    				<li><a href="cellar.php" accesskey="2" title="">Cellar/bar</a></li>
    				<li><a href="sales.php" accesskey="4" title="">Sales/Hire</a></li>
                    <li><a href="contact.php" accesskey="3" title="">Contact</a></li>
    				
    				
    			</ul>
    		</div>
    	</div>
    Any help would be great right now.... Perhaps putting it in a seperate div box under the logo ? Doesnt have to be inline with the logo although that is preferred

  2. #2
    Join Date
    Mar 2014
    Posts
    3
    started using media queries ......

    is there a way to make the menu shrink so it fits in the page

  3. #3
    Join Date
    Mar 2014
    Posts
    3
    failing that center align the menu div within the media query ?

  4. #4
    Join Date
    Feb 2014
    Location
    Ahmadabad, Gujarat, India
    Posts
    101
    Hello Friend, As per your query i searched over internet and found this post, i am sharing the post with you, may be you get the help that you are looking for.

    See here...

    *** post edited by moderator - use links or short extracts. Please do not reproduce articles in full ***
    Last edited by jedaisoul; 03-04-2014 at 05:29 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.27167 seconds
  • Memory Usage 2,892KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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