Log In · Register

 
 
Closed TopicStart new topic
DIV
grizzlybearcody
post Aug 11 2009, 06:00 PM
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
 
Mickey
post Aug 11 2009, 06:01 PM
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?
 
grizzlybearcody
post Aug 11 2009, 06:11 PM
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.
 
Mickey
post Aug 11 2009, 06:40 PM
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.
 
grizzlybearcody
post Aug 11 2009, 07:02 PM
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?
 
Mikeplyts
post Aug 11 2009, 07:04 PM
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.
 
grizzlybearcody
post Aug 11 2009, 07:27 PM
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.
 
Mickey
post Aug 11 2009, 07:28 PM
Post #8


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Alright, topic closed & moved.
 

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

 



IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here