CSS style sheet question

RabeaticSquirrel

Senior member
Apr 11, 2000
365
0
0
Below is my code for an upcoming site. I will be using a true style sheet. None of that inline junk. Heres the problem...when I load the first page, my background image won't load even though it's in the same directory. If it were written correctly...it should apply the background image (here it is background.jpg) to every page on the site. Also note, I've added the Link tag on every page so far in place of the <head></head> elements. Everything else works like a charm...everything except the background. I've tried every possible syntax immaginable, obviously, except for the right one. Can anyone tell me what the problem is?

<style type="text/css">

<!--
.frst {font-family: Arial; color: #DED834; font-size: 20pt; text-align: center;}

BODY { background-image: background.jpg }

A:link {text-decoration: blink; color: #F8BEF7; }

A:visited { text-decoration: blink; color: #F8BEBE; }
-->

</style>

 

DrMoreau

Banned
Dec 1, 2001
266
3
0
Here's how to get the background image to work:

background-image:url(background.jpg);

see what you were missing now?

you can also include these attributes to control the bg image:

background-attachment:fixed;
background-repeat:no-repeat;
background-position: top right;}

hope that helps.

BTW: just curious as to why you referred to inline scripting as "None of that inline junk."
I prefer to use external style sheets too, but I can see where inline would have it's uses. I've read that some servers don't allow for external scripting files. And sometimes I've used inline scripting when there wasn't enough style sheet properties being used to really warrent an external file. Sometimes it's easier to just place a few snippets of css into the header of the document.
 

RabeaticSquirrel

Senior member
Apr 11, 2000
365
0
0
Good point. But from what I can tell, most of the push from the "education" and "market" sides respectively are to embed style sheets. Plus, with my personal use, I prefer external embeds over inline hands down. Seems to me like a redundant waste of time to use both in my opinion. Plus...taking on the attributes of a C++ guy, the re-use of code is MUCH easier with an external file. You make one, and viola, you're all set. Plus as times goes on, you do 1 site, then another, and another, and before you know it, you've got a 5 MB CSS external file. Honestly, I was spouting off at the mouth. If you're constructing a simple page, it would behoove you to use inline scripting rather than fool with an external file. MHO of course...

Thx for the help by the way...
 

DrMoreau

Banned
Dec 1, 2001
266
3
0
Okay I see your point. I have plenty of similar rants about the web design world as well. And "the re-use of code is MUCH easier with an external file. You make one, and viola, you're all set," is exactly why I like using external css!
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |