Questions tagged [overflow]

Overflow is a CSS property which governs what happens if content overflows its containing box. Do not use this tag for stack buffer overflow bugs and vulnerabilities; use [buffer-overflow] and/or [stack-smash] instead.

A CSS property which governs what happens if content overflows its containing box. Possible values are

  • visible: Content is not clipped and the overflow is shown outside of the element.
  • hidden: Content is clipped and the overflow is not shown.
  • scroll: Content is clipped but a scroll bar is shown regardless of whether the content overflows or not.
  • auto: Same as scroll except the scroll bar is only shown if the content actually overflows.
  • inherit: Inherits from the parent element property

Do not use this tag for questions about a stack overflow, buffer overflow or stack smashing error or vulnerability. See the appropriate tag(s) instead: , , .

6236 questions
2
votes
2 answers

Setting overflow: scroll on a table with display: flex

I have a table with the display: flex property, whose cells will be centered vertically. When there are more cells than the table can show, the overflow: scroll property doesn't take the top ones into account. In the sample code below, the scroll…
notyourtype
  • 256
  • 1
  • 3
  • 12
2
votes
1 answer

Bootstrap Thumbnail Cropping and Positioning

I'm having these 3 images with different sizes. When I display them inside 3 containers like this: @foreach (var item in Model) {
2
votes
1 answer

overflow-y is affecting overflow-x

I want the left column (#left) to have overflow-y: scroll and overflow-x: visible. However, the overflow-x ends up being scroll when I test it despite the code saying different. What am I doing wrong? Thanks. $(document).ready(function(){ …
Alderp
  • 23
  • 2
2
votes
1 answer

UITextView Dynamic Height Using Autolayout - Top line of text cutoff with each new line

I have an expanding "Message Toolbar" that works in a similar fashion as the Messages app message bar, where a user can type text and the whole bar should grow in height for each new line of text (until it hits a predefined max height). I have it…
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146
2
votes
2 answers

How to remove extra characters input from fgets in C?

I heard using gets() is bad in C programming and it's safer using fgets... So I am using fgets. However, I encounter a problem with fgets: I entered too much characters and somehow, it overflows. How to get rid of the extra input characters? char…
Lord Rixuel
  • 1,173
  • 6
  • 24
  • 43
2
votes
1 answer

Trouble replicating a stack buffer overflow exploit

I am having trouble replicating the stack buffer overflow example given by OWASP here. Here is my attempt: $ cat test.c #include #include void doit(void) { char buf[8]; gets(buf); …
2
votes
0 answers

Overflow-x not working on mobile device, even with wrapper class

So I have a jQuery animation in a div-element. Clouds are moving from left to right out of the screen and repeat. I append them and then animate it like this: $('#clouds').append("
2
votes
2 answers

HTML/CSS line break when text overflows container

On my website, the Lorem Ipsum text overflows the container. How can I automatically add a line break when the text reaches its container's borders. I have created this JSFiddle to demonstrate my issue. HTML:
user3340372
2
votes
2 answers

Box decoration break overflow

Having a problem with box-decoration-break and overflowing. Here is a fiddle to illustrate my problem: https://jsfiddle.net/n56226na/3/ span { display: inline; padding: 7px 20px; background: #000; color: #fff; font-size: 18px; …
Jamie Shepherd
  • 123
  • 3
  • 11
2
votes
2 answers

Child element expanding parent's width despite negative margin and overflow.

I'm trying to make a centered page with a fixed width containing a single element expanding above these borders (as Design element). In wide viewports it works as expected, but when the window gets smaller than the width of that element it will cut…
hugo584
  • 21
  • 2
2
votes
1 answer

Overflow doesn't work in Opera 28

Does anyone know why Opera doesn't use overflow:hidden? Left is Opera, right is Firefox CSS: #ChatBig { width: 60%; height: 600px; margin: auto; background-color: white; overflow:hidden; resize:none; position: relative; …
Emperial
  • 91
  • 2
  • 11
2
votes
1 answer

children slideDown inside parent slideDown overflows the parent

A have designed a two level menu using jquery. When I hover the top menu link, a DIV by class name of submenu slides down. inside this div there is a link when I hover it, The second level with class name of subsubmenu is sliding down again and…
Ali Sheikhpour
  • 10,475
  • 5
  • 41
  • 82
2
votes
1 answer

Wumpus game's make-city-edges function causes heap overflow

Going through the Land of Lisp book, I managed to get to the Grand Theft Wumpus game, that has me define a make-city-edges function. When I try to run it however, SBCL hangs for a while before giving me a very nasty error saying Heap exhausted…
Electric Coffee
  • 11,733
  • 9
  • 70
  • 131
2
votes
4 answers

Issue with struct constructor causing stack overflow

Both sections of code below are drastically simplified, isolated versions of my actual code. The examples are just big enough to reproduce the problem. The first section of code below works fine. The section section is an attempt to begin to make it…
John
  • 31
  • 4
2
votes
1 answer

Is it possible to construct a general procedure for determing whether a binary operation causes overflow?

I'm curious, is it possible to write an all-encompassing implementation like template bool overflows(T a, T b) { // ... Returns true or false depending on whether a+b overflows } ???? If not, can someone at least show me how to…
1 2 3
99
100