DIV layer misalignment, how can you align it? |
![]() ![]() |
DIV layer misalignment, how can you align it? |
Aug 2 2006, 09:19 AM
Post
#1
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 219 Joined: Jan 2004 Member No: 1,625 |
I have a comment box in a div layer that i positioned in relative to otherthings on my layout and it's fine. the problem is that when people with a lower resolution look at my myspace, the comment box is not where it's supposed to be, it's more to the right than it should be.
my res. is 1280x1024 and the alignment is fine. my friend's is 1024x768 and my comment box is misaligned on his. when i change my res. to match his, it is also misaligned. how can i make it so that it would be in one place in all res.? thanks. here's my comment box code. CODE <div style="position:absolute;left:760px; top:610px; width:200px; height:250px; background-color:#ffffff; overflow:auto;">
<center> <form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"><input name="96830854" value="Your friend ID number" type="hidden"><textarea name="f_comments" cols="40" rows="7" style="border-width: 1px; border-style: solid; border-color: 000000; font-family: Tahoma; font-size: 10px; color: 000000; background-color: ffffff;" style="overflow:auto;"></textarea><br> <input value="add comment" style="border-width: 1px; border-style: solid; border-color: 000000; font-family: Tahoma; font-size: 10px; color:000000; background-color: ffffff;" type="submit"> <input value="clear" style="border-width: 1px; border-style: solid; border-color: 000000; font-family: Tahoma; font-size: 10px; color: 000000; background-color: ffffff;" type="reset"></form> </center> </div> |
|
|
|
Aug 2 2006, 12:07 PM
Post
#2
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
Add a zindex. Before the "> add z-index: 1;
Add a zindex to all your divs. Except add a diff number for each. |
|
|
|
Aug 2 2006, 12:15 PM
Post
#3
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 219 Joined: Jan 2004 Member No: 1,625 |
i added the z-index like you said..
i put it here: CODE overflow:auto; z-index 1;"> after the overflow thing and before the ">. i lowered my res. and looked at it and it still is misaligned. it's normal when i go back to the higher res. though. i don't know if i did it right or not, but it seems to not be working. did i do something wrong or is there another way? thanks. |
|
|
|
Aug 2 2006, 12:19 PM
Post
#4
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
Not that I know of. If all your divs look like that no. Have your friend look when it has the zindexes. The lower your resolution, thing never worked well for me.
Also make sure your using the same browser.. |
|
|
|
Aug 2 2006, 09:46 PM
Post
#5
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 219 Joined: Jan 2004 Member No: 1,625 |
yeah.. we are both using IE. and his res. is lower and it's not right.. hmm.. thanks for your help. maybe there is something up with my DIV code?
could you maybe look at it and see what i should change? thanks. the code is posted above on the first post. thanks. |
|
|
|
Aug 2 2006, 10:27 PM
Post
#6
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
Yea it looks fine. As long as your not using margins and percents , which your not. Put Try changing it to this:
CODE <div class="bg" style="position: absolute; left:0px; top:0px; width:000px; height:000px; overflow: hidden;"> <img src="IMAGEURLHERE"> </div> Because that div , has names. So it makes your divs less confusing. Change all your divs to ones like that. Just add the positions in. Make sure you change the word "bg" to something else for each one. |
|
|
|
![]() ![]() |