|
| |
|
|
paul rayner
Posts: 232 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
IE not playing ball with bground image - 8/26/2009 5:13:45
I've used a background gif that's 1200 x 1px to frame a container 800px wide. View at http://www.rightintoit.com/shadow.html In Firefox 3 it seems to work as intended. But in IE, the main container is move over to the right about 170px. Here's the main part of the applicable CSS.
body
{
margin: 0px;
padding: 0;
color: #000;
background-color: #ddd;
background-image:url(images/bground.gif);
font-family: Arial, Helvetica, sans-serif;
text-align: center;
}
#container
{
/*margin: 0px auto;*/
margin-left:120px;
background-color:#FFFFFF;
border: 1px solid #333;
width: 800px;
padding-top: 0px
} The bground image is 1200 wide and has a space 800px wide, 120px from the left hand side. That's why I put a margin of 120px on the container. Can anyone explain why I haven't managed to get it to work in IE yet please? Ciao
_____________________________
" In theory, there is no difference between theory and practice. But, in practice, there is!"
|
|
|
|
paul rayner
Posts: 232 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
RE: IE not playing ball with bground image - 8/26/2009 6:23:31
Are you saying that the margin of 120px isn't the way to go? Is there an alternative with this style of page - or should I just ditch this sort of style?
_____________________________
" In theory, there is no difference between theory and practice. But, in practice, there is!"
|
|
|
|
paul rayner
Posts: 232 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
RE: IE not playing ball with bground image - 8/26/2009 7:08:52
I used the display:inline; command, but it doesn't appear to fix the problem in IE7. The CSS doesn't validate - there is one error with text-shadow being incompatible with CSS 2.1, but that shouldn't worry the divs. The XHTML does validate OK.
_____________________________
" In theory, there is no difference between theory and practice. But, in practice, there is!"
|
|
|
|
paul rayner
Posts: 232 Joined: 3/15/2001 From: yeppoon, qld, aus Status: offline
|
RE: IE not playing ball with bground image - 8/26/2009 17:17:43
Thanks again Tailslide. Once I got my head around making the image smaller, it all worked perfectly. Thanks heaps.
_____________________________
" In theory, there is no difference between theory and practice. But, in practice, there is!"
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|