overflow

<div> overflow:auto does not show scrollbar until resize

I have a element on my form that looks like this: <div style="overflow-y:auto;overflow-x:hidden;height:100%;width:100%"> In IE7 when the page first renders, there are no scrollbars. However, if I resize the page (even just 1 pixel) the scroll bars appear properly. Is there something I can do so that the scrollbars show properly whe...

overflow:hidden not working for li elements inside ul

I'm trying to create a carousel from ul object where the li elements are blocks and ul is the carousel container. I've tried two approaches but neather seems to work, the overflow property is not functioning as I want it to. Approach 1: <ul style="overflow:hidden; width:200px; height:120px; display:block;"> <li style="float...

CSS dropdown-menu positioning inside a wrapper with hidden overflow

I know, a vaque title but it's hard to describe what I want in one sentence. My problem is as follows, I have a template with several dropdown menus activated by jQuery. The dropdown lists appear as second level navigational items within a the first-level list, as follows: <ul class="tools"> <li class="dropdown"> <a href="#">Tool...

CSS - Only Horizontal Overflow?

Is it somehow possible to achieve only horizontal overflow in CSS 2.1? overflow: auto; Will cause a block element to have both horizontal and vertical scrollbars, I want a block element (let's say ) which will display only horizontal scrollbars. How to do that? ...

writing image to directory fail

Hi, Some overflow runtime error happens when my C++ program is trying to write some .png images into a directory. The directory where the images are written into is given as a command line argument. The program is compiled with gcc -ggdb3 -O3. It is strange that the error disappears if I change the directory to another one when rerun...

Is there a programmable way to dertermine if a <div> is overflow

<div id="container"> some content </div> Say the container div is resizable, while resizing how do I know if it's already overflowed( inner content width < container width or inner content height < container height )? ...

css - Displaying images with horizontal scroll bar

Hi, I'm trying to display a number of images horizontally inside of a fixed-width div. I would like to use a horizontal scroll bar to display the images which do not fit inside the div. However, the images are displaying vertically, rather than horizontally. Is there a way to force them to display side-by-side? div#event { width: 15...

How to prevent SlideToggle function queue?

Case: Jquery code manage a sliding EM tag (with slideToggle function) for its appearing on hover. Problem: The slideToggle sometimes queue the hover state. I referred to this article: http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup I tried to insert stop() function, but this not affect slideToggle(); But...

Opera Scrolls Page to Invisible Elements

I'm working on a simple game engine in Javascript (crazy, I know.) Screenshot from Opera: http://img406.imageshack.us/img406/5818/gamek.jpg Although it looks like a tile engine, it's actually object-based; each row or column of grey blocks is a single <div>, positioned relative to the viewing area (box with red border). The viewing area ...

C : erroneous output for "(long long int) = (long long int) * (double)"?

long long int A = 3289168178315264; long long int B = 1470960727228416; double D = sqrt(5); long long int out = A + B*D; printf("%lld",out); This gives result : -2147483648 I am not able to figure out why (it should be a positive result). Can somebody help? ...

Overflow in ASP Classic

I was wondering if someone could help me, as I have gone blind to what I believe is a simple cause to a simple error. I have this code: doRound1(x1) denom1 = 5 y1 = denom1 - x1 mod denom1 if y1 <> denom1 then x1= x1+y1 end if doRound1=x1 End function 'theCalc = 20488888888.684 theCalc = cDbl(11111111111) * 1.844 ...

How to detect an overflow in C++ ?

Hi, I just wonder if there is some convenient way to detect if overflow happens to any variable of any default data type used in a C++ program during runtime? By convenient, I mean no need to write code to follow each variable if it is in the range of its data type every time its value changes. Or if it is impossible to achieve this, h...

Why is the size of my HeapOverflow program 5MB ?

Hi ! So I was asking myself what would happen if I tried to do a heap overflow on Windows XP, and I was surprise to see that, once the program "ate" all the RAM (this happens instantly, by the way), the size of the process in the task manager goes down to 5MB and doesn't move afterwards. The computer memory usage is still growing, howev...

Handling overflow in tables

Hello once again elite coders of stackOverflow. I have another curiously simple yet seemingly hard to answer question. I'm just full of these it seems. If I have a table like this very very simple example: table { table-layout:fixed; width:300px; } .td1 { width:100px; } .td2 { width:200px; } and in one of my .td2 con...

Very Tricky CSS Scrolling Question

Hi. I am not sure how to achieve a certain effect in CSS. I have the following HTML: <div id="container" name="container"> <div id="scroll" name="scroll"></div> </div> The scroller loads with one image inside the scroller which has a width: 715px; [ [1] ] When the user clicks on that image, a second image is dynamica...

Need help getting DIV inside DIV to stretch to width of contents in Firefox

I am using a layout similar to the one from Dynamic Drive here: http://www.dynamicdrive.com/style/layouts/item/css-right-frame-layout/ The main content area (white) has overflow set to auto. I have given the innerTube inside this main content area a border. However if the contents within this innerTube are greater than the width of the ...

How to know when an ItemsControl has overflowed its ScrollViewer?

How would one swap a template by using a Trigger when the items within an ItemsControl overflow its container? In my current implementation I would like to show a more brief form of template based on whether the current state of the ItemsControl are such that the content would cause a ScrollViwer's scroll bars to appear if the scroll ba...

Allow SVG graphics to overflow outside the containing svg element

Hi, I'm using the Raphaël—JavaScript Library to create some pie chart graphics, but I want to set the overflow of the containing SVG element to visible, to allow the graphics inside to display outside of their container. The way you would with normal dom elements (overflow: visible;) does not seem to work for svg containers. Does anyone...

creating a menu with CSS and overflow: auto

The main structure of the page is like this: <html> <body> <div id="Menu"> <h1>Menu</h1> <ul id="MenuList><!-- some LI elements --></ul> <h1>Submenu 1</h1> <ul id="Submenu1List"><!-- many LI elements --></ul> <h1>Submenu 2</h1> <ul id="Submenu2List"><!--...

Issue with window.showModalDialog and overflow:auto in IE7

Here's the issue. I open up a popup using window.showModalDialog in IE7. The popup is a page with a and some filter dropdowns, etc. and a result set at the bottom with is wrapped in a div that uses: overflow:auto. The first time we open up the popup the default resultset dsiplays just fine. But when I click retrieve (to post the form ...