overflow

White corner showing on black box with Border-radius

倖福魔咒の 提交于 2019-12-18 20:09:10
问题 I am getting a odd effect (currently in chrome). I have created my own overlay dialog box. which has a semi transparent background sitting on top of my website with a box on top of that. the top of the bar as you can see has a black background. The main part of the box is white thought. Its not the easyist to see but it is annoying me. The white is showing through from behind. (I know as if i change it to red it changes colour) Which you can see in the top right hand corner of the screenshots

Body set to overflow-y:hidden but page is still scrollable in Chrome

柔情痞子 提交于 2019-12-18 14:03:10
问题 I'm having an issue with the overflow-y property in Chrome. Even though I've set it to hidden , I can still scroll the page with the mouse wheel. Here is my code: html, body { overflow-y: hidden; } #content { position: absolute; width: 100%; } .step { position: relative; height: 500px; margin-bottom: 500px; } <body> <div id="content"> <div class="step">this is the 1st step</div> <div class="step">this is the 2nd step</div> <div class="step">this is the 3rd step</div> </div> </body> Does

jQuery: How to get content not visible with overflow: hidden?

僤鯓⒐⒋嵵緔 提交于 2019-12-18 13:59:09
问题 I'm trying to span content across multiple pages (divs) set at a height of 950px per div, so I can properly output to pdf. I start off with one div which nests all of the content using overflow: hidden. Ideally I'd like to use jquery to find content which is out of the viewing scope (hidden), but I can't see any functionality to do this. $...(':visible') just applies to display: none or visibility: hidden... The content on these pages is basic html markup (p, br, ol, ul, li, h1, h2). I've

How to limit a table cell to one line of text using CSS?

ε祈祈猫儿з 提交于 2019-12-18 13:54:10
问题 I have a table of users where each row contains their names, e-mail address, and such. For some users this row is one text line high, for some others two, etc. But I would like that each row of the table be one text line high, truncating the rest. I saw these two questions: A column of a table needs to stay in one line (HTML/CSS/Javascript) CSS: limit element to 1 line In fact my question is exactly similar to the first one, but since the link is dead I can't study it. Both answers say to use

CSS overflow:hidden hiding a list's bullets?

霸气de小男生 提交于 2019-12-18 12:47:31
问题 I've just noticed something funny. Let's say I have a HTML list: <ol> <li>Lorem</li> <li>ipsum</li> <li>dolor</li> <li>sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. Curabitur et ligula.</li> </ol> And this CSS: li { white-space: nowrap; overflow: hidden; } The long text in the last item is indeed hacked off when it goes off the container's width, as expected. BUT! The list item numbers are affected by

CSS image scaling to fit within area not distort

久未见 提交于 2019-12-18 12:46:37
问题 Is there a way with CSS or otherwise of making an image fit within an area. Lets say I have multiple images of different sizes and I want them all to fit within a div of 150px by 100px. I don't want to scale the images though as some may be tall and others narrow I simply want them to fit within this area with the rest hidden. I thought about using overflow:hidden but it appears to not be hidden in IE6. Any ideas? 回答1: You should try using this: img{ width: auto; max-width: 150px; height:

Why does x-overflow:hidden cause extra space below?

送分小仙女□ 提交于 2019-12-18 12:23:31
问题 I have two spans inside each other. On the inner span I have overflow-x:hidden . This causes extra space below the inner span. Why? <span style="" class="yavbc-color-tip"><span style="">Some text</span></span> Fiddle: http://jsfiddle.net/U92ue/ Note: I have only tested in latest Chrome. 回答1: Visual formatting model - 9.4.1 Block formatting contexts Floats, absolutely positioned elements, block containers (such as inline-blocks , table-cells, and table-captions) that are not block boxes, and

How to prevent arithmetic overflow error when using SUM on INT column?

倖福魔咒の 提交于 2019-12-18 12:09:25
问题 I am using SQL Server 2008 R2 and I have an INT column where the data inserted never surpasses the max INT , but I have a query which uses the SUM function which when executed surpasses the max INT limit and throws the error mentioned in the title. I want to be able to execute this query without changing the column type from INT to BIGINT . Here is my query: SELECT UserId, SUM( PokemonExp ) AS TotalExp, MAX( PokemonLevel ) AS MaxPokeLevel FROM mytable GROUP BY UserId ORDER BY TotalExp DESC

CSS Right Margin Does Not Work Inside a Div With Overflow Scroll

烂漫一生 提交于 2019-12-18 10:38:13
问题 I am trying to make two divs, one inside the other. The inner div is larger than the outer div, the outer div has overflow:scroll , and the inner div has margin:25px . So I do this: #outer { width: 200px; height: 100px; overflow: scroll; } #inner { width: 400px; height: 200px; margin: 25px; } ... <div id="outer"> <div id="inner"> </div> </div> Instead of the inner div having a margin of 25px all the way around as expected, there is a 25px margin on THREE sides, but on the right side there is

How I can join <div> with display: inline-block? [duplicate]

浪尽此生 提交于 2019-12-18 09:31:44
问题 This question already has answers here : How do I remove the space between inline-block elements? (39 answers) Closed 3 years ago . I am developing a complex application and I need to use div for representing some information; NO table . My specific problem is when the box's information is organized, the content is separated. This is my code: #content { white-space: nowrap; } #item1 { width: 500px; } #item2, #item3 { width: 400px; } .item_ul { list-style-type: none; white-space: nowrap;