| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: May 2009
Posts: 39
|
Hi, I am trying to make a small login screen with HTML and CSS. I am using an image as login box (with img src - center). Now I used div username for username label and textfield, and div password for password label and textfield. I also used CSS file to position both fields. However, when I re-size the browser window, the login box picture adjusts to the center of window, but the textfields don't move and everything is out of place. How do I keep the username and passwords inside the login box pic (no matter if window is re-sized) ? Some help would be great. Thanks. |
|
|
|
|
|
#6 (permalink) | |
|
Don't touch my tea!
|
Quote:
Why? People keep going on about absolute positioning as if it's the devil or something. It's a perfectly acceptable method of positioning elements if you know how to use it properly. |
|
|
|
|
#7 (permalink) |
|
Whitey
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 7,320
|
I agree fully. But someone who is having troubles with it is using it improperly. And by the time they figure out that what I said is not absolute, they will probably know when to use it, and when not to. |
|
|
|
#8 (permalink) | |
|
Senior Member
Join Date: Feb 2006
Posts: 3,596
|
Quote:
nice |
|
|
![]() |
|