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
    83
    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 04: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



Recent Articles