keeping div boxes in the same place, i need some help |
![]() ![]() |
keeping div boxes in the same place, i need some help |
Aug 1 2007, 03:25 PM
Post
#1
|
|
![]() Seⁿior member ![]() ![]() ![]() Group: Member Posts: 48 Joined: Apr 2007 Member No: 518,402 |
all my codes after a some amount of time alter so that all the boxes move up, to the left; or out of position. also it tends to look different on other people's computers.
could it be that i am defining positions with percents? here's an example of one code CODE .div1 {
background-color:black; color:white; border:2px solid; border-color:silver; width:789px; height:1000px; overflow:inherit; position:absolute; z-index:2; left:50%; top:0%; margin-left:-394px; margin-top:150px; text-align:center; visibility:visible;} marquee { z-index:8; } |
|
|
|
| *SinfullySweet* |
Aug 2 2007, 04:41 AM
Post
#2
|
|
Guest |
Thats odd. Your percentages are set to 50% It should look and fit the same on all screen resolutions. I dont think any type of code could mess with any type of coding that would make the div layer spontaneously move somewhere else.
Could this be a glitch? I see nothing wrong with the coding. |
|
|
|
Aug 2 2007, 04:51 AM
Post
#3
|
|
![]() Seⁿior member ![]() ![]() ![]() Group: Member Posts: 48 Joined: Apr 2007 Member No: 518,402 |
yea thats is the funny thing...its all right but..somehow it tends to move everynow and then.
do you think im better coding from scratch again in hope that it will fix the glitch? |
|
|
|
| *SinfullySweet* |
Aug 2 2007, 04:54 AM
Post
#4
|
|
Guest |
Hm.. If this continues to happen, I recommend it
|
|
|
|
Aug 2 2007, 04:56 AM
Post
#5
|
|
![]() Seⁿior member ![]() ![]() ![]() Group: Member Posts: 48 Joined: Apr 2007 Member No: 518,402 |
also everymovement seems to be centered around the higher of the divs
example .friends { blablblblhalbhlbah blahblhablhblahblh l;abhlahblahblhblh blhablkhh .comments { lkdalksjdlskajlkjlvkj asdlkjasldkjaslkdj;al slkdja;lskjdklsajd;lj sdsdasdsd if i correct the 'friends' div then the other one goes back to its spot too. another thing that kinda puzzled me.. |
|
|
|
Aug 2 2007, 05:26 AM
Post
#6
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
hmm.. im not sure o_o that happens with my divs, but some of them never move at all. Umm.. well, you have a margin-top, a top, and then a margin-left, and a left, all in one code..? lol
|
|
|
|
Aug 2 2007, 05:59 AM
Post
#7
|
|
![]() Seⁿior member ![]() ![]() ![]() Group: Member Posts: 48 Joined: Apr 2007 Member No: 518,402 |
oh lol sorry..i just made something up as i went along..
i think i forgot i put the margin-left and 'top'. its just a habit..i usually use that in a code but i've been trying percents and therein lies my problem. |
|
|
|
![]() ![]() |