GetDotted Domains

Viewing Thread:
"CSS body being ignored"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Thu 21/02/08 at 10:48
"nitrogoat.co.uk"
Posts: 76
Hi,
My page loads an external style sheet, all of which works well and so i know it is being loaded properly. The only problem is that i cannot get anything in the BODY {

}


to work properly.
In order to get my page's background to show i have to add this css to the html source of my page, and so i know i haven't made any errors. I.e the link to the background is correct-


body
{ background-image: url("/images/background.jpg");
}


This problem seems to occur for anything i include in the BODY tag as i have also set the default font for my webpage in this tag. It works when the CSS is included directly on the page, but not when loaded externally.

Please help!
Thu 21/02/08 at 11:02
Regular
Posts: 791
That sounds pretty odd. You can use the !important rule which should overrule any styling being set elsewhere.

For example, in your external stylesheet:

body {
background-image: url("/images/background.jpg") !important;
}

Finding the cause and fixing that is probably a better solution though.
Thu 21/02/08 at 10:48
"nitrogoat.co.uk"
Posts: 76
Hi,
My page loads an external style sheet, all of which works well and so i know it is being loaded properly. The only problem is that i cannot get anything in the BODY {

}


to work properly.
In order to get my page's background to show i have to add this css to the html source of my page, and so i know i haven't made any errors. I.e the link to the background is correct-


body
{ background-image: url("/images/background.jpg");
}


This problem seems to occur for anything i include in the BODY tag as i have also set the default font for my webpage in this tag. It works when the CSS is included directly on the page, but not when loaded externally.

Please help!

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

The coolest ISP ever!
In my opinion, the ISP is the best I have ever used. They guarantee 'first time connection - everytime', which they have never let me down on.
I've been with Freeola for 14 years...
I've been with Freeola for 14 years now, and in that time you have proven time and time again to be a top-ranking internet service provider and unbeatable hosting service. Thank you.
Anthony

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.