Log In · Register

 
DIV layer misalignment, how can you align it?
hyunjin90
post 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>
 
 
Start new topic
Replies
freeflow
post Aug 2 2006, 10:27 PM
Post #2


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.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: