screen-resolution

What's wrong with my CSS , elements move and overlap when resizing window to smaller size?

↘锁芯ラ 提交于 2019-12-01 01:45:24
Ok , so below is my CSS AND HTML code. I have been using percentage for the divs so that those divs can re-adjust to bigger screen sizes . The annoying thing is that when I resize the window to a smaller size on my computer , those elements keep moving till they overlap and I don't want that . How can I use percentages to make those divs re-adjust to bigger resolutions , yet not move when resizing the window to a smaller size based on the CSS and HTML I have below Here is the CSS body{ background:#F4F4F4; background-size:100%; width:100%; height:100%; margin:0 auto; min-width:1300px; min

Print a Form at higher dpi than screen resolution

眉间皱痕 提交于 2019-12-01 01:27:29
Problem: We need help with how to use WinForms' ability to auto-scale to different DPI’s to allow us to print our Forms at 600dpi, rather than at the screen DPI. For What-You-See-Is-What-You-Get printing, we have been simply taking our nicely laid out window and printing it (turning off scrollbars and buttons and such). That works great EXCEPT for one thing: it comes out at 96dpi or 120dpi (whatever is the screen resolution)… either of which look grainy and unprofessional (our customers are complaining). And although it is as readable as what would be on the screen, you expect printed

What's wrong with my CSS , elements move and overlap when resizing window to smaller size?

丶灬走出姿态 提交于 2019-11-30 21:06:33
问题 Ok , so below is my CSS AND HTML code. I have been using percentage for the divs so that those divs can re-adjust to bigger screen sizes . The annoying thing is that when I resize the window to a smaller size on my computer , those elements keep moving till they overlap and I don't want that . How can I use percentages to make those divs re-adjust to bigger resolutions , yet not move when resizing the window to a smaller size based on the CSS and HTML I have below Here is the CSS body{

Print a Form at higher dpi than screen resolution

笑着哭i 提交于 2019-11-30 20:32:20
问题 Problem: We need help with how to use WinForms' ability to auto-scale to different DPI’s to allow us to print our Forms at 600dpi, rather than at the screen DPI. For What-You-See-Is-What-You-Get printing, we have been simply taking our nicely laid out window and printing it (turning off scrollbars and buttons and such). That works great EXCEPT for one thing: it comes out at 96dpi or 120dpi (whatever is the screen resolution)… either of which look grainy and unprofessional (our customers are

Android and supporting multiple screens layouts

好久不见. 提交于 2019-11-30 19:34:55
I'm finishing off an Android app, all that remains is to adapt the UI layouts and graphics for multiple devices. I need particular elements placed in particular positions on the screen. The Android docs explain how the multiple screen resolutions and sizes are classified, and explain the resource tagging system. For example, both WVGA800 (480x800) and WVGA854 (480x854) are classified as normal high density screens. To cater for these you're asked to create a folder called "layout" (already present for "normal") and "drawable-hdpi". The problem is this does nothing to differentiate two devices

Handling different screen resolutions for background images in Android

夙愿已清 提交于 2019-11-30 19:34:20
My Android app (a text-based game) uses background images a lot in order to provide a better visual ambiance. For example, if the action in the game takes you into a tavern, then you get a background image of a tavern in the game. This is a vast improvement, graphically, over the boring black background that you would otherwise get. It is also a problem, however, since android:background always stretches to the dimensions of the screen. The result is that the background images look very bad if the player switches between portrait and landscape mode. And to make matters worse, many devices have

Detect screen width for multiple monitors

时光怂恿深爱的人放手 提交于 2019-11-30 12:44:05
My website is optimized (with fixed width) for 1024x768 layout. I plan to add vertical banners on either side of the page for people having resolution width 1280 or higher. Using screen.width, I can easily do this. But I face a problem when trying it on machines with multiple monitors. Lets assume the below mentioned scenario: Monitor 1 (primary display) - Resolution is 1024 x 768 Monitor 2 (secondary display) - Resolution is 1440 x 900 screen.width always shows width as 1024 irrespective of the monitor I browse the page on. The values are reversed if I change the primary monitor to Monitor 2.

Get the real screen resolution on Ice Cream Sandwich

点点圈 提交于 2019-11-30 12:35:12
Devices with Ice Cream Sandwich can use on-screen soft keys, and this means that some of the screen estate is taken by these keys. I need to get the real screen resolution, and not the resolution minus the space taken up by the soft keys. I've tried the following, but neither works: Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); Log.d("SCREEN RES", "Width: " + width + ". Height: " + height); DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); height = metrics

Getting custom DPI percentage in Delphi

让人想犯罪 __ 提交于 2019-11-30 12:08:03
问题 Trying to my Delphi 2010 application more user freindly in high DPI modes in Windows 7 I have been trying several methods to retrive PixelsPerInch and compare to 96. Alas, no matter what I tried I always get 96. My questions are: What is the best practice to get custom DPI mode? Is the fact I am getting a constant 96 no matter what I what the percebtage is means I missing somthing? Here is what I had tried dpiX := Form1.PixelsPerInch and dpiX := Screen.PixelsPerInch and finally:

Cocoa Point vs Pixel and PPI

僤鯓⒐⒋嵵緔 提交于 2019-11-30 09:46:56
问题 Well, I have basically two questions regarding screen resolution in iOS devices. 1) In iOS documentation, on the Point vs Pixels section, it states the coordinates are passed in to framework as points, and that "One point does not necessarily correspond to one pixel on the screen." as found here: https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/WindowsandViews/WindowsandViews.html When they are different? Up until now I was assuming they were