943,949 Members | Top Members by Rank

Ad:
Jul 3rd, 2009
0

Page displays in IE but not in FireFox

Expand Post »
Hello,

I've had no problems getting the following page to display in IE but FireFox will only display a background image with no allignment, it's just thrown to the side and seems to follow the dimension specs for .bgtablealign. If I change the extension from .html to .php the page displays fine but the background image is missing!

I can't imagine what the difference is between firefox and IE here unless FireFox does not accept the way i've used the .bgtalbealign to select a background image. Perhaps it doesn't play well with .container1 or .absolutebackground that it is running in tandem with.

Any compatibility gurus out there that can shed some light on this?

HTML and CSS Syntax (Toggle Plain Text)
  1. <div class="container1">
  2. <body class="absolutebackground">
  3. <table class="bgtablealign">
  4. <tr>
  5. <td>
  6. <div class="container2">
  7. <table class="bgtablealignCenter">
  8. <tr>
  9. <td height="44" valign="top">
  10. <div class="darkheading">DoomBlog</div>
  11. </td>
  12. </tr>

HTML and CSS Syntax (Toggle Plain Text)
  1. .container1 {
  2. position: relative; margin-left: auto; margin-right: auto; width: 1000px; text-align: center; overflow: auto;
  3. }
  4. .container2 {
  5. position: relative; margin-left: auto; margin-right: auto; width: 800px; text-align: center;
  6. }
  7. .absolutebackground {
  8. background-color: #000;
  9. }
  10. .bgtablealign {
  11. background-image: url(file:///C|/Users/xxx/Documents/WebStuff/stripe_384854a7dd3238d4a9aa8145342c5e36.png);
  12. background-repeat: repeat;
  13. height: 1500px;
  14. width: 1000px;
  15. text-align:center;
  16. border: 20px solid #666;
  17. }
  18. .bgtablealignCenter {
  19. height: 1300px;
  20. width: 800px;
  21. background-color: #666;
  22. margin-left:auto;
  23. margin-right:auto;
  24. text-align:left;
  25. border: thick dashed #C90;
  26. }
  27. .darkheading {
  28. font-family: "MS Serif", "New York", serif;
  29. font-size: 36px;
  30. font-weight: bolder;
  31. color: #F90;
  32. background-color: #000;
  33. }
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kssi89 is offline Offline
24 posts
since Apr 2009
Jul 3rd, 2009
0

Re: Page displays in IE but not in FireFox

You .bgtablealign might be the issue, try:
HTML and CSS Syntax (Toggle Plain Text)
  1. background-image: url('c:/Users/xxx/Documents/WebStuff/stripe_384854a7dd3238d4a9aa8145342c5e36.png');
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Magicianer is offline Offline
12 posts
since Jul 2009
Jul 7th, 2009
0

Re: Page displays in IE but not in FireFox

Your 'container1' div is outside of the 'body' tag, so it may be a browser standards issue; try moving that div inside of the 'body' tag. Firefox is much more standards compliant than IE, possibly resulting in the Firefox-specific behavior you're seeing.
Reputation Points: 10
Solved Threads: 8
Light Poster
jcacquiescent27 is offline Offline
28 posts
since Jan 2008
Jul 9th, 2009
0

Re: Page displays in IE but not in FireFox

The other thing is that you would need to use some more styling for FF and Chrome etc.

Maybe try and include

HTML and CSS Syntax (Toggle Plain Text)
  1. .sample {
  2. text-align: -moz-center; //alignment for FireFox
  3. text-align: -khtml-center; //alignment for Chrome
  4. }
Reputation Points: 13
Solved Threads: 18
Junior Poster
MJ Pieterse is offline Offline
144 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Help Indicator
Next Thread in HTML and CSS Forum Timeline: Div Scroll Bug in IE - How to overcome?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC