8 replies [Last post]
Sourcing4U
Offline
newbie
Norfolk, UK
Last seen: 13 years 7 weeks ago
Norfolk, UK
Timezone: GMT+1
Joined: 2006-10-24
Posts: 5
Points: 0

I am having problems with my site at http://www.sourcing4u.co.uk in Firefox

The site displays fine in IE6 and IE7 but the CSS seems to be ignored in Firefox (1.5 and 2)

The CSS file is at http://www.sourcing4u.co.uk/CSS.css

Any help would be much appreciated.

Thank you

Andy.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 16 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

You are aware you haven't

You are aware you haven't got a doctype?

/waits patiently for the "dur whut's a doctype" question . . . .

Verschwindende wrote:
  • CSS doesn't make pies

Sourcing4U
Offline
newbie
Norfolk, UK
Last seen: 13 years 7 weeks ago
Norfolk, UK
Timezone: GMT+1
Joined: 2006-10-24
Posts: 5
Points: 0

Your patience shall be

Your patience shall be rewarded.

As far as I can tell I have a content type in the HTML, I know very little about CSS (as you can tell) but our online shop at http://www.sourcing4u.co.uk/shop which uses this CSS file http://www.sourcing4u.co.uk/shop/stylesheet.css works fine in IE and firefox.

Please let me know if you think Doctype is the issue and if possible tell me what to put where etc

Thank you.

drhowarddrfine
Offline
Leader
Last seen: 10 years 1 week ago
Timezone: GMT-6
Joined: 2005-05-21
Posts: 764
Points: 0

Without a proper doctype,

Without a proper doctype, you are leaving it up to the browsers to decide how to render your code. More importantly, IE goes into quirks mode and, apparently, you have designed your whole site around their broken box model.

See my link below. Use html4.01 strict as the first line of your page. Then validate your html and css and fix your many errors.

The reason your css is not being rendered is because you having misplaced brackets in the css.

IE7 is 10 years behind the standards or wrong.
But it works in IE!
IE is a cancer on the web -- Paul Thurott

Sourcing4U
Offline
newbie
Norfolk, UK
Last seen: 13 years 7 weeks ago
Norfolk, UK
Timezone: GMT+1
Joined: 2006-10-24
Posts: 5
Points: 0

I will sort the doctype out

I will sort the doctype out shortly, any clues as to where my misplaced brackets are?

Thank you.

drhowarddrfine
Offline
Leader
Last seen: 10 years 1 week ago
Timezone: GMT-6
Joined: 2005-05-21
Posts: 764
Points: 0

body{

body{

color:#333;

{

Do you know how to use both validators?

IE7 is 10 years behind the standards or wrong.
But it works in IE!
IE is a cancer on the web -- Paul Thurott

Sourcing4U
Offline
newbie
Norfolk, UK
Last seen: 13 years 7 weeks ago
Norfolk, UK
Timezone: GMT+1
Joined: 2006-10-24
Posts: 5
Points: 0

Yes,Thank you very much

Yes,

Thank you very much for the help, both validate properly and (after a few height and position adjustments in my CSS) the page displays properly in IE7 and Firefox 2

Thanks again,

Andy

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 16 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

Sourcing4U wrote:Yes, Thank

Sourcing4U wrote:
Yes,

Thank you very much for the help, both validate properly and (after a few height and position adjustments in my CSS) the page displays properly in IE7 and Firefox 2

Thanks again,

Andy

Now you can see why we go on about validation so much Laughing out loud Glad you got it sorted.

Verschwindende wrote:
  • CSS doesn't make pies

Sourcing4U
Offline
newbie
Norfolk, UK
Last seen: 13 years 7 weeks ago
Norfolk, UK
Timezone: GMT+1
Joined: 2006-10-24
Posts: 5
Points: 0

Yes I can, thanks again. I

Yes I can, thanks again.

I have managed to get most of the pages on our site validated, by using the CSS for image borders etc etc but cannot see a way to get our links page validated.

Also, if you click buy online you will see our OSCommerce based shop, this has countless errors which I doubt can ever be fixed.

Andy.