Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > IE7 CSS conundrum

Reply
Thread Tools

IE7 CSS conundrum

 
 
Shanx
Guest
Posts: n/a
 
      05-04-2007
One of my sites has been XHTML 1.1 for quite some time. It works
perfectly in Opera (6 onwards), Firefox (1.5 onwards) and IE through
the last version 6. It is only with the recent IE7 update that somehow
the layout is broken, e.g., http://sniptools.com/musings/conan-c...-spade-a-spade
-- the background image has a CSS of being centered through the middle
of the <body>, but it shows up a bit to the right on IE 7, with a
horizontal scroll bar. Funnily, the exact same CSS basically works on
the main page: http://sniptools.com/ (although that too is off the
left margin by a pixel or two). I'd appreciate any thoughts as to why
this is happening? Optimistic side of me hopes that this can be fixed
with some simple tweak that I'm overlooking because rewriting the
whole columnar design would be a huge PITA. Many thanks in advance!

 
Reply With Quote
 
 
 
 
JWL
Guest
Posts: n/a
 
      05-05-2007
Shanx wrote:
> One of my sites has been XHTML 1.1 for quite some time. It works
> perfectly in Opera (6 onwards), Firefox (1.5 onwards) and IE through
> the last version 6. It is only with the recent IE7 update that somehow
> the layout is broken, e.g., http://sniptools.com/musings/conan-c...-spade-a-spade
> -- the background image has a CSS of being centered through the middle
> of the <body>, but it shows up a bit to the right on IE 7, with a
> horizontal scroll bar. Funnily, the exact same CSS basically works on
> the main page: http://sniptools.com/ (although that too is off the
> left margin by a pixel or two). I'd appreciate any thoughts as to why
> this is happening? Optimistic side of me hopes that this can be fixed
> with some simple tweak that I'm overlooking because rewriting the
> whole columnar design would be a huge PITA. Many thanks in advance!


Try commenting out the #titlenav div.
 
Reply With Quote
 
 
 
 
cwdjrxyz
Guest
Posts: n/a
 
      05-05-2007
On May 5, 4:00 am, JWL <u...@example.net> wrote:
> Shanx wrote:
> > One of my sites has been XHTML 1.1 for quite some time. It works
> > perfectly in Opera (6 onwards), Firefox (1.5 onwards) and IE through
> > the last version 6. It is only with the recent IE7 update that somehow
> > the layout is broken, e.g.,http://sniptools.com/musings/conan-c...-spade-a-spade
> > -- the background image has a CSS of being centered through the middle
> > of the <body>, but it shows up a bit to the right on IE 7, with a
> > horizontal scroll bar. Funnily, the exact same CSS basically works on
> > the main page:http://sniptools.com/(although that too is off the
> > left margin by a pixel or two). I'd appreciate any thoughts as to why
> > this is happening? Optimistic side of me hopes that this can be fixed
> > with some simple tweak that I'm overlooking because rewriting the
> > whole columnar design would be a huge PITA. Many thanks in advance!

>
> Try commenting out the #titlenav div.


If you go to the W3C validator, you will find 9 xhtml 1.1 validation
errors. Although the code is written as xhtml 1.1, it is not served
properly, so it is just being served as text/html which is indicated
at the W3C validator using the extended interface. When served
properly as xhtml, a page can not be viewed on any IE browser
including IE7. Typically to serve as xhtml properly, on the server you
would associate a xhtml mime type such as application/xhtml+xml with
an extension such as .xhtml, since .html usually is reserved for the
mime type text/html on the server. To view on IE you must either mis-
serve the page as text/html as you have done for it or serve as html
4.01 strict. This sometimes is done with a php include in the header
exchange. As you are now mis-serving the page, using xhtml serves
absolutely no usual purpose, and you should use html 4.01 strict, or
go to the considerable trouble to serve the page correctly as
application/xhtml+xml for browsers that can handle it and as html 4.01
strict for browsers such as IE that can not.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 and IE7 64-bit in Vista 64-bit 007 Windows 64bit 1 10-28-2008 08:46 PM
How do I setup a 32 bit IE7 since I'm using a 64 Bit IE7 =?Utf-8?B?RXVnZW5l?= Windows 64bit 3 05-06-2007 01:18 PM
IE7 on XP vs IE7 on Vista Jeff Louella HTML 9 03-02-2007 02:25 AM
Provider MPLS IP-Enabled Frame Relay Cloud Routing Conundrum Scott Cisco 0 12-23-2004 02:13 AM
Bookmark Filing Conundrum mapmaker Firefox 2 12-21-2004 03:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57