I have a webpage which contains a header at the top.
Beneath to which is another div that i want to position at the center of the screen with width 960px
but the second div
is displaying to the far right.
Also there are dropdown menu in header menu,that too is not click-able.
Here is the sample HTML..
<div class="header-wrapper">
//Mark up for header with drop-down.
</div>
//Second Div ..
<div id="slideshow-carousel" class="center">
</div>
CSS..
.header-wrapper {
background: url("../img/new_images/bg.png") repeat-x scroll 0 0 rgba(0, 0, 0, 0);
z-index: 60001;
width: 100%;
height: 77px;
margin: 0 auto;
}
.center {
margin-left:auto;
margin-right:auto;
width:960px;;
}
Full markup for second DIV
<div id="slideshow-carousel" class="center">
<ul id="carousel" class="jcarousel jcarousel-skin-tango">
<li><a href="#" rel="p1"><img src="img/new_images/.jpg" width="960" height="583" alt="#"/></a></li>
<li><a href="#" rel="p2"><img src="img/new_images/.jpg" width="960" height="583" alt="#"/></a></li>
<li><a href="#" rel="p3"><img src="img/new_images/.jpg" width="960" height="583" alt="#"/></a></li>
<li><a href="#" rel="p4"><img src="img/new_images/.jpg" width="960" height="583" alt="#"/></a></li>
<li><a href="#" rel="p5"><img src="img/new_images/" width="960" height="583" alt="#"/></a></li>
<li><a href="#" rel="p6"><img src="img/new_images/web.jpg" width="960" height="583" alt="#"/></a></li>
<li><a href="#" rel="p7"><img src="img/new_images/.jpg" width="960" height="583" alt="#"/></a></li>
</ul>
</div>
And here is the complete CSS
.center
{
margin-left:auto;
margin-right:auto;
width:960px;
height: 565px;
}
#slideshow-carousel {
width:960px;
position:relative
}
#slideshow-carousel ul {
margin:0;
padding:0;
list-style:none;
}
#slideshow-carousel li {
background:#fff;
height:583px;
position:relative
}
#slideshow-carousel li .arrow {
left:3px;
top:28px;
position:absolute;
width:20px;
height:40px;
background:url(images/arrow_white.png) no-repeat 0 0;
display:block;
}
#slideshow-carousel li a {
background:#000;
display:block;
width:960px;
height:583px;
}
#slideshow-carousel .active {
filter:alpha(opacity=100);
-moz-opacity:1.0;
-khtml-opacity: 1.0;
opacity: 1.0;
}
#slideshow-carousel .faded {
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
And