473,611 Members | 2,242 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Move element to Y coordinate

Hello,

Is there a way to use JavaScript to push a page element (a DIV block,
for example) down the screen, so it sits at the bottom of the browser
window.

For example of a bad footer location:
http://www.simpy.com/user/angusprune

Note how the footer is very high up. Is there a way to push the DIV
that the footer is in to the bottom of the browser window?

In pseudocode:

if (where element Y coordinate is above <browser window bottom Y
coordinate>) {
move footer to browser window bottom Y coordinate
}
else {
leave footer where it is , as that means that the content of the page
already pushed it down
}

Is this doable? If anyone can paste any JS or point me to a good place
to learn how to do this, I'd be grateful.

Thanks!

Mar 27 '06 #1
1 2300
OtisUsenet said on 27/03/2006 12:24 PM AEST:
Hello,

Is there a way to use JavaScript to push a page element (a DIV block,
for example) down the screen, so it sits at the bottom of the browser
window.

For example of a bad footer location:
http://www.simpy.com/user/angusprune

Note how the footer is very high up. Is there a way to push the DIV
that the footer is in to the bottom of the browser window?
What you are after is the CSS property - position:fixed. IE 6 doesn't
support it,but apparently IE 7 will (does?).

Try this thread:

<URL:
http://groups.google.co.uk/group/com...56231c98dba9ac


in news:comp.infos ystems.www.authoring.stylesheets

[...]
--
Rob
Mar 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2556
by: Yngve | last post by:
Hi! I have a (newbie) problem wich i would become glad if someone could help me with. I have a Vector of pointers to instances of another class. I would like to remove a position in the middle of the vector. I am not using iterators at the moment, but if i had i think that i could have used "erase". This is my code now:
4
6352
by: spivee | last post by:
I'm having an odd type of issue. I want to be able to pass an element name in my javascript event and find the location of the element, be it a div, span, img whatever, specifically the top and left attributes. I have defined my element like so... ### .css file... #mydiv { position:absolute;
1
4328
by: russellmz | last post by:
I want to search for the end of a row. There will be a bunch of entries on each column then on the first blank I want to add something to that cell. Since ".range" uses a coordinate system with "A1", "B1", etc. how do I increment the letter coordinate? Or do i use something else? Thanks!
0
2697
by: peradino | last post by:
Hi I have a problem when I want to know how far my cursor is from the top of pictureBox. I can get mouse coordinate but it is screen coordinate. I can get the top position of my pictureBox but it is the distance from its container, not the screen coordinate. So my question is... 1.How can I get the top position of pictureBox in screen coordinate? or esle
4
1206
by: MD | last post by:
I am trying to define the schema for xml document. One of elements can have null / complex type x/ y <coordinate> <x>5</x> <y>1</y> </coordinate> or
9
5402
by: Eric.Gabrielson | last post by:
Hello, I am very knew to python and am attempting to write a program in python that a friend of mine is having to write in java. I am doing this for fun and would like some help as to how i can generate random coordinate points (x,y) and compare them with user inputted coordinate points. For example how will I be able to access the separate values, the x from the x,y position. I think I understand everything except 1)the random coordinate...
0
1033
by: basje1 | last post by:
I am looking for a VB6 script That will move between 2 coordinates and click on it so like this : move to coordinate 1 click -- move to coordinate 2 click -- and back to 1 Can some1 help me with that?
0
8097
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8411
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7038
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6072
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4042
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2546
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.