Background image not displaying correctly on IE

Background image not displaying correctly on IE

am 12.10.2007 09:59:25 von khinester

Hello,
I have the following section of my style.css

/
************************************************************ **************
* Header

************************************************************ **************/
#header{width:100%;position:relative;z-index:10;background:# 6899FF;
margin-bottom: 0px;
padding: 0px;
}
#header h1{background:url(images/logo.png) top left
no-repeat;width:400px;height:62px;position:relative;margin:0 ;padding:
0;margin-bottom:
0em;

padding: 0px;
color: none;
font-size: 1.1em;
text-align: left;
}

#header h1 a{width:400px;line-height:48px;display:block;text-
indent:-5000px;text-decoration:none;border:none;background:n one;}

#header h1 a:hover {background:none;border:none;text-decoration:
none;}

/
************************************************************ **************
* END Header

************************************************************ **************/

But on IE the background image within the h1 tag is aligned to the
right.

How can I fix this.

Here is the site http://uk.expert.travel

Thanks

Re: Background image not displaying correctly on IE

am 12.10.2007 10:30:30 von dorayme

In article
<1192175965.862729.224930@e34g2000pro.googlegroups.com>,
Norman wrote:

> But on IE the background image within the h1 tag is aligned to the
> right.
>
> How can I fix this.
>
> Here is the site http://uk.expert.travel
>


First fix up all the faults as shown in validator:

t.travel%2F%3Bview>


Here is output of faults reported by a Mac browser:

