CSS template wont load in Firefox

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Hi, I am in deep trouble here.
My whole website has a template embedded from css.
I booted the site up in firefox, and the template wont load.
I am now worried that other browsers will react the same, so far, i can only guarantee that IE7 works.
If you have firefox or enything other than IE, please visit this site, and tell me if it works.

http://www.pcgenius.co.nr/

thanks in advance

All the best news here: https://newsbotnet.com

demonhale's picture

He has: 3,278 posts

Joined: May 2005

I don't see the style in FF, I think it's the css import command, try using the link command instead after the tags:

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

tried and failed.
Thanks for the reply. much appreciated.

Roo's picture

She has: 840 posts

Joined: Apr 1999

When I tried to check the css through the validator I got this error:

Servlet has thrown exception:javax.servlet.ServletException: Timed out

Try to check the css for errors and also correct the code errors.

You've used Front Page, and it is known for messing things up.

Roo

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Yes, true, and thank you for this, I shall try it now.
Thank you so much. I have been warned about Frontpage by JeevesBond, but did I listen? Well, this is my punnishment, lol. Thanks mate, I sort this now.

All the best news here: https://newsbotnet.com

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

I HATE FIREFOX!!!
I finally got the template working, thanks to demonhale. and now the content is messed up!!!
If you are reading this today, I will not be uploading till it is sorted, so please dont go to the website.
Thanks to everyone for their support, but only I can sort it from here. I know the coding of my page, and this is what happens when you use too many tables inside a table that contains a few tables supporting a medium sized table containing 3 tables holding a frame with a couple of tables with content to to match a university handwriting class!!!
Jesus H Christ... Why did I start web-design??? lol.

All the best news here: https://newsbotnet.com

Smp Business Hosting's picture

They have: 60 posts

Joined: Aug 2007

ChildOfEvil;226493 wrote: I HATE FIREFOX!!!

It's important to remember that it's Microsoft that doesn’t bother complying with the standards. Probably because they feel they have such a big market share that they can afford to make peoples lives harder lol.

Code for Firefox first and worry about IE later, it will save you headaches...

Regards, Steve

demonhale's picture

He has: 3,278 posts

Joined: May 2005

I hope you got it sorted... Now all you have to do is learn to layout using div's...

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

<-- UPDATE -->
I LOVE FIREFOX!!!
It allows me to preview PHP offline.
I am now using Dreamweaver. I just need 1 more answer. What is the best thing to put in CSS, and leave rest to the page itself?
I have a external CSS file, What are the best jobs to give it?
Is the table ok inside the php file?

All the best news here: https://newsbotnet.com

Smp Business Hosting's picture

They have: 60 posts

Joined: Aug 2007

ChildOfEvil;226544 wrote: <-- UPDATE -->
I LOVE FIREFOX!!!
It allows me to preview PHP offline.
I am now using Dreamweaver. I just need 1 more answer. What is the best thing to put in CSS, and leave rest to the page itself?
I have a external CSS file, What are the best jobs to give it?
Is the table ok inside the php file?

The purpose of css is to separate design from content, which is really your answer.

Really the only thing that should be on the page itself is the content; all design aspects should all be placed in the external css file.
So the fonts, colours, headings, sizes, and table attributes should be placed into the css file.

Regards, Steve

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Ahh, right, but I have made the table, and fonts indie the html (php) file.
I tried to create a css table, but opened the file, then closed it again quickly without a backward glance.
I have no problems like this, everything is fine, all validation tests are fine, all reports are good. If you predict this to be a fatel mistake, plz tell me cuzz i reli cant face re-building everything again.

All the best news here: https://newsbotnet.com

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

This is my PHP File:

Quote:

Untitled Document

 

 
 
 

 
 
 

 
 

 

This is my CSS file:

Quote: body {background-color: #000000}

#main_template
{
background-image:
url('../images/template/main.png'); background-repeat: no-repeat
}

Any Ideas?

All the best news here: https://newsbotnet.com

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

This is the code i need in CSS, but I don't know how to convert it:

Quote:

 

 
 
 

 
 
 

 
 

 

All the best news here: https://newsbotnet.com

Smp Business Hosting's picture

They have: 60 posts

Joined: Aug 2007

ChildOfEvil;226549 wrote: This is the code i need in CSS, but I don't know how to convert it:

Are you saying you want to get rid of tables and use divs instead?

You should really start to move the attributes I mentioned above like font and colour ect into the css at some point as like I said the point of css is to separate the design from the content. Otherwise you may as well get rid off the css file and put the template background in the page (which I don't recommend).

Regards, Steve

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Yes, That is what I want

Quote: Are you saying you want to get rid of tables and use divs instead?

I dont want any formatting on my page, just in the CSS, but like I said, I dont know what to do. I will peobably sound like an amature asking for everything on here, but I dont want the code giving to me, I just need it explaining. I really need to learn this stuff, not just copy and paste.

For one thing, IDK how to call a table in CSS, html is pretty simple.
Can you or someone plz help me to understand the properties of CSS, it is nothing like html/php.
and I shall pay you to NEVER mention JS, I have encountered that, and made a Vow to never go down there again.

All the best news here: https://newsbotnet.com

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Hi, I am fine with this setup, just one last question... the only non-text thing I am using on the actual page is Tables. Thats It!
All formatting, Cursors, and background images are from css. Is this OK?

All the best news here: https://newsbotnet.com

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Done.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.