473,466 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Specifying dimensions in inches

KeredDrahcir
426 Contributor
I'm displaying a popup and I'm defining the dimensions of it, but I need to size to be a set number of inches. In my screen resolution the popup is over 11 inches wide; in a higher one it is just under 9.

Is there a way to specify the size of something to be a set size regardless of screen resolution? It doesn't have to be inches if I can do it in cm or any other scale as long as it appears the same size whatever the resolution?
Oct 3 '12 #1
2 1844
Rabbit
12,516 Recognized Expert Moderator MVP
CSS allows for in and cm but those are only accurate for printing and not recommended for screen display. You could try using percentages but those are by the browser window size and not the screen size.

Frankly it's difficult to get the same size on every screen because to do so would require that you know the dimensions of the monitor in addition to the resolution so you can do the math on pixel size.
Oct 3 '12 #2
KeredDrahcir
426 Contributor
I thought that was the case but I thought I could at least ask. Thanks for confirming this for me.
Oct 11 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Brent Hoskisson | last post by:
What is a unit of height and width of a form measured as (pixels?) and how can I convert that measurement to inches? Thanks Brent
1
by: SpookyTooth | last post by:
I am trying to write a program that will convert a height of a person from feet and inches to centimeters. I want to use the relationship: 1 foot = 30.48 cm and 1 inch = 2.54 cm. I am trying to get...
3
by: SpookyTooth | last post by:
I am trying to write a program that will convert a height of a person from feet and inches to centimeters. I want to use the relationship: 1 foot = 30.48 cm and 1 inch = 2.54 cm. I am trying to get...
1
by: printline | last post by:
Hello I need a javascript that converts mm to inches. Ex. I have a drop down menu in my form where users can choose either mm or inches. If they choose inches for example i have two text...
4
by: keith | last post by:
I am writing a simple program to convert mm to feet and inches. I have it as follows: #include <stdio.h> #include <math.h> void main() { int x=11; float mm=0; float answer=0;
4
by: onefry | last post by:
Hey I have this prog that i'm working on, starting my first c++ class and kind of a n00b to programming here it is #include <iostream> #include <cstdlib> using namespace std;
6
by: philiprodley | last post by:
Have 3 text boxes. Feet, inches and metres. As I type in feet then inches, I would like to convert this to metres and place the result in the metres text box as soon as I tab on to the next...
3
by: pratik.best | last post by:
Hi, I am creating a software for a school. They are using dot matrix printer and have preprinted stationary. Now the paper size is 6 inches, and they are using tractor feed. How can I stop the...
2
by: Rob | last post by:
Hi Gurus, Is there any way to convert Centimeter or Inches to Pixel. Thanks for any help you can provide. Rob.
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.