Jump to content
Killersites Forums

CSS position problems

Recommended Posts

In the code below, I don't know/understand why the <div> that has the id='slideShowBoxControlls' is not positioned under the <div> that has the id='slideShowBox', since they have the same basic CSS.

Can someone explain this to me?


<!DOCTYPE html>
   	<title>Practice jQuery slider and gallery</title>
       	html, body{
           	width: 100%;
           	height: 100%;
           	margin: 0 auto;
           	font-family: 'PT Sans Narrow', Arial, sans-serif;
           	background-color: #DEDEDE;
           	color: red;

           	margin: 0 auto;
           	width: 860px;
           	height: 95px;
           	background-color: #FAF6FA;
           	background: #ffffff;

           	position: absolute;
           	top: 0px;
           	left: 80px;
           	width: 885px;
           	height: 970px;
           	background-color: #EFEFEF;
           	border-color: silver;

           	position: relative;
           	width: 640px;
           	height: 500px;
           	margin: 150px auto 0;
           	background-color: #F5F5F5;
           	border:1px solid #FFFFFF;

           	-moz-box-shadow:0 0 22px #111;
           	-webkit-box-shadow:0 0 22px #111;
           	box-shadow:0 0 22px #111;
           	position: relative;
           	width: 640px;
           	height: 34px;
           	margin: auto 2px auto;
           	border: 1px solid red;

           	background: url('cssimages/arrowLeft.png') no-repeat;
           	width: 32px;
           	height: 32px;
           	border: 1px solid green;
           	display: inline-block;
           	float: left;

           	background: url('cssimages/arrowRight.png') no-repeat;
           	width: 32px;
           	height: 32px;
           	border: 1px solid green;
           	display: inline-block;
           	float: right;

           	font: 30px "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
           	text-align: center;
           	padding-top: 10px;
   	<div id="container">
       	<div id="header">
           	<h1>Practice jQuery Slider and Gallery</h1>
       	<div id="slideShowBox">

       	<div id="slideShowBoxControlls">
           	<div id="arrowLeft"></div>
           	<div id="arrowRight"></div>

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...