Solved

How to prevent 2 division panels from overlapping.

Posted on 2014-11-20
6
68 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
Comment Utility
Or am i doing it wrong I just need a top bar devided in 2.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 1

Author Comment

by:peterkiers
Comment Utility
someone!
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
Comment Utility
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
Comment Utility
Thank voor the information. Peter
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

744 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

14 Experts available now in Live!

Get 1:1 Help Now