andy_enuff wrote:
All
New to the forum so bear with me. Hope you're all good.
My site www.enuffsaid.com uses a stylesheet to define the styles for
the majority of the pages. To partially protect some of the larger
images i use a seperate dynamically generated stylesheet to change the
background image of a cell that also contains a transparent gif as the
cell contents. Easy to get round but stops the casual cut-and-paster.
My problem is this - in internet explorer the background image displays
fine, in firefox, it seems to depend which stylesheet i include first.
Is this expected behaviour? should i only be using one stylesheet by
the rules of css?
I'm on the page whose URL is
http://www.enuffsaid.com//gallery.ph...e=IMG_6595.jpg
In the source code for that page, there is one LINK tag that doesn't
exist on the preceding pages. It reads:
<link rel=stylesheet type=text/css
href=/gallery.php?action=css&event=744&image=IMG_6595.jp g title=MyCSS/>
It's good practice always to use double quotes (single quotes work too,
but double quotes are more common) around attributes, and required when
the attribute contains any character other than letters, digits,
hyphens, underscores, colons, and periods. The HREF attribute above is
no good, and I suspect Firefox is ignoring it. Try quotes and see what
happens.
By the way, you don't need to have both background and background-image
properties. Just use background-image. The aggregate "background"
property is for convenience if you would otherwise by setting more than
one of the individual background properties.