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:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
Second to none...
So far the services you provide are second to none. Keep up the good work.
Andy

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.