http://uk.expert.travel/ui/uk.expert.travel/style.css
CSS Error (29/14): Invalid property value ³none².
CSS Error (262/74): Unknown CSS property ³_padding-bottom².
CSS Error (283/47): Unknown CSS property ³_height².
http://uk.expert.travel/;view
HTML error (95/8): The tag is already open. Maybe the tag
was implicitly opened before.
HTML error (95/75): The tag is not allowed here.
HTML error (96/11): The tag is not allowed here.<br /> HTML error (97/9): Can¹t find start tag for end tag </HEAD>. <br /> Maybe the tag was implicitly closed before.<br /> HTML error (173/17): Can¹t find start tag for end tag </P>. Maybe <br /> the tag was implicitly closed before.<br /> HTML error (216/17): Can¹t find start tag for end tag </P>. Maybe <br /> the tag was implicitly closed before.<br /> HTML error (240/9): Can¹t find start tag for end tag </BODY>. <br /> Maybe the tag was implicitly closed before.<br /> <br /> -- <br /> dorayme</p> </article> <article> <h2>Re: Background image not displaying correctly on IE</h2><span>am 12.10.2007 11:09:50 von khinester</span> <p>On Oct 12, 10:30 am, dorayme <doraymeRidT...@optusnet.com.au> wrote:<br /> > In article<br /> > <1192175965.862729.224...@e34g2000pro.googlegroups.com>,<br /> ><br /> > Norman <norman.kh...@gmail.com> wrote:<br /> > > But on IE the background image within the h1 tag is aligned to the<br /> > > right.<br /> ><br /> > > How can I fix this.<br /> ><br /> > > Here is the sitehttp://uk.expert.travel<br /> ><br /> > First fix up all the faults as shown in validator:<br /> ><br /> > <http://validator.w3.org/check?verbose=3D1&uri=3Dhttp%3A%2F%2Fuk.exper<br /> > t.travel%2F%3Bview><br /> ><br /> > Here is output of faults reported by a Mac browser:<br /> ><br /> > http://uk.expert.travel/ui/uk.expert.travel/style.css<br /> > CSS Error (29/14): Invalid property value =B3none=B2.<br /> > CSS Error (262/74): Unknown CSS property =B3_padding-bottom=B2.<br /> > CSS Error (283/47): Unknown CSS property =B3_height=B2.http://uk.expert.t=<br /> ravel/;view<br /> > HTML error (95/8): The tag <HEAD> is already open. Maybe the tag<br /> > was implicitly opened before.<br /> > HTML error (95/75): The tag <META> is not allowed here.<br /> > HTML error (96/11): The tag <TITLE> is not allowed here.<br /> > HTML error (97/9): Can=B9t find start tag for end tag </HEAD>.<br /> > Maybe the tag was implicitly closed before.<br /> > HTML error (173/17): Can=B9t find start tag for end tag </P>. Maybe<br /> > the tag was implicitly closed before.<br /> > HTML error (216/17): Can=B9t find start tag for end tag </P>. Maybe<br /> > the tag was implicitly closed before.<br /> > HTML error (240/9): Can=B9t find start tag for end tag </BODY>.<br /> > Maybe the tag was implicitly closed before.<br /> ><br /> > --<br /> > dorayme<br /> <br /> done</p> </article> <article> <h2>Re: Background image not displaying correctly on IE</h2><span>am 12.10.2007 12:05:35 von John Hosking</span> <p>Norman wrote:<br /> > On Oct 12, 10:30 am, dorayme wrote:<br /> >><br /> >> Norman wrote:<br /> >>> But on IE the background image within the h1 tag is aligned to the<br /> >>> right.<br /> <br /> Your Resources and Jobs boxes are aligned oddly, too. They don't seem to <br /> even appear in FF.<br /> <br /> >>> How can I fix this.<br /> >>> Here is the site http://uk.expert.travel<br /> >> First fix up all the faults as shown in validator:<br /> >><br /> >> <http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fuk.exper<br /> >> t.travel%2F%3Bview><br /> <br /> >><br /> >> --<br /> >> dorayme<br /> <br /> Please don't quote signatures on Usenet.<br /> <br /> > <br /> > done<br /> <br /> No, not done. There's still at least one error.<br /> <br /> Replace <html xmlns="http://www.w3.org/1999/xhtml"> with <html>.<br /> <br /> You also have 4 errors and 9 warnings when running your CSS through the <br /> validator at <http://jigsaw.w3.org/css-validator/> . One of the errors <br /> involves #header h1.<br /> <br /> Otherwise:<br /> <br /> What happens when you remove text-align:right; from #header in aruni.css?<br /> <br /> What's the text-indent:-5000px; in style.css?<br /> <br /> Man, that sure is a lot of styles. Especially for a page that has tables <br /> for layout nested five deep<br /> <br /> Man, your styles sure use a lot of bg images.<br /> <br /> Wouldn't you be more efficient if your styles for #header, #header h1, <br /> #header a, etc. were all together instead of in various .css files?<br /> <br /> You're not serious about having semi-colons in your links, are you?<br /> <br /> Man, that sure is a lot of JavaScript. Oh, and I see it starts with a <br /> "BrowserDetect" function, so I'm done here, other than to recommend a <br /> new beginning. Rewrite the code or have a professional do it for you.<br /> <br /> <br /> -- <br /> John<br /> Pondering the value of the UIP: http://improve-usenet.org/</p> </article> <article> <h2>Re: Background image not displaying correctly on IE</h2><span>am 12.10.2007 12:51:25 von khinester</span> <p>On Oct 12, 12:05 pm, John Hosking <J...@DELETE.Hosking.name.INVALID><br /> wrote:<br /> > Norman wrote:<br /> > > On Oct 12, 10:30 am, dorayme wrote:<br /> ><br /> > >> Norman wrote:<br /> > >>> But on IE the background image within the h1 tag is aligned to the<br /> > >>> right.<br /> ><br /> > Your Resources and Jobs boxes are aligned oddly, too. They don't seem to<br /> > even appear in FF.<br /> ><br /> > >>> How can I fix this.<br /> > >>> Here is the sitehttp://uk.expert.travel<br /> > >> First fix up all the faults as shown in validator:<br /> ><br /> > >> <http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fuk.exper<br /> > >> t.travel%2F%3Bview><br /> ><br /> > >> --<br /> > >> dorayme<br /> ><br /> > Please don't quote signatures on Usenet.<br /> ><br /> ><br /> ><br /> > > done<br /> ><br /> > No, not done. There's still at least one error.<br /> ><br /> > Replace <html xmlns="http://www.w3.org/1999/xhtml"> with <html>.<br /> ><br /> > You also have 4 errors and 9 warnings when running your CSS through the<br /> > validator at <http://jigsaw.w3.org/css-validator/> . One of the errors<br /> > involves #header h1.<br /> ><br /> > Otherwise:<br /> ><br /> > What happens when you remove text-align:right; from #header in aruni.css?<br /> ><br /> > What's the text-indent:-5000px; in style.css?<br /> ><br /> > Man, that sure is a lot of styles. Especially for a page that has tables<br /> > for layout nested five deep<br /> ><br /> > Man, your styles sure use a lot of bg images.<br /> ><br /> > Wouldn't you be more efficient if your styles for #header, #header h1,<br /> > #header a, etc. were all together instead of in various .css files?<br /> ><br /> > You're not serious about having semi-colons in your links, are you?<br /> ><br /> > Man, that sure is a lot of JavaScript. Oh, and I see it starts with a<br /> > "BrowserDetect" function, so I'm done here, other than to recommend a<br /> > new beginning. Rewrite the code or have a professional do it for you.<br /> ><br /> > --<br /> > John<br /> > Pondering the value of the UIP:http://improve-usenet.org/<br /> <br /> thanks for the feedback. yes that was one of the problems and its now<br /> fixed.<br /> <br /> the styles are all in different sections as the application has many-<br /> back-offices and many front-offices, but i will look at how to load<br /> only the css for a specific sub-site rather than carry the whole lot.<br /> <br /> The browser detect is required for the i18n and the l10n of the site,<br /> so that it can return the right language and localization - if you<br /> know of a better way then do tell me.<br /> <br /> cheers</p> </article> <article> <h2>Re: Background image not displaying correctly on IE</h2><span>am 12.10.2007 13:39:06 von John Hosking</span> <p>Norman wrote:<br /> > On Oct 12, 12:05 pm, John Hosking wrote:<br /> >> Norman wrote:<br /> >>> On Oct 12, 10:30 am, dorayme wrote:<br /> <br /> [stuff]<br /> <br /> >>>> --<br /> >>>> dorayme<br /> >> Please don't quote signatures on Usenet.<br /> <br /> [my entire previous message, quoted in full, including the signature, <br /> snipped]<br /> <br /> > <br /> > thanks for the feedback. yes that was one of the problems and its now<br /> > fixed.<br /> <br /> *WHAT* was one of the problems? I mentioned nine (9) things and you left <br /> all of them in your reply, so which was the one thing you changed? No, <br /> don't answer, I don't really care. I should have known better than to <br /> have replied in the first place. You don't seem to read the replies you <br /> get, so I'm sure I'm wasting my time again already. But here, see this:<br /> http://www.xs4all.nl/~wijnands/nnq/nquote.html<br /> <br /> > <br /> > The browser detect is required for the i18n and the l10n of the site,<br /> > so that it can return the right language and localization - if you<br /> > know of a better way then do tell me.<br /> <br /> I can't picture how browser type affects language or date format issues. <br /> Why don't you ask users for their language and location and stop <br /> worrying about what UA they're using (especially since it's impossible <br /> to get the detection 100% right)?<br /> <br /> <br /> -- <br /> John<br /> Reminded of the value of the UIP: http://improve-usenet.org/</p> </article> <article> <h2>Re: Background image not displaying correctly on IE</h2><span>am 12.10.2007 22:51:32 von Blinky the Shark</span> <p>John Hosking wrote:<br /> > Norman wrote:<br /> >> On Oct 12, 12:05 pm, John Hosking wrote:<br /> >>> Norman wrote:<br /> >>>> On Oct 12, 10:30 am, dorayme wrote:<br /> ><br /> > [stuff]<br /> ><br /> >>>>> --<br /> >>>>> dorayme<br /> >>> Please don't quote signatures on Usenet.<br /> ><br /> > [my entire previous message, quoted in full, including the signature, <br /> > snipped]<br /> <br /> Google Grouper.<br /> <br /> >> thanks for the feedback. yes that was one of the problems and its now<br /> >> fixed.<br /> ><br /> > *WHAT* was one of the problems? I mentioned nine (9) things and you left <br /> > all of them in your reply, so which was the one thing you changed? No, <br /> > don't answer, I don't really care. I should have known better than to <br /> > have replied in the first place. You don't seem to read the replies you <br /> > get, so I'm sure I'm wasting my time again already.<br /> <br /> Google Grouper<br /> <br /> -- <br /> Blinky RLU 297263 <br /> Killing all posts from Google Groups<br /> The Usenet Improvement Project - http://improve-usenet.org</p> </article> <article> <h2>Re: Background image not displaying correctly on IE</h2><span>am 12.10.2007 23:28:11 von dorayme</span> <p>In article <470f5c9b$1_1@news.bluewin.ch>,<br /> John Hosking <John@DELETE.Hosking.name.INVALID> wrote:<br /> <br /> > Norman wrote:<br /> > > On Oct 12, 12:05 pm, John Hosking wrote:<br /> > >> Norman wrote:<br /> > >>> On Oct 12, 10:30 am, dorayme wrote:<br /> <br /> > > thanks for the feedback. yes that was one of the problems and its now<br /> > > fixed.<br /> > <br /> > *WHAT* was one of the problems? I mentioned nine (9) things and you left <br /> > all of them in your reply, so which was the one thing you changed?<br /> <br /> Exactly what I was wondering. I recall something odd happening in <br /> my FF web developer re the background image that the op was <br /> having trouble with, it would simply disappear as soon as the web <br /> developer side bar was activated (he was having trouble with it <br /> moving to the right in IE...). I gave him to fix all validation <br /> faults because I could not figure out what might be causing <br /> trouble quickly with *so many* of his css sheets, plus the <br /> suspicious doctype text lines...<br /> <br /> -- <br /> dorayme</p> </article> <article> <h2>Re: Background image not displaying correctly on IE</h2><span>am 13.10.2007 17:41:51 von Neredbojias</span> <p>Well bust mah britches and call me cheeky, on Fri, 12 Oct 2007 07:59:25<br /> GMT Norman scribed: <br /> <br /> > But on IE the background image within the h1 tag is aligned to the<br /> > right.<br /> > <br /> > How can I fix this.<br /> > <br /> > Here is the site http://uk.expert.travel<br /> <br /> You seem to have fixed it as the page looks the same to me in ie6, ff, and <br /> opera (-except for a small black box in one of them.)<br /> <br /> You might wanna consolidate your stylesheets and javascripts a bit, and get <br /> rid of that xhtml statement from the <html> tag.<br /> <br /> -- <br /> Neredbojias<br /> Half lies are worth twice as much as whole lies.</p> </article> <footer> <a href="/">Index</a> | <a href="/impressum.php">Impressum</a> | <a href="/datenschutz.php">Datenschutz</a> | <a href="https://www.xodox.de/">XODOX</a> </footer> </main> </body> </html>