Jump to content

More css related problems


dmccabe

Recommended Posts

Ok so I have a header div with 4 divs inside it

 

LOGO

HEADER MENU LEFT - HEADER MENU - HEADER MENU RIGHT

 

which is how it should be laid out however it coming out like this:

 

 

LOGO - HEADER MENU LEFT - HEADER MENU - HEADER MENU RIGHT

 

all in one row:

 

html

<div id="header">
	<div id="logo">

	</div>
	<div id="headermenu_left">
	</div>
	<div id="headermenu">
	<ul>
		<li><a href="<?php $rootdir?>callcentre/" title="Call Centre Dept">Call Centre</a></li>
		<li><a href="#">Menu item 2</a></li>
		<li><a href="#">Menu item 2</a></li>
		<li><a href="#">Menu item 2</a></li>
	</ul>
	</div>
	<div id="headermenu_right">
	</div>
</div>

 

css

#header {
width: 100%;
height: 150px;
clear: both;
background: #695eaa;
}

#logo {
height: 101px;
width: 200px;
float: left;
clear: both;
background: url('img/logo.png');
}
#headermenu_left {
height: 49px;
width: 22px;
margin: 0;
padding: 0;
background: #9188c1 url('img/hdrmenu_left.png') no-repeat;
float: left;
}

#headermenu_right {
height: 49px;
width: 22px;
margin: 0;
padding: 0;
background: #9188c1 url('img/hdrmenu_right.png') no-repeat;
float: right;
}
#headermenu {
height: 49px;
width: 724px;
float: left;
background: #9188c1 url('img/hdrmenu_middle.png') repeat-x;
line-height: 49px;
}

 

So why is the header menu stuff up next to the logo instead of underneath it?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.