Register and join over 40,000 other developers!
Recent Topics
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

Same objects' position on all screen resolutions
Started by toto_7, Jan 24 2012 04:13 PM
1 reply to this topic
#1
Posted 24 January 2012 - 04:13 PM
Hi there,
I am wondering how is possible to build up an HTML page and to be sure that the position that your images etc. have to be the same on every resolution. More specific my machine's resolution is 1280 x 800 how I can be 100% sure that the image I have in my code will placed at the same place on every user's screen?
Thanks in advance,
toto_7
I am wondering how is possible to build up an HTML page and to be sure that the position that your images etc. have to be the same on every resolution. More specific my machine's resolution is 1280 x 800 how I can be 100% sure that the image I have in my code will placed at the same place on every user's screen?
Thanks in advance,
toto_7
"Programming is like **. One mistake and you have to support it for the rest of your life."
-Michael Sinz
#2
Posted 24 January 2012 - 04:23 PM
<div style="position: absolute; left: 400px; top: 500px;">Hello World!</div>or...
<div id="some_div">Hello World!</div> <script type="text/javascript"> var the_div= document.getElementById ("some_div"); the_div.style.position= "absolute"; the_div.style.left= 400; the_div.style.top= 500;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download