E
Erwin Moller
I have a page with multiple repeating divs that display history-entries
for some thing I am developing.
Each div contains an "edit" and "delete" icon.
When edit is clicked, the page reloads with the clicked item open for edit.
It will be positions on top of the page via an anchor
(mypage.php?histid=2345#edit).
That is all fine. The user clicks the item, and it appears on top of the
page in editmode (with a form), and all others are just displayed in
display/view mode (no form).
However, I also have a "new entry" link, that opens a form at the bottom
of the page (mypage.php#new).
To get this also on top of the page, I add a bunch of <br> under that
form, otherwise the form will be low on the screen, since it is the last
thing displayed on the document.
My question: I somehow dislike these stupid <br> at the end of my
document. For myself, if I look at a page, I often scroll down to see
what is there, but in this case it is only empty space.
So all those <br> feel somehow like a stupid solution.
I wonder if anybody has any suggestions for a cleaner solution.
Note: I try to develop in such a way that my visitors don't need
Javascript to use the webpage.
Regards,
Erwin Moller
for some thing I am developing.
Each div contains an "edit" and "delete" icon.
When edit is clicked, the page reloads with the clicked item open for edit.
It will be positions on top of the page via an anchor
(mypage.php?histid=2345#edit).
That is all fine. The user clicks the item, and it appears on top of the
page in editmode (with a form), and all others are just displayed in
display/view mode (no form).
However, I also have a "new entry" link, that opens a form at the bottom
of the page (mypage.php#new).
To get this also on top of the page, I add a bunch of <br> under that
form, otherwise the form will be low on the screen, since it is the last
thing displayed on the document.
My question: I somehow dislike these stupid <br> at the end of my
document. For myself, if I look at a page, I often scroll down to see
what is there, but in this case it is only empty space.
So all those <br> feel somehow like a stupid solution.
I wonder if anybody has any suggestions for a cleaner solution.
Note: I try to develop in such a way that my visitors don't need
Javascript to use the webpage.
Regards,
Erwin Moller