overflow

CSS white-space nowrap not working

拟墨画扇 提交于 2019-12-05 04:39:51
I have a div with several child divs which are floating left. I don't want them to break, so I set them to display:inline-block and white-space:nowrap . Unfortunately nothing happens at all. They just keep breaking. At the end I want to scroll in x-direction, but when I add overflow-x:scroll; overflow-y:visible it scrolls in y-direction. .a { width: 400px; height: 300px; white-space: nowrap; display: inline-block; } .b { float: left; width: 50px; height: 200px; display: inline-block; } <div class="a"> <div class="b"></div> <div class="b"></div> <div class="b"></div> <div class="clearfix"></div

IE10 line-height bug with display:inline-block; and overflow:hidden;

六月ゝ 毕业季﹏ 提交于 2019-12-05 04:17:48
I've recently run in to a peculiar problem in IE10 ( sigh ). It appears that if you use display:inline-block; in conjunction with overflow:hidden; IE10 messes up your line-height. I tried fixing it using vertical-align:middle; but that only almost fixes the problem in IE10 and then introduces baseline problems in other browsers. The only code needed to trigger the bug is: CSS: .bug { display:inline-block; overflow:hidden; } HTML: <p>This should <span class="bug">be buggy</span> in IE10</p> I created a JSFiddle to illustrate the bug - http://jsfiddle.net/laustdeleuran/5pWMQ/ . There's also a

Most efficient portable overflow detection? [duplicate]

余生颓废 提交于 2019-12-05 03:39:43
This question already has answers here : Catch and compute overflow during multiplication of two large integers (11 answers) Closed 4 months ago . In close to the metal languages like C, C++ and D, what's the most efficient reasonably portable way (i.e. w/o using assembler, though you may assume two's complement arithmetic and wrap-around behavior) to detect overflow of an unsigned 64-bit integer on multiplication? You can detect overflow in advance by dividing the maximum value representable by the unsigned type by one of the multiplicands; if the result is less than the other multiplicand,

Hacking Challenge - locating vulnerability in the code

本小妞迷上赌 提交于 2019-12-05 02:12:28
问题 My Friend recently completed a hacking challenge and sent it to me (binary and source). I wanted to ask here before I asked him for tips as I want to do it myself :) I've been going through it but I am struggling to find the vulnerability. #include <alloca.h> #include <stdio.h> #include <string.h> #include <stdlib.h> static void usage(const char *argv0) { printf("Build your own string!\n"); printf("\n"); printf("Usage:\n"); printf(" %s length command...\n", argv0); printf("\n"); printf("Each

CSS3 Transform Scale and Container with Overflow

早过忘川 提交于 2019-12-05 01:49:25
问题 I am trying to create a zoom-in functionality for a container with CSS3 Transform (scale) and all seems to work nicely, but when the image is scaled, the overflow only covers a part of the image, leaving the top left part out of the overflow. Code is as follows: HTML: <div class="outer"> <img id="profile" src="http://flickholdr.com/300/200/" /> </div> <button class="zoom orig">Original</button> <button class="zoom x2">x2</button> <button class="zoom x4">x4</button> CSS: .outer { width: 500px;

Multi-line text-overflow:ellipsis in CSS or JS, with img tags

你。 提交于 2019-12-04 22:33:20
问题 I tried using : text-overflow ellipsis feature in CSS3 (but doesn't support multi-line) several jquery plugins like dotdotdot (http://dotdotdot.frebsite.nl/) jquery autoellipsis (http://pvdspek.github.com/jquery.autoellipsis/). All of these tools work quite well but if content has images the calculated height for truncation with dotdotdot or jquery.autoellipsis is wrong. I was just wondering if someone has a great idea for dealing with this (maybe some server-side processing on ?), Thanks by

Width: 100% Without Scrollbars

一曲冷凌霜 提交于 2019-12-04 22:21:06
I'm trying to make a part of my webpage that fit the width of the browser, for this I'm using width: 100% , the problem is that it shows scrollbars and I can't use overflow-x: hidden; because it will make some of the content hidden, so how I can fix this? #news { list-style-type: none; position: absolute; bottom: 0; width: 100%; text-align: center; margin-right: 10px; margin-left: 10px; padding: 0; -webkit-user-select: text; } Because you're using position: absolute , instead of using: width: 100%; margin-right: 10px; margin-left: 10px you should use: left: 10px; right: 10px That will make

Why is my Crosstab being cut off in Excel?

送分小仙女□ 提交于 2019-12-04 22:20:38
I'm attempting to create an excel spreadsheet using BIRT. The spreadsheet is a crosstab mapping two objects together. The number of rows and columns are dynamic based on values in a MySQL database. Currently I have a working implementation of the report for PDF output. Now, I am trying to create a second version of the report for Excel. I have copied the report design and begun adjusting it to work with Excel. Everything looks good, but only the first 3 columns are displayed after the header. All rows appear correctly. I have tried the following: I tried setting Overflow to Visible on every

CSS Overflow Firefox issue

可紊 提交于 2019-12-04 19:54:35
I am trying to write a CSS in which when the user writes text and it overflows instead of having a scrollbar or hiding, it just goes down like in a normal Word Document or so. I have this code: #content-text { width: 960px; padding-left: 10px; padding-right:10px; text-align: left; color:#000; height:100%; margin-left: 25px; margin-right:25px; } The odd thing, is that while this code actually does what I want in IE in Firefox it overflows and becomes a scrollbar. I've tried overflow:auto; overflow:hidden; and overflow:inherit; just to see if any helped but no luck so far, and I honestly have no

Detecting whether there's overflow or not WITHOUT javascript

不羁岁月 提交于 2019-12-04 19:53:40
I want to know if there's a HTML/CSS only way to detect (or at least, show/hide some elements with pseudo classes etc.) to take action when an element's contents overflow (in vertical only). Yes, I KNOW it can be done and I KNOW how to do it (I don't need JS examples on this, PLEASE), I just want to know if there's a clever way, without any javascript. I'm trying to show a "more..." button which will appear ONLY when there's overflow, and trying to achieve this without JS if possible. 100% height solution Here's a version of this solution for 100% height - so when content tries to take up more