CSS and page background

N

Net5

In both Netscape and Firefox, the background jpg for the page isn't
displayed - in ie it works fine.
Am I doing something wrong??
SER
 
B

brucie

In alt.html Net5 said:
In both Netscape and Firefox, the background jpg for the page isn't
displayed - in ie it works fine.
Am I doing something wrong??

yes
 
M

Mark Parnell

Previously in alt.html said:
Am I doing something wrong??

Yes, you're not telling us the URL. You must have missed the memo that
crystal ball cleaning day has been moved to Thursdays.
 
N

Net5

Yes, you're not telling us the URL. You must have missed the memo that
crystal ball cleaning day has been moved to Thursdays.


Your right, here is a clip of the code in the css file showing the ulr
link.
 
R

rf


The word is you're. *Your* credibility is falling :)
right, here is a clip of the code in the css file showing the ulr
link.

<grin/>

And just where is that clip?

You really have to get your act together if you expect us to pay any
attention to you :)

BTW it is URL, not ulr.
 
T

Toby Inkster

Dylan said:
How does that differ from IE for Windows? ;)

The fact that IE for Windows is a lump of shite is more readily
believable, as most of us have experienced it at some point.
 
N

Net5

The word is you're. *Your* credibility is falling :)


<grin/>

And just where is that clip?

You really have to get your act together if you expect us to pay any
attention to you :)

BTW it is URL, not ulr.


Nit-pick, I'm not a professional like you, maybe you coiuld cut some
slack and help me solve the problem.

This is the section from the css file. According to my book, XHTML
Black Book, it is correct. W3C validates the XHTML and CSS code.
IE has no problem displaying the background correctly, Netscape and
Mozilla Firefox won't display the background image.

Do you know why????

body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
color: #000000;
text-decoration: none;
background-image: url(Images/pgbg.jpg);
background-color: #ffffff;
background-position: center;
background-repeat: repeat;
background-attachment: scroll; }
 
N

Neal

Net5 said:
This is the section from the css file. According to my book, XHTML
Black Book, it is correct.

Never heard of this book. Author?
W3C validates the XHTML and CSS code.
IE has no problem displaying the background correctly, Netscape and
Mozilla Firefox won't display the background image.

Do you know why????

body {
font-family: Verdana, Arial, Helvetica, sans-serif;

Why Verdana? Lose it, it's not suited for the WWW.
font-size: 12px;

Fonts in pixels are NOT suited for the web.
font-style: normal;

Why add this? Do you expect italics?
line-height: normal;
Again...

font-weight: normal;
font-variant: normal;
text-transform: none;

Again, again, again...
color: #000000;
text-decoration: none;
Again...

background-image: url(Images/pgbg.jpg);

Accoding to the specs this could also be:

background-image: url("Images/pgbg.jpg");

Have you tried it?
background-color: #ffffff;
background-position: center;

This puts the image dead center.
background-repeat: repeat;

And it repeats X and Y.
background-attachment: scroll; }

Try removing one or more of the background properties and see what
happens. Start, though, by adding quotes to the background-image value.
 
R

rf

Net5 said:
Nit-pick, I'm not a professional like you, maybe you coiuld cut some
slack and help me solve the problem.

Maybe you could actually *help* us to solve the problem for you.

Three people so far have asked you for the URL to the page in question. You
have still not supplied this. You will note that those three people have
ceased contributing to this thread. They will probably continue to do so
until the URL is forthcoming.

Without the URL any sort of "answer" will be pure guesswork.. Supplying a
snippit of CSS that may or may not have been copy/pasted correctly is not
good enough. The error may be, and probably is, elsewhere.

That said however, I usually put "s around the url in the background-image.
So do most of the examples in the specification.
 
K

Kris

Net5 said:
This is the section from the css file. According to my book, XHTML
Black Book, it is correct. W3C validates the XHTML and CSS code.
IE has no problem displaying the background correctly, Netscape and
Mozilla Firefox won't display the background image.
background-image: url(Images/pgbg.jpg);

Is the file path correct? Thought of lowercase/uppercase differences?
You know of course that any file referenced to from the CSS file has
it's path start from where the CSS file is located, not where the
document is located that calls for the CSS file.

So in the following setup...

/index.html
/css/main.css
/images/pgbg.jpg

...the correct path from the main.css to the image would be
.../images/pgbg.jpg or /images/pgbg.jpg.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top