![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Positioning an Element in Screen Space
I cannot manage to find how to position an element relative to the screen rather than page with CSS. Since this element will be a loading indicator, the user needs to see it regardless of what part of the page he/she is scrolled to. Surely this doesn't require Javascript.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#2 | |
|
Professional Programmer
|
Quote:
|
|
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
IIRC, you need to set the CSS position attribute to "fixed" (no quotes).
|
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Thanks, Ooble. That did it.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 4
![]() |
position:fixed; will only work in real browsers, IE won't understand it.
You can accommodate IE with the following fix: http://tagsoup.com/-dev/null-/css/fixed/ --47.
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|