navbar wont shrink when in dev tools with responsive design - media

im having trouble with media query's and responsive designs
I cant seem to get the bottom nav to shrink when page gets smaller it just goes off page what am i doing wrong can someone please help me correct my code
#import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght#500&display=swap');
*{ margin: 0;
padding: 0;
box-sizing: border-box;
list-style: none;
text-decoration: none;
font-family:'DM Sans', sans-serif;
;
}
.header-top{
width: 100%;
height: 65px;
background:#A4E0EB;
padding: 0 50px;
display: flex;
justify-content: right;
}
.header-top .header-top-container
{display: flex; align-items: center;
}
.header-top .header-top-container .header-top-quickSearch input[type="text"]
{border:1px solid#A4E0EB;
padding: 5px 10px;
outline: none;
border-radius: 4px;}
.header-top .header-top-container .header-top-quickSearch input[type="text"]:focus
{width: 250px}
.header-top .header-top-container ul{display: flex;
margin-right: 5rem;}
.header-top .header-top-container ul li{margin:0 12px;
font-size: 14px;
}
.header-top ul li a{color: #fff;}
.header-top ul li a:hover{color:#FFB5C3;}
/* header container */
.header-container { display: flex;
background-color:#f6f8f5;
font-family:'DM Sans', sans-serif;}
.header-container1{display: flex;
position: relative;}
img.header-logo{right: 60em; bottom:-5em;
position: absolute;}
/* header container end */
/* Links inside the navbar */
.header-container a {
float:left;
font-size: 14px;
color: #6F7378;
padding: 14px 16px;
text-decoration: none;
z-index: 5;}
/* The dropdown container */
.dropdown {
float: left;
overflow: hidden;
z-index: 5;}
/* Dropdown button */
.dropdown .dropbtn {
font-size: 14px;
border: none;
outline: none;
color: #6F7378;
padding: 14px 16px;
background-color: inherit;
font-family: inherit; /* Important for vertical align on mobile phones */
margin: 0; /* Important for vertical align on mobile phones */
z-index: 5;}
.dropdown-content-grid{display: grid;
grid-template-columns: repeat(4, max-content);}
.blank{text-decoration: none;
cursor:default;
pointer-events: none;
}
/* a tag & buttons underline */
*,
*:before
*:after {padding: 0;
margin: 0;
box-sizing: border-box;}
button{position: relative;
text-decoration: none;
font-family:'DM Sans', sans-serif;
color: #6F7378;
font-size: 1px;
letter-spacing: 0.5px;
padding:0 10px;}
button:after{content: "";
position: absolute;
background-color: #FFB5C3;
height: 3px;
width: 0%;
left: 0;
bottom: -0.4px;}
button:hover:after{width: 100%;}
.home{position: relative;
text-decoration: none;
font-family:'DM Sans', sans-serif;
color: #6F7378;
font-size: 16px;
letter-spacing: 0.5px;
padding:0 10px;}
.home:after{content: "";
position: absolute;
background-color: #FFB5C3;
height: 3px;
width: 0%;
left: 0;
bottom: -0.4px;}
.home:hover:after{width: 100%;}
.header-container > .home:focus, .home:hover {color: #FFB5C3;}
.dropdown > button:focus, button:hover {color: #FFB5C3;}
/* a tag & buttons underline end */
/* Add a red background color to navbar links on hover */
/* .navbar a.home:hover,.dropdown:hover .dropbtn {
background-color: #FFB5C3;
} */
/* Dropdown content (hidden by default) */
.dropdown-content {
display: none;
position: absolute;
background-color: white;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
border-radius: 10px;
z-index: 5;
}
.dropdown button:focus + .dropdown-content,
.dropdown-content:hover {
display: block;}
/* Links inside the dropdown */
.dropdown-content a {
float: none;
color: #6F7378;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
z-index: 5;
}
.navPages a:hover{ color: #FFB5C3;}
.navPages button:hover{color: #FFB5C3;}
/* Add a grey background color to dropdown links on hover */
/* .dropdown-content a:hover {
background-color:#FFB5C3;
} */
/* Show the dropdown menu on hover */
.dropdown .dropdown-content {
display: none;
z-index: 5;
}
.navPages{
display: flex;
justify-content: center;
align-items: center;
z-index: 5;}
.header-container{
display: flex;
justify-content: center;
align-items: center;
}
/* .toggle-button{position: absolute;
top: 0.75rem;
right: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 30px;
height: 20px;}
.toggle-button .bar{height: 3px;
width: 100%;
background-color: #FFB5C3;
border-radius: 10px;} */
.wholebodycontainer{margin-top: 3rem;}
h1{display: flex;
justify-content: center;
align-items: center;
margin-bottom: 3rem;
font-size:35px;
letter-spacing: 0.75rem;
color: #506671;}
/* Image Slider */
*{Margin:0;
padding: 0;
box-sizing: border-box;}
.swiper{width: 65%;
height: fit-content;
border-radius: 5px;}
.swiper-slide img {width: 100%;}
.swiper .swiper-button-prev, .swiper .swiper-button-next {color: #FFB5C3;}
.swiper .swiper-pagination-bullet-active{background: #FFB5C3;}
/* Image Slider End */
#media screen and (max-width:1340px) {}
^^^CSS^^^
<!DOCTYPE html>
<html lang="en-uk">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cake & a'Cuppa Website</title>
<link rel="stylesheet" href="Cake-and-Cuppa-Website-Up-To-Date-Style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper#8/swiper-bundle.min.css"/>
</head>
<body>
<div class="body-wrapper">
<header class="header" role="banner">
<div class="header-top">
<div class="header-top-container">
<div class="header-top-quickSearch">
<input type="text" placeholder="Search the store">
</div>
<ul class="header-top-menu">
<li class="header-top-menu-item">CONTACT US</li>
<li class="header-top-menu-item">DELIVERY SERVICE</li>
<li class="header-top-menu-item">TEL:01904 690283</li>
</ul>
</div>
</div>
<div class="header-container">
<header class="header">
<div class="navPages-container">
<div class="header-container1"><img class="header-logo"-image src="c:\Users\micha\Desktop\cake-svg.png" alt="" width="155px" height="155px"></div>
<nav class="navPages">
<a href="#" class="toggle-button">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</a>
<a class="home" href="#home">HOME</a>
<div class="dropdown">
<button class="dropbtn">CELEBRATION CAKES
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<div class="dropdown-content-grid">
BIRTHDAY CAKES
OCCASION CAKES
SEASONAL CAKES
TODDLER CAKES
CAKES FOR HIM
ANNIVERSARY CAKES
THANKSGIVING CAKES
NUMBER CAKES
CAKES FOR HER
WEDDING CAKES
CHRISTMAS
PRINCESS CaKES
TODDLER CAKES
CHRISTENING CAKES
BURNS NIGHT GIFTS
ROMANTIC CAKES
GIRLS BIRTHDAY CAKES
NEW BABY CAKES
VALENTINE'S DAY
<div></div>
BOYS BIRTHDAY CAKES
RETIREMENT CAKES
ST DAVID'S DAY CAKES
<div></div>
TEEN BIRTHDAY CAKES
GRADUATION CAKES
ST PATRICK'S DAY CAKES
<div></div>
NUMBER CAKES
RELIGIOUS CAKES
MOTHER'S DAY
<div></div>
CAKES WITH TOYS
GET WELL SOON CAKES
EASTER
<div></div>
ANIMAL CAKES
GOOD LUCK CAKES
ST GEORGE'S DAY CAKES
<div></div>
HANDBAG & SHOE CAKES
WELL DONE CAKES
EID CAKES
<div></div>
PRINCESS CAKES
<div></div>
FATHERS DAY CAKES
<div></div>
SUPERHERO CAKES
<div></div>
PRIDE DAY CAKES
<div></div>
SPORTING CAKES
<div></div>
HALLOWEEN CAKES
<div></div>
TECHNOLOGY CAKES
<div></div>
<div></div>
<div></div>
ROMANTIC CAKES
<div></div>
<div></div>
<div></div>
TWO~TIER CAKES
<div></div>
<div></div>
<div></div>
RUDE BIRTHDAY CAKES
</div>
</div>
</div>
<div class="dropdown">
<button class="dropbtn">GIFT CAKES
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
Link 1
Link 2
Link 3
</div>
</div>
<a class="home" href="#home">PHOTOCAKES</a>
<div class="dropdown">
<button class="dropbtn">CUPCAKES
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
Link 1
Link 2
Link 3
</div>
</div>
<a class="home" href="#home">CAKES IN-A-TIN</a>
<div class="dropdown">
<button class="dropbtn">CORPORATE CAKES
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
Link 1
Link 2
Link 3
</div>
</div>
</nav>
</div>
</div>
</header>
<div class="wholebodycontainer">
<h1>YORKSHIRES FAVOURITE CAKE STORE</h1>
<!-- image slider -->
<div id="container-body">
<div class="container">
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>
<div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>
<div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>
<div class="swiper-slide"><img src="c:\Users\micha\Desktop\New Professional\tets\Untitled-3.png" alt=""></div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/swiper#8/swiper-bundle.min.js"></script>
<script>
const swiper = new Swiper('.swiper', {
autoplay:{delay: 5000,
disableOnInteraction: false,},
loop: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
</script>
</div>
<!-- image end -->
</div>
</div>
</body>
</html>
^^^HTML^^^
I cant seem to get the bottom nav to shrink when page gets smaller it just goes off page what am i doing wrong can someone please help me correct my code

Related

Angular - Displaying a font awesome spinner center not working

I am trying to display a font awesome spinner horizontally center. With the below CSS it is displaying only on the left hand side. Can anyone help me how to fix this?
loading.component.html
<div class="container">
<div class="loading-overlay">
<i class="fa fa-spinner fa-spin fa-4x"></i>
</div>
</div>
loading.component.scss
.loading-overlay {
align-items: center;
display: flex;
justify-content: center;
position: absolute;
z-index: 2;
}
.container {
width: 100%;
}
Thanks
Remove the position: absolute; and you are fine.
.loading-overlay {
align-items: center;
display: flex;
justify-content: center;
z-index: 2;
}
.container {
width: 100%;
}
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<div class="container">
<div class="loading-overlay">
<i class="fa fa-spinner fa-spin fa-4x"></i>
</div>
</div>

index page not displaying in springboot thymleaf layout dialect

I posted a question few days ago about jquery code not working in a thymeleaf template as expected. I am able to do it without using jquery but it has generated another problem and I need help. I cant display index.html and below is code sample
stylecss file
*{
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
box-sizing: border-box;
font-family: 'Roboto',sans-serif;;
}
.wrapper .header{
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
background: #23242b;
color: #fff;
}
.wrapper .u-name{
font-size: 20px;
padding-left: 17px;
}
.wrapper .u-name span{
color: #127b8e;
font-weight:bold;
}
.wrapper .header i{
font-size: 30px;
cursor: pointer;
color: #fff;
}
.wrapper .header i:hover{
color: #127b83;
}
/* .wrapper .user-p{
text-align: center;
padding-left: 10px;
padding-top: 25px;
}
.wrapper .user-p img{
width: 100px;
border-radius: 50%;
} */
.wrapper .user-p h4{
color: #ccc;
padding: 5px 0;
}
.wrapper .side-bar{
width: 300px;
background: #262931;
min-height: 100vh;
transition: 500ms width;
}
.wrapper .sidebarmenu{
display: flex;
position:absolute;
}
.wrapper .section-1{
width: 100%;
background: url("./img/bg.jpg");
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.wrapper .side-bar ul{
margin-top: 20px;
list-style: none;
}
.wrapper .side-bar ul li{
font-size: 18px;
padding: 15px 0px;
padding-left: 20px;
transition: 500ms background;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.wrapper .side-bar ul li:hover{
background: #127b8e;
}
.wrapper .side-bar ul li a{
text-decoration: none;
color: #eee;
cursor: pointer;
letter-spacing: 1px;
}
part of the css code
.wrapper .side-bar ul li a i{
display: inline-block;
padding-right: 10px;
font-size: 23px;
}
.wrapper #navbtn{
display: inline-block;
margin-left: 70px;
font-size: 20px;
transition: 500ms color;
}
.wrapper #checkbox{
display: none;
}
/*hides and show the sidebar */
.wrapper #checkbox:checked ~ .sidebarmenu .side-bar{
width: 60px;
}
.wrapper #checkbox:checked ~ .sidebarmenu .side-bar .user-p{
visibility: hidden;
}
.wrapper #checkbox:checked ~ .sidebarmenu .side-bar a span{
display: none;
}
.wrapper #checkbox:checked ~ .sidebarmenu .side-bar ul li label{
display: none;
}
.wrapper #A{
display: none;
}
.wrapper #A:checked ~ ul{
display: block;
}
.wrapper .side-bar ul li i{
padding-right: 10px;
font-size: 23px;
color: #eee;
}
.wrapper .side-bar ul li label{
color: #eee;
}
.wrapper .side-bar ul li label i{
float: right;
padding-top: 2px;
}
.wrapper .side-bar ul li ul li{
line-height: 5px;
font-size: 14px;
padding-left: 50px;
}
.wrapper .side-bar ul li ul li:hover{
padding-left: 52px;
}
.wrapper .side-bar ul li ul{
display: none;
}
header html file contains the whole menu navigation bar
<header>
<div class="wrapper">
<input type="checkbox" id="checkbox">
<header class="header">
<h2 class="u-name">ECC <span>Soft</span>
<label for="checkbox">
<i id="navbtn" class="fa fa-bars"></i>
</label>
</h2>
<i class="fas fa-user" aria-hidden="true" ></i>
</header>
<div class="sidebarmenu">
<nav class="side-bar">
<!-- <div class="user-p">
<img src="img/sprofile.jpg" alt="">
<h4>Peter</h4>
</div> -->
<ul>
<li>
<a href="#">
<i class="fa fa-desktop" aria-hidden="true"></i>
<span>Dashboard</span>
</a>
</li>
<li>
<input type="checkbox" id="A">
<i class="far fa-envelope" aria-hidden="true"></i>
<label for="A">
<span>Message</span>
<i class="fas fa-caret-down"></i>
</label>
<ul>
<li>UI/UX Designer </li>
<li>UI Designer </li>
<li>UX Designer </li>
</ul>
</li>
<li>
<a href="#">
<i class="far fa-comment" aria-hidden="true"></i>
<span>Comments</span>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-info-circle" aria-hidden="true"></i>
<span>About</span>
</a>
</li>
<li>
<a href="#">
<i class="fas fa-cog" aria-hidden="true"></i>
<span>Settings</span>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-power-off" aria-hidden="true"></i>
<span>Logout</span>
</a>
</li>
</ul>
</nav>
</div>
main layout file
<!DOCTYPE html>
<html xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
<!-- webjars and static resources referencing -->
<link rel="stylesheet" href="../../static/css/style.css"
th:href="#{css/style.css}" />
<link th:rel="stylesheet" th:href="#{/webjars/font-awesome/5.15.2/css/all.css}">
<link th:rel="stylesheet" th:href="#{/webjars/bootstrap/4.5.0/css/bootstrap.min.css}">
<script type="text/javascript" th:src="#{/webjars/jquery/3.5.1/jquery.js}"></script>
<script type="text/javascript" th:src="#{/webjars/bootstrap/4.5.0/js/bootstrap.js}"></script>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
body of main layout file
<body>
<div th:replace="fragments/header::header"></div>
<div layout:fragment="content">
</div>
<div th:replace="fragments/footer::footer"></div>
</body>
</html>
index html file. This is the file am battling with.
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{fragments/main_layout}">
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<div layout:fragment="content" class="container">
<div class="card">
<p>Thank you for using ecc soft</p>
</div>
</div>
</body>
</html>

What is the trick getting floats to work in FireFox other than (moz-inline-stack and float first)

I can't get things to float correctly in firefox.
If you open it in FireFox you will notice its all on top of itself.
But it works fine in IE, and Chrome.
I may be doing it wrong, but you can see I have tried moz-inline-stack, and putting the float elements first.
Here is a Fiddle link.
https://jsfiddle.net/james_freeman/zWxbL/10/embedded/result/
<div style="background-color:white;">
<div id="psNav" style="color: #0475b8;">
<div class="psNav-right dropdown">
<a href="#" id="navbarMenu" class="dropdown-toggle psNav-link" data-toggle="dropdown"
role="button" aria-haspopup="true" aria-expanded="false">MENU <i class="fa fa-bars"></i>
</a>
<ul class="dropdown-menu" style="padding:0;">
<li>Conversations
</li>
<li>Directory
</li>
</ul>
</div>
<div class="psNav-right"> <a class="psNav-link" id="logoutLink" href="">Logout</a>
</div>
<div class="psNav-right"> <a class="psNav-link" id="displayName">Doe, John</a>
</div>
<div class="psNav-left"> <a class="psNav-link" href="">
<img id="navBarLogo" src="" alt="Company Logo">
</a>
</div>
<div class="psNav-center"> <a class="psNav-link" id="navbarPageTitle">somewhere</a>
</div>
</div>
</div>
#psNav {
display: inline-block;
display: -moz-inline-stack;
vertical-align: top;
width: 100%;
text-align: center;
height: 90px;
clear: both;
font-family:'Source Sans Pro', sans-serif;
font-weight: 600;
font-size: 1.5em;
border-bottom-color: #e7e7e7;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-style: solid;
border-bottom-width: 1px;
*display: inline;
}
.psNav-center {
display: inline-block;
display: -moz-inline-stack;
margin: 0 auto;
height: inherit;
}
.psNav-left {
float: left;
height: inherit;
padding-left: 10px;
}
.psNav-right {
float: right;
height: inherit;
padding: 0 20px 0 20px;
}
.psNav-link {
vertical-align: middle;
line-height: 85px;
text-decoration: none !important;
}
.psNav-link:visited {
color: #0475b8;
}
.psNav-link:hover {
color: #0475b8;
}
.psNav-link:active {
color: #0475b8;
}
#displayName {
cursor: default;
font-weight: 300;
}
#navbarPageTitle {
cursor: default;
}
#navBarLogo {
height: 55px;
}
I'm not sure what you thought -moz-inline-stack was going to achieve, but it is the cause of your broken layout.
Removing it from the fiddle results in the layout returning to exactly what how it looks in the other browsers.

please look at my code .... show ul after < li>< a >click event -please help -what am I doing wrong

Can someone please take a look at my code and see what I am doing wrong...
I'm a beginner jquery person and
I tried reading all the forum post and implementing them my self and I still get errors... this is taking me two days and I'm about to kill my laptop
thanks so much in advance,
~ grace
$(document).ready(function() {
//parent. on click anchor
$('.tab').on('click', '.clk', function(event) {
event.stopPropagation();
//Find the child by traversing
$(this).closest('.clk').find('.reveal').slideToggle();
//Show the child
});
});
body {
width: 350px;
margin: 0 auto;
}
h1 {
font-size: 1em;
color: #FF7F50;
}
.tbCont {
/* width: 100%;float:left; this works too*/
overflow: hidden;
border: 1px solid red;
text-align: center;
}
ul {
padding-left: 0;
}
li {
list-style: none;
display: inline-block;
zoom: 1;
width: 90%;
}
.cHolder {
display: none;
}
/*hides related content*/
.reveal {
width: 100%;
background-color: pink;
display: inline-block;
zoom: 1;
border-bottom: 2px solid #aaa;
}
.reveal span {
float: left;
width: 40%;
margin: 10px;
}
.reveal img {
float: right;
width: 40%;
height: 40%;
margin: 10px;
background-color: #fff;
}
a {
width: 100%;
text-align: left;
border-style: none;
border-bottom: 2px solid #aaa;
background-color: white;
font-size: 2em;
color: #aaa;
display: block;
text-decoration: none;
}
a:hover {
color: orange;
border-bottom: 2px solid orange;
}
a:active {
color: #7FFFD4;
border-bottom: 2px solid #7FFFD4;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>HTML5, CSS3 and JavaScript demo</title>
</head>
<body>
<div class="tbCont">
<h1>Title</h1>
<ul class="tab">
<li>
Tab Title
<ul class="cHolder">
<li class="reveal">
<span>copy here Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span>
<img/>
</li>
</ul>
</li>
<li>
Tab Title
<ul class="cHolder">
<li class="reveal">
<span>copy here.</span>
<img/>
</li>
</ul>
</li>
<li>
Tab Title
<ul class="cHolder">
<li class="reveal">
<span>copy here</span>
<img/>
</li>
</ul>
</li>
<li>
Tab Title
<ul class="cHolder">
<li class="reveal">
<span>copy here</span>
<img/>
</li>
</ul>
</li>
<li>
Tab Title
<ul class="cHolder">
<li class="reveal">
<span>copy here</span>
<img/>
</li>
</ul>
</li>
</ul>
</div>
<!-- End your code here -->
</body>
</html>
I tried to correct in this fiddle, look if this helps :
http://jsfiddle.net/h9u2g6bu/
Notice display:none should be applied to what you want to toggle, i.e. .cHolder .reveal instead of .cHolder :
.cHolder .reveal {
display: none;
}

Center a horizontal menu with an image in the middle

I am trying to center my menu bar with my logo in the middle. right now everything is floating but it wont center to the middle of the page. Also when it is centered i need the background image that i placed on the left and right side of the logo to resize according to the width of the page - here is a link to how it looks live - Menu Test
on my website i still have the original menu I created where I placed the logo behind the menu bar and set a longer width so that the background would stretch but it won't auto adjust because of it.... Current Menu
I know my code is not perfect so please just bear with me
html
<div id="access">
<div class="menu-container">
<ul id="menu-left" class="menu">
<li class="menu-item">
Home
</li>
<li class="menu-item">
About
</li>
<li class="menu-item">
Services
</li>
</ul><!--END of menu-navigation-left-->
<ul id="menu-center">
<li class="menu-item">
<img src="images/logo.png" alt="Menu">
</li>
</ul> <!--close div center-->
<ul id="menu-right" class="menu">
<li class="menu-item">
Blog
</li>
<li class="menu-item">
Contact
</li>
<li class="menu-item">
Portfolio
</li>
</ul><!--END of menu-navigation-left-->
</div><!--END of menu-navigation-container-->
</div><!--END of access-->
css
header {
position:fixed;
}
#access {
width:100%;
overflow:hidden;
left:50%;
}
#access ul.menu{
display: inline-block;
}
#access ul {
}
#access ul a{
display:block;
}
#access ul#menu-left {
height:120px;
background-image:url(../images/menu.png);
}
#access ul#menu-center {
height:120px;
}
#access ul#menu-right {
height:120px;
background-image:url(../images/menu.png);
}
ul, li {
margin:0px;
padding:0px;
list-style:none;
float:left;
display:block;
}
#access a {
display: block;
font-size: 16px;
line-height: 15px;
padding: 13px 10px 12px 10px;
text-transform: titlecase;
text-decoration: none;
font:"Mc1regular", Arial, sans-serif;
}
a:link{
color:#fff;
}
a:visited{
color:#fff;
}
This should sort out your alignment issues.. just replace with your specs. I would just have one menu and centre it.
PLEASE NOTE, YOUR HEADER POSITION IS FIXED> position:relative would be better..
div.container {
width: 1160px;
margin: auto;
margin-top: -1;
margin-bottom: -1;
padding: 0;
padding-top: 10px;
background-color: #2d2d2d;
}
div.box {
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
padding: 10px;
padding-bottom: 20px;
border: solid 1px #A29060;
background-color: #000;
overflow: hidden;
width: 940px;
}
div.top {
text-align: left;
margin: auto;
margin-left: 20px;
padding-top: 12px;
padding-bottom: 11px;
font-weight: normal;
font-size: 14px;
overflow: hidden;
width: 980px;
text-transform: uppercase;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
float: left;
padding-right: 20px;
}
a {
display: block;
color: #a29060;
text-decoration: none;
}
<div class="container">
<div class="box">
<div class="top">
<ul >
<li>Contact</li>
<li>Policies</li>
<li><img class="logo" src="images/logo.jpg" alt="logo" /></li>
<li>Policies</li>
</ul>
</div>
see this fiddle
http://jsfiddle.net/yvytty/RJ4Yp/
You can also have a look at this (it's not finished) but it has the basic layout sorted, menus etc
https://www.yve3.com/index.html
This is also a link to a great forum, HTML.net. They give you good opinions of your site and have a lot of expertise (just like here)
http://www.html.net/forums/

Resources