![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
Relative positioning in CSS
I am in the planning stages of writing a game in Javascript. (I know that Javascript is not a great language to write a game with; the purpose of this project is only to improve my understanding of the language.) The game will be contained within a rectangular box. All of the Javascript games I have seen on the internet are entirely positioned absolutely (from the top left corner of the page). Ideally, I would like to be able to embed my game in a web page, which is to say, everything would have to be relatively positioned. I am not sure this is possible because the relative position in CSS alters the position of an element from where it was, which will most likely not be the top left corner of my bounding box. Is this possible? Thanks.
|
|
|
|
|
|
#2 |
|
Professional Programmer
|
Re: Relative positioning in CSS
I'm not entirely sure what you need but hopefully this helps: CSS positioning
__________________
JG-Webdesign |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need a CSS fix for IE | Obsidian Age | HTML / XHTML / CSS | 0 | Jun 1st, 2008 7:12 PM |
| full screen help, html css | privateD.lister | HTML / XHTML / CSS | 2 | Apr 28th, 2008 3:32 PM |
| CSS Mass Resets | MiKuS | HTML / XHTML / CSS | 0 | Feb 3rd, 2008 4:57 PM |
| problem in css | desperateboy | HTML / XHTML / CSS | 2 | Oct 27th, 2007 6:29 AM |
| Major IE6 issue + CSS | Kezzer | HTML / XHTML / CSS | 1 | May 29th, 2007 7:52 AM |