Keeping a div at the top of the viewable area

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Keeping a div at the top of the viewable area

Mart-Mari Breedt
Hi,

Its one of my weird problems again.

(BTW: Lukas thank you for your suggestions last week, I managed to use
the standard drag and droppables and solved my problem in that manner)

This time I would like to know if there is a way to keep the contents of
a div at the top of the page when scrolling. In terms of the
SUDragDropTest, would it be possible to have an inventory of items on
the left and a number of droppable buckets on the right. Lets say you
need to scroll down to access the last bucket, now the inventory of
draggable objects are no longer visible, which means you cannot drop
anything into the last bucket. Would it be possible to keep this
inventory at the top of the viewable area (window) after scrolling down
in order to still access the items in the inventory?

As always, any suggestions and ideas are very welcome.

Thank you for all the help.

Kind regards,

Mart-Mari

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Keeping a div at the top of the viewable area

Philippe Marschall
Hi

CSS, have you tried something like

position: fixed;
top: 0px;

Philippe


2006/8/1, Mart-Mari Breedt <[hidden email]>:

> Hi,
>
> Its one of my weird problems again.
>
> (BTW: Lukas thank you for your suggestions last week, I managed to use
> the standard drag and droppables and solved my problem in that manner)
>
> This time I would like to know if there is a way to keep the contents of
> a div at the top of the page when scrolling. In terms of the
> SUDragDropTest, would it be possible to have an inventory of items on
> the left and a number of droppable buckets on the right. Lets say you
> need to scroll down to access the last bucket, now the inventory of
> draggable objects are no longer visible, which means you cannot drop
> anything into the last bucket. Would it be possible to keep this
> inventory at the top of the viewable area (window) after scrolling down
> in order to still access the items in the inventory?
>
> As always, any suggestions and ideas are very welcome.
>
> Thank you for all the help.
>
> Kind regards,
>
> Mart-Mari
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Keeping a div at the top of the viewable area

Mart-Mari Breedt
In reply to this post by Mart-Mari Breedt
Brilliant! That worked. Thank you, Philippe.

Kind regards,

Mart-Mari

-----Original Message-----
From: Philippe Marschall [mailto:[hidden email]]
Sent: 01 Augustus 2006 10:57
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] Keeping a div at the top of the viewable area

Hi

CSS, have you tried something like

position: fixed;
top: 0px;

Philippe


2006/8/1, Mart-Mari Breedt <[hidden email]>:
> Hi,
>
> Its one of my weird problems again.
>
> (BTW: Lukas thank you for your suggestions last week, I managed to use
> the standard drag and droppables and solved my problem in that manner)
>
> This time I would like to know if there is a way to keep the contents
of
> a div at the top of the page when scrolling. In terms of the
> SUDragDropTest, would it be possible to have an inventory of items on
> the left and a number of droppable buckets on the right. Lets say you
> need to scroll down to access the last bucket, now the inventory of
> draggable objects are no longer visible, which means you cannot drop
> anything into the last bucket. Would it be possible to keep this
> inventory at the top of the viewable area (window) after scrolling
down

> in order to still access the items in the inventory?
>
> As always, any suggestions and ideas are very welcome.
>
> Thank you for all the help.
>
> Kind regards,
>
> Mart-Mari
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Keeping a div at the top of the viewable area

Damien Cassou-3
Mart-Mari Breedt wrote:
> CSS, have you tried something like
>
> position: fixed;
> top: 0px;

Take care, you may have problems with some browsers.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside