Solved

How to prevent 2 division panels from overlapping.

Posted on 2014-11-20
6
72 Views
Last Modified: 2014-11-20
Hi,

I would like to draw a bar on my website. I use divisions. But my bar has to be split in 2. So I geuss I need to division-panels.
One alignted on the right with the size 400. And the left division panel has the width 100%. But the left panel is overlapsing the right panel. How can I prevent this? Greetings, Peter Kiers
0
Comment
Question by:peterkiers
  • 4
  • 2
6 Comments
 
LVL 1

Author Comment

by:peterkiers
ID: 40455351
Or am i doing it wrong I just need a top bar devided in 2.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40455495
Without a link to the page or the rendered code I can not even guess what is wrong other then the general comment that the dimensions or positioning must be wrong.

Cd&
0
 
LVL 1

Author Comment

by:peterkiers
ID: 40455507
Oke sorry here it comes.:

#page {
	position:absolute;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	z-index:1;
}
#imagearea {
	position:absolute;
	right:0px;
	top:0px;
	width:400px;
	height:100px;
	z-index:2;
	background-image: url(picts/home.jpg);
	background-color: #2555A2;
	border-left: #173769;
}
#logoarea {
	position:absolute;
	left:0px;
	top:0px;
	width:100%;
	height:100px;
	z-index:2;
	background-color: #2555A2;
}
</style>
</head>

<body>
<div id="page"></div>
<div id="imagearea"></div>
<div id="logoarea">
  <script type="text/javascript" src="java/header.js"></script>
</div>
</body>
</html>

Open in new window


Peter
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:peterkiers
ID: 40455673
someone!
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40456006
They overlap because the CSS declares the overlap.  There is no positionin attribute on the body so they default to top:0;left:0;

Two of them have the same z-index so the overlap based on listing order.  The CSS does not make any sense for the structure and what you say you are trying to do.

What is it you think it should look like?

Cd&
0
 
LVL 1

Author Comment

by:peterkiers
ID: 40456139
Thank voor the information. Peter
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
spacing 5 56
jQuery CSS Scroll Issue 3 71
Remove lines by logo 2 21
css img-response wont work properly 7 10
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now