Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-03 19:26:50

arcintel
Member
Registered: 2006-04-25
Posts: 11
Website

i know this is stupid - no css bg img's appearing in ie?!

ok people i feel really stupid right now because i know this has got to be something ridiculously simple (ala missing semi in c++)…
im just about to start the dreaded ie fix stage of this site, and the first thing i notice is that not a single image is loading in ie? i know theres a ton of other stuff to fix, but i want to start w/ this. ive triple checked my html header and dtd, looked around the web a bit, tried a few things, and nothin. im guessing it has something to do w/ the liquidity of the layout, but not entirely sure. plz help me see what my eyes obviously cant… and thank you very much ahead of time.

<a href=“http://www.flbsigns.com/new”>http://www.flbsigns.com/new</a>


thank you

Offline

#2 2006-10-03 21:28:54

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: i know this is stupid - no css bg img's appearing in ie?!

Adding a position to the background image makes it show up:

body {background:url(imgs/bg.jpg) top center no-repeat;}

(I understand it should not be ‘top center’, but you’ll figure out that one…)

Try CSSVista for checking your site in IE.

Offline

#3 2006-10-03 21:31:57

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: i know this is stupid - no css bg img's appearing in ie?!

Just a detail:
AFAIK, the orden for short-hand background declaration is:

body {background:url(imgs/bg.jpg) no-repeat center top;}


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2006-10-03 21:35:00

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: i know this is stupid - no css bg img's appearing in ie?!

Oh really? Didn’t know that. It has always worked in this order for me. But thanks ;)

Offline

#5 2006-10-03 21:49:36

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Offline

#6 2006-10-03 22:32:28

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: i know this is stupid - no css bg img's appearing in ie?!

I started this answer before but the !@#$%^ computer crashed (thanks windows) – which is why I seldom use it.

ANyway, your css will work as written if you simply add a little whitespace between the url and the next attribute. IE gets easily confused when whitespace isn’t where it expects it to be.

Just a note – jamming all your code together like that makes it very hard to read and maintain with minimal gains in download speed and – as you can see – can confuse IE no end.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#7 2006-10-03 23:21:50

arcintel
Member
Registered: 2006-04-25
Posts: 11
Website

Re: i know this is stupid - no css bg img's appearing in ie?!

thanks a ton nyteowl! i was right, just as silly as a missing semi in c/++.
i seldom use win too… pref ubuntu nix at the moment (enlightenment is an awesome ui on top of it), but must resort to win just for flash (cant stand mac os).
the code doesnt look so jammed when in a code editor w/ color coded syntax, and keeps me from having to scroll a ton… ill put some returns in there when the sites done.
thx again!


thank you

Offline

Board footer

Powered by FluxBB