overlap

How would you make two <div>s overlap?

I need two divs to look a bit like this: | | ---| LOGO |------------------------ | |_______________| LINKS | | CONTENT | What's the neatest/most elegant way of making them overlap neatly? The logo will have a fixed height and width and will be touching th...

Determine if two rectangles overlap each other?

Hi folks, I am trying to write a C++ program that takes the following inputs from the user to construct rectangles (between 2 and 5): height, width, x-pos, y-pos. All of these rectangles will exist parallel to the x and the y axis, that is all of their edges will have slopes of 0 or infinity. I've tried to implement what is mentioned i...

Overlapping matches in Regex

Hi, I can't seem to find an answer to this problem, and I'm wondering if one exists. Simplified example: Consider a string "nnnn", where I want to find all matches of "nn" - but also those that overlap with each other. So the regex would provide the following 3 matches: nnnn nnnn nnnn I realize this is not exactly what regexes are ...

How do I compare overlapping values within a row?

I seem to have a problem with this SQL query: SELECT * FROM appts WHERE timeStart >='$timeStart' AND timeEnd <='$timeEnd' AND dayappt='$boatdate' The time is formatted as military time. The logistics is that a boat rental can be reserved at 7am til 1pm or 9am til 1pm or 9am til 5pm. If there is an appt within that range, it should ...

Subreport overlapping in SSRS

Hi, I have 3 subreports in my SSRS report. If the first subreport is not having result the place is blank in html rendering and excel rendering , where as when exporting to pdf , the second subreport(the bottom one) took the place of the first one(top one)and the data is overlapped. How do I avoid this overlapping in PDF version. Yo...

Building a "complete" number range w/out overlaps

Hey, I need to build a full "number range" set given a series of numbers. I start with a list such as : ID START * 0 a 4 b 70 c 700 d 701 e 85 where "def" is the default range & should "fill-in" the gaps "overlaps" are value (70, 700, 701) in starting data And need the following result: ID ST...

Need generic div css that does not overlap (like a table)

I'm trying to use divs instead of tables to style boxes around my content. The content can be any size and needs to allow the browser to be resized to any degree. Need the background color and border to contain the content. This works fine with tables. How do I get a div to work the same way? Note: I added "_"s because my non-breakn...

Flash playing SWF, video is normal sound is sped up half way on 4th scene

when i play each individule scene as an SWF all the sounds are synced correctly, but it when i play the entire animation that half way through on scene 4 the sounds play too early and are also sped up about 2X regular speed. how can i fix this? ...

Arrange labels for objects in 2D space without overlap

I need to attach text labels to objects that are spread randomly across the screen and keep moving. The default and ideal position for a label is on the right side of the object it refers to. I need a way to dynamically rearrange (or possibly merge) the labels so that they never overlap each other or other objects. They should still be...

Calculating the area(s) of a rectangle that aren't being overlapped

I've got two rectangles represented by structures that contain the x1, y1, x2, y2 coordinates. One rectangle can be considered the parent, another the child. I already know how to detect if the child rectangle is within the parent rectangle; what I'm trying to figure out now is the simplest, fastest way to determine the rectangular area...

Transparent iframe ontop of pdf in iframe

I have found the technique of putting iframes on top of an iframes to get round the z-index problem browsers have with iframes. The problem I am facing now is I need the the iframe that overlaps a PDF (loaded into an iframe) to be transparent. Is this possible?? The reason I want to do this is so I can have a transparent png over the t...

Overlapping Columns with IE7

I'm really having a hard time with IE7 as it is making part of my page fluid where it should be fixed. Works fine in every other browser but IE. Here is the link... . If you shrink the window you will see how the page gets all skewed. Here is the css used to control the 2 columns, left_body being the left content and right_body the...

intersect time intervals and generating new ones depending on intersect-results

hi there, i've got two tables with time intervals and some settings for each interval, eg 2009-01-01T06:00:00 2009-01-04T14:00:00 1 0 2009-01-04T22:00:00 2009-01-07T06:00:00 2 1 2009-01-07T06:00:00 2009-01-09T13:00:00 2 2 2009-01-09T22:00:00 2009-01-14T06:00:00 3 0 and 2009-01-04T16:00:00 2009-01-05T01:00:00 2 0 2009...

CSS Float border overlap issues

I'm trying to float a menu to the left of the page, and when it gets large enough to reach the content below, Firefox bumps the content over exactly as it should... except for the border. Here is a screenshot with a few items: And another with several items "Box 4" gets moved over as expected, but its border stays at the left. O.o...

Positioning Divs semi-randomly, without overlaps

I have a page which has DIVs which contain short phrases (one-two words) of varying font sizes, which need to be positioned left-to-right according to a numerical parameter, and vertically so as not to overlap. It's like a tag cloud, but there's information contained in the y-axis as well ("coolness" in this case - http://cool-wall.apps...

How to calculate the area of multiple overlapping right-angled polygons?

I am looking for a way to calculate the common areas covered by multiple overlapping polygons. The polygons are all right-angled, if that helps makes things easier. So for example: BBBBB BBBBB AAA---BB AAA---BB AAAAAA AA--AA AA--AA LL LL LLLLLL LLLLLL I would like to find the common area covered by A, B and L, which wo...

Safari issues with javascript + css

I have some strange behavior going on with safari, im using the jQuery.GridLayout plugin and css for styling. Just for some context, this website layout is a simple header followed by the content which are a collection of blocks (each block is a div) positioned by the javascript and rearranged every time the window is re-sized. When I ...

How do I partition datetime intervals which overlap (Org Mode clocked time)?

I have related tasks from two Org files/subtrees where some of the clocked time overlaps. These are a manual worklog and a generated git commit log, see below. One subtree's CLOCK: entries needs to be adjusted to remove overlapping time. The other subtree is considered complete, and it's CLOCK: entries should not be adjusted. EDIT: Thi...

How to avoid overlapping polygon

I created a program to draw many polygons automatically everytimes user presses a button. The points of the polygon are generated automatically using the random function. The problem is that, since the points of the polygon were randomly generated, some of the polygon are overlap with other polygon. How can I avoid this, so that every po...

Finding the overlapping area of two rectangles (in C#)

Edit: Simple code I used to solve the problem in case anyone is interested (thanks to Fredrik): int windowOverlap(Rectangle rect1, Rectangle rect2) { if (rect1.IntersectsWith(rect2)) { Rectangle overlap = Rectangle.Intersect(rect1, rect2); if (overlap.IsEmpty) return overl...