bug hunt

S

SpaceGirl

mark | r said:
for some reason when you view my site in firefox the style sheet background
isnt applied. anyone know why?

www.neue.co.uk

mark

Hmm you @import is commented out... the stylesheet is not getting loaded
perhaps? I dunno it's odd. Doesn't work in Mozilla either, but is fine in
IE.
 
E

Els

mark said:
for some reason when you view my site in firefox the style sheet background
isnt applied. anyone know why?

www.neue.co.uk

Your stylesheet is loaded (check disabling it, much
different), but your background shorthand property is
defined wrong.

You have:
background:url(images/bg.jpg) top middle no-repeat #0B1845;
Should be:
background:url(images/bg.jpg) top center no-repeat #0B1845;
 
S

Steve Pugh

mark | r said:
for some reason when you view my site in firefox the style sheet background
isnt applied. anyone know why?

www.neue.co.uk

Oi! Stop changing the stylesheet straight after posting. How we meant
to help you if you keep changing things? Make a backup and post that
URL if you're going to keep on fiddling with the main version.

Your whole background property is being ignored by all Gecko based
browsers. This is because it contains an invalid value (this can be
anywhere in the property, not just in the image part).
background:url(images/bg.jpg) top middle no-repeat #0B1845;

Have a look at
http://www.w3.org/TR/CSS2/colors.html#propdef-background-position

BTW, why are you loading the same style sheet twice?
<link href="nmd.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
@import url("nmd.css");
-->
</style>


cheers,
Steve
 
M

mark | r

for some reason when you view my site in firefox the style sheet
background
isnt applied. anyone know why?

never mind, i sorted it out, Moz doesnt like CSS shorthand.

mark
 
S

SpaceGirl

Els said:
Your stylesheet is loaded (check disabling it, much
different), but your background shorthand property is
defined wrong.

You have:
background:url(images/bg.jpg) top middle no-repeat #0B1845;
Should be:
background:url(images/bg.jpg) top center no-repeat #0B1845;

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Doh... I missed that too
 
M

m

mark said:
for some reason when you view my site in firefox the style sheet
background isnt applied. anyone know why?

www.neue.co.uk

mark

It's showing up under both Mozilla and Konqueror. It is odd that you have
the same stylesheet both linked and imported:
______________________________
<link href="nmd.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
@import url("nmd.css");
-->
</style>
______________________________

Don't know that this is strictly illegal, but it might confuse
some browsers.
 
M

mark | r

thanks steve

for some reason i have a delay of several hours before i even get to see my
original message, nevermind any replies

mark
 
S

Steve Pugh

mark | r said:
which method is correct link or import?

Both.

If you want the maximum number of browser to see you stylesheet the
link to it.

If you want to rule out NN4 and a few other antiques then import it.

(Hence linking to a basic stylesheet and importing a more complex one
is a common practice.)

But there are several variations on the import syntax.

@import "nms.css";
@import 'nms.css';
@import url(nms.css);
@import url("nms.css");
@import url('nms.css');

are all equivalent but some browser support some forms but not others
(various versions of Mac IE seem to be the worst culprits) and so some
people use imports with specific syntax to hide stylesheets from
specific browsers.

By linking and importing the same stylesheet you weren't achieving
anything that simply linking to it would (except possibly triggering
bugs in individual browsers; I think WebTV has a nasty one that you
would have triggered).

Steve
 
S

Sid Ismail

: thanks steve
:
: for some reason i have a delay of several hours before i even get to see my
: original message, nevermind any replies


Buy a quartz watch.

Sid
 

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

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top