473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

2 Style sheets for one page


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? You can see where this happens on the site by going
to the gallery and then to any set of thumbnails and then clicking on a
thumbnail. In IE it displays fine with the table cell CSS inclded first
, then the page css, but in firefox the image display but the style for
the whole rest ofthe page is mising. Obviously if i swap it around i get
a page style but no image. Any ideas?
--
andy_enuff
------------------------------------------------------------------------
andy_enuff's Profile: http://www.highdots.com/forums/m1404
View this thread: http://www.highdots.com/forums/t3077232

Nov 8 '05 #1
2 1607
Once upon a time *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? You can see where this happens on the site by going
to the gallery and then to any set of thumbnails and then clicking on a
thumbnail. In IE it displays fine with the table cell CSS inclded first
, then the page css, but in firefox the image display but the style for
the whole rest ofthe page is mising. Obviously if i swap it around i get
a page style but no image. Any ideas?


Sorry, I'm on 10 mbit connection and still your pages loads veeeery
slow. So I don't have the patience to wait for them and see the problem.

--
/Arne
-- *Joke of the day* ----------------------------------------
Tech Support: Your password is the small letter a as in apple,
a capital letter V as in Victor, the number 7.
Customer: Is that 7 in capital letters?
-------------------------------------------------------------
Nov 8 '05 #2
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.
Nov 8 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style...
2
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but...
3
by: Phil Thompson | last post by:
does it matter in which order i place different style sheets i.e. <link rel="stylesheet" type="text/css" media="screen" href="style/screen.css" /> <link rel="stylesheet" type="text/css"...
10
by: Charles Crume | last post by:
Hello; I'm new here, so please excuse me if this posting is not appropriate. I have a basic style sheet "sheet1" for all my pages, and a secondary style sheet "sheet2" that overrides a couple...
12
by: relaxedrob | last post by:
Hi All! I have a page with with the following style information: <link rel="stylesheet" type="text/css" href="/eEmployment/eTech.css" /> <style type="text/css"> DIV.Application {...
4
by: Wintersrush | last post by:
I am working on a website that is using a Cascading Style Sheet. I've created the primary webpages and .css page. The format is the same throughout the entire website EXCEPT the color of the...
3
by: Rob Nicholson | last post by:
This is a question about the following KB article: http://support.microsoft.com/kb/q262161 We've got a problem with the Infragistics NetAdvantage presentation controls which they've suggested...
9
by: Radium | last post by:
Cascading Style Sheet is an extreme hazard to your privacy. It allows others on the internet to see your monitor and files. It allows them to copy images on your monitor to their computers. It...
1
by: mscertified | last post by:
Can anyone explain how references to style sheets work, I've exhausted looking in help, its all so confusing. I have three style sheets in my project under 'Style Sheets'. Only the first style...
5
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a machine running IIS 6.0. I just replaced the web.config and several aspx pages in the application and now the style sheets are not working. the images from the themes work but not the css...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.