473,395 Members | 1,629 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,395 software developers and data experts.

nested style sheets

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 of things for some pages. I have the
following stylesheet links in the head section of a page:

<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera. I have searched
google, but have not found an answer.

Can anyone explain what I am missing?

TIA.

Charles...


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.726 / Virus Database: 481 - Release Date: 7/22/04
Jul 20 '05 #1
10 7337
*Charles Crume* <cc@charlescrumesoftware.com>:

<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera.


You have to use identical 'title' attributes to achieve what you want.

--
"What this country needs is more free speech worth listening to."
Hansell B. Duckett
Jul 20 '05 #2
Charles Crume wrote:
<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera.

Can anyone explain what I am missing?


Not without a url. Wild guess: the .css files are not served as
text/css as they are supposed to be. But new versions of Mozilla/Opera
break the spec and sniff the content for css, so that may not be the
case. And that's all the guessing I'm prepared to do.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
Charles Crume wrote:
<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera. I have searched
google, but have not found an answer.

Can anyone explain what I am missing?


The fact that IE has more bugs than an exterminator's hit list.

Seriously, any time other browsers do the same thing, and IE does something
different, that's usually indicative of a bug in IE. As another poster
alluded, it's likely your CSS isn't being served as text/css; if it is not,
then it's not CSS as far as a standards compliant browser is concerned.

--
Shawn K. Quinn
Jul 20 '05 #4
Charles Crume wrote:
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 of things for some pages. I have the
following stylesheet links in the head section of a page:

<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera. I have searched
google, but have not found an answer.

Can anyone explain what I am missing?


Your different stylesheet titles are causing the real browsers to
interpret them as alternate stylesheets. You'll probably find a little
icon at the LHS of Mozilla's status bar which will allow you to choose
one or the other.

--
Mark.
Jul 20 '05 #5
Mark Tranchant wrote:
Charles Crume wrote:
<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">


Your different stylesheet titles are causing the real browsers to
interpret them as alternate stylesheets. You'll probably find a little
icon at the LHS of Mozilla's status bar which will allow you to choose
one or the other.


In what mozilla build do you see this icon?

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #6
kchayka wrote:
Mark Tranchant wrote:

Your different stylesheet titles are causing the real browsers to
interpret them as alternate stylesheets. You'll probably find a
little icon at the LHS of Mozilla's status bar which will allow
you to choose one or the other.


In what mozilla build do you see this icon?


I think it's unique to Firefox. I have it in Firefox 0.8, but I've
never seen it in Mozilla's "Seamonkey" application suite.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #7
Charles Crume wrote:
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 of things for some pages. I have the
following stylesheet links in the head section of a page:

<link rel="stylesheet" type="text/css" href="sheet1.css" title="sheet1">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="sheet2">

This works just fine in IE, but not in Mozilla or Opera. I have searched
google, but have not found an answer.

Can anyone explain what I am missing?


To combine multiple/partial style sheets into one, set the TITLE
attribute, taking one and the same value to the LINK element. The
combined style will apply as a preferred style, e.g.:
<link rel="stylesheet" type="text/css" href="sheet1.css" title="comb">
<link rel="stylesheet" type="text/css" href="sheet2.css" title="comb">

--
Gus
Jul 20 '05 #8
kchayka <us****@c-net.us> wrote in news:2m************@uni-berlin.de:
Mark Tranchant wrote:
Charles Crume wrote:
<link rel="stylesheet" type="text/css" href="sheet1.css"
title="sheet1"> <link rel="stylesheet" type="text/css"
href="sheet2.css" title="sheet2">


Your different stylesheet titles are causing the real browsers to
interpret them as alternate stylesheets. You'll probably find a
little icon at the LHS of Mozilla's status bar which will allow you
to choose one or the other.


In what mozilla build do you see this icon?


It's in Firefox. In Mozilla, you can use
'View > Use Style' to accomplish the same thing,
switching stylesheets.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #9

"Charles Crume" <cc@charlescrumesoftware.com> wrote in message
news:GC**************@fe2.columbus.rr.com...
I have a basic style sheet "sheet1" for all my pages, and a secondary style sheet "sheet2" that overrides a couple of things for some pages. I have the following stylesheet links in the head section of a page:


[snip]

Thanks to all!!

The problem was, as pointed out by some, that I was using two different
titles. I am using "Cascading Style Sheets - The Definitive Guide" (c) 2000
as a reference and misunderstood the information on page 13 regarding titles
and alternate style sheets.

Many thanks for the help.

Charles...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.726 / Virus Database: 481 - Release Date: 7/22/04
Jul 20 '05 #10
"Charles Crume" <cc@charlescrumesoftware.com> wrote in
comp.infosystems.www.authoring.stylesheets:
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.726 / Virus Database: 481 - Release Date: 7/22/04


Any way you can delete this ad from your signature?

(And you're not sending mail, you're posting articles.)

Anyway, even as an ad it's silly: anybody who is stupid enough to
believe a statement, in an e-mail, that the e-mail is virus free --
well, they deserve what they get.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #11

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

Similar topics

4
by: Gaz | last post by:
Hi, I need to have a table nested within another table. The tables are alongside each other visually speaking, and the nested table (on the right) can vary in size. My problem is that when the...
1
by: boris bass | last post by:
Below is linenumbered as well as original code -------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type...
3
by: Aaron | last post by:
Hi, I'm trying to use style sheets instead of tables for layout, but I'm not sure on how to do something... I have a div (100% width) containing 3 other divs. Each needs to be lined up next to...
5
by: Roedy Green | last post by:
I generate code to refer people to bookstores that generates a table without internal borders. You can see an example on http://mindprod.com/environment/kyoto.html I can use this element nested...
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 {...
12
by: Jarno Suni | last post by:
I want a device to use styles given for media type handheld and not the styles given for media type screen, if the device supports media types handheld and screen. Is it possible without writing...
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
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.