DIV |
![]() ![]() |
DIV |
![]()
Post
#1
|
|
Member ![]() ![]() Group: Member Posts: 12 Joined: Aug 2009 Member No: 741,528 ![]() |
In firefox my DIVs are positioned perfectly.
But in IE they're moved over a few pixels. CODE <div class="content" style="position: absolute; top: 1977px; left: 50%; margin-left: -16px ! important; width: 460px; height: 40px; background-color: transparent;"><img src="body_header_image"></div> Is there anything I can add to that to make it work in both browsers? Thanks, Cody |
|
|
![]()
Post
#2
|
|
![]() Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 ![]() |
Can you post a link to the page this is happening to?
|
|
|
![]()
Post
#3
|
|
Member ![]() ![]() Group: Member Posts: 12 Joined: Aug 2009 Member No: 741,528 ![]() |
Well it's just a DIV code I just wrote.
A band wanted to add a "shows" header. and I put it up but when I cross referenced it, it worked in FF but moved over in IE. so I just took it down. |
|
|
![]()
Post
#4
|
|
![]() Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 ![]() |
Try removing the class and removing !important after 16px on the margin-left attribute.
|
|
|
![]()
Post
#5
|
|
Member ![]() ![]() Group: Member Posts: 12 Joined: Aug 2009 Member No: 741,528 ![]() |
Nah, didn't work.
I've seen some DIV's use an underscore for certain codes and that made a difference in the IE code. What do you think? |
|
|
![]()
Post
#6
|
|
![]() Mel Blanc was allergic to carrots. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 6,371 Joined: Aug 2008 Member No: 676,291 ![]() |
^Yeah, try that:
CODE <div style="position:absolute; top:1977px; left:50%; _left:50%; margin-left:-16px; _margin-left:-16px; width:460px; height:40px; background-color:transparent;"> <img src="body_header_image" border="0"> </div> See if that does anything. |
|
|
![]()
Post
#7
|
|
Member ![]() ![]() Group: Member Posts: 12 Joined: Aug 2009 Member No: 741,528 ![]() |
Yep it works.
I figured that was the code. but I just forgot what html to put them on. |
|
|
![]()
Post
#8
|
|
![]() Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 ![]() |
Alright, topic closed & moved.
|
|
|
![]() ![]() |