DIV Tag Positioning in IE 7 and Firefox |
DIV Tag Positioning in IE 7 and Firefox |
Orca239 |
Sep 5 2008, 10:56 AM
Post
#1
|
Group: Members Posts: 2 Joined: 5-September 08 Member No.: 6,593 |
I have two main divs, one on the left and one on the right (it sorta makes it like two columns). I have another div within the right-div, which has an image set on the background. In Firefox, I need to have a left margin of 5px (in CSS) to make it line up correctly. But when I do that, it displays too far to the right in Internet Explorer 7. Below is a simple little image to kind of give a better idea.
In Firefox: In Internet Explorer: How can I get it to look correct in both browsers? Thanks for any help. |
Darin McGrew |
Sep 5 2008, 07:24 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Can you provide the URL (address) of a document that demonstrates the problem?
|
Orca239 |
Sep 5 2008, 10:45 PM
Post
#3
|
Group: Members Posts: 2 Joined: 5-September 08 Member No.: 6,593 |
This is the site I'm working on: http://www.twilightproject.org
The top tab thing of the main section on the right is what i'm talking about. |
pandy |
Sep 5 2008, 11:49 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 Joined: 9-August 06 Member No.: 6 |
CODE #right { margin-left: 353px } You've used 'margin-left: 34%' for #right while the left column has 'width: 237px' + 'padding-left: 116px' which adds up to 353px. |
Lo-Fi Version | Time is now: 26th April 2024 - 05:48 PM |