my page is messed up on ie? |
my page is messed up on ie? |
![]()
Post
#1
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 354 Joined: May 2007 Member No: 526,982 ![]() |
everythings fine on firefox.
but when i looked at it on internet explorer, my contents on the right.. what can i do to fix it? my cousin said that my page looked fine last week. and last week was when i added the lytebox thing... |
|
|
![]() |
![]()
Post
#2
|
|
![]() Mel Blanc was allergic to carrots. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 6,371 Joined: Aug 2008 Member No: 676,291 ![]() |
I'm guessing your site is centered, right? Well there's a simple trick to getting through this problem, just use the code below and follow the instructions underneath it.
CODE .CLASS_NAME { position: absolute; top:###px; left:50%; margin-left:-###px; width:###px; height:###px; } 1. Ok, you got this little template above. First of all, .CLASS_NAME represents the class name of your div section. Change that accordingly. 2. position: absolute; is the method of positioning you're going to use. 3. top:###px; is how far down you want the div section to be. Replace the ### with any value you desire. Remember, the greater the number, the lower you go. 4. left:50%; is how far to the right we're going, and this case, we want to go 50% right. Do not change this property. 5. Now here's our little problem fixer. margin-left:-###px; is how far to the left you're going and this property works along with the left:50%; property to center it in both browsers and it also centers it on any resolution. Change the ### to half of your div's width. 6. Replace the ### in the width property to the width of your div. 7. Replace the ### in the height property to the height of your div. Now save the file and you're done! Good luck. ![]() |
|
|
![]() ![]() |