473,546 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OT user stylesheet selector - Moz

Not really on topic, but it's interfering with my development a bit.
I'm using Moz 1.3/Win 2k, and have the following declaration in my
user style sheet.

body.home[onload] {
min-width: 90% !important ;
font-size: 100% !important ;
}

It's there to defeat the machinations of a certain dev site, and it
works great. However, it is affecting other pages, too, preventing me
from ensuring flexibility in my sites. I thought the rule would only
apply to the body element whose class was "home" and whose onload
attribute was set. But it is affecting the min-width on
www.julietremblay.com, where neither onload nor class are set (but id
is assigned "main"). Any ideas why?

--
Brian
follow the directions in my address to email me

Jul 20 '05 #1
3 1812
Stan Brown wrote:
In article <Op************ *******@rwcrnsc 52.ops.asp.att. net> in
comp.infosystem s.www.authoring.stylesheets, Brian wrote:
It's there to defeat the machinations of a certain dev site, and
it works great. However, it is affecting other pages, too,
preventing me from ensuring flexibility in my sites.

body.home[onload] {
min-width: 90% !important ;
font-size: 100% !important ;
}


Maybe it's a failure of imagination on my part, but why ever would
you have a problem with either of those -- other than on grounds
of redundancy, of course.


I don't quite understand your question. If you mean, why would I need
them in my user stylesheet, it's to defeat a font-size: .8em and a
fixed width layout on the netscape devedge site.

If you mean, why would that cause problems with my own development,
it's because I was testing a thumbnail gallery which did not collapse
in as it should have. It took a bit of playing around before I
realized that it was my user stylesheet that was causing it. Not a
huge problem, but I want to see my sites more or less as others see them.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
In article <got3b.221969$O z4.58891@rwcrns c54> in
comp.infosystem s.www.authoring.stylesheets, Brian
<us*****@mangym utt.com.invalid-remove-this-part> wrote:
Stan Brown wrote:
In article <Op************ *******@rwcrnsc 52.ops.asp.att. net> in
comp.infosystem s.www.authoring.stylesheets, Brian wrote:
It's there to defeat the machinations of a certain dev site, and
it works great. However, it is affecting other pages, too,
preventing me from ensuring flexibility in my sites.

body.home[onload] {
min-width: 90% !important ;
font-size: 100% !important ;
}
Maybe it's a failure of imagination on my part, but why ever would
you have a problem with either of those -- other than on grounds
of redundancy, of course.


Bad phrasing, sorry. What I meant to say was: How would specifying
either of those ever create a problem? I just can't think of a
scenario where min-width: 90% or font-size: 100% on <body> would
break anything that wasn't already badly broken, let alone on <body
class="home" onload="somethi ng">.
If you mean, why would that cause problems with my own development,
it's because I was testing a thumbnail gallery which did not collapse
in as it should have. It took a bit of playing around before I
realized that it was my user stylesheet that was causing it.


Now it's my turn to say I don't understand. :-) Maybe this isn't
worth pursuing -- I understand you're not asking for help on this
point, and I have none to offer. I'm curious because I think I might
learn something.

--
Stan Brown, Oak Road Systems, Cortland 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/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
Stan Brown wrote:
Brian wrote:

It's there to defeat the machinations of a certain dev site, and
it works great. However, it is affecting other pages, too,
preventin g me from ensuring flexibility in my sites.

body.home[onload] {
min-width: 90% !important ;
font-size: 100% !important ;
}


How would specifying
either of those ever create a problem? I just can't think of a
scenario where min-width: 90% or font-size: 100% on <body> would
break anything that wasn't already badly broken, let alone on <body
class="home" onload="somethi ng">.


So, there I am working on a gallery of thumbnails, e.g.

< http://www.julietremblay.com/portfolio/b.html >

(See other posts in ciwas. No, really, see them. And help me! lol)
I wanted to make sure that, as I narrowed the window, the gallery
would shrink in width with it. But no! It started to collapse, and
then froze, and the dreaded horizontal scrollbar appeared. "Why'd
that show up?" I wondered. Off to the bat lab. I looked at my code,
and couldn't see any reason why the gallery wasn't collapsing in
Mozilla 1.3. After some time, I thought I'd better look at my user
style sheet. And there is a min-width on body, but it should only
affect body class="home" onload="somethi ng". On the gallery page,
neither of those attributes are set; thus, it should not affect it.
And yet.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4

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

Similar topics

9
2854
by: Richard Silverstein | last post by:
I was hoping someone more expert in css could help me w. a problem I'm having w. a stylesheet I've created for a Pbase photo site. My site is at http://www.pbase.com/richards1052. Currently, it displays a white background color. I've set in the stylesheet that the color should be navy or #00080 (perhaps I didn't set this in the proper...
14
6595
by: theo | last post by:
if I have nested div combinations, can I call for styles only to specific nested combos? It's 3 lists <li>, on one page, needing different styles. <div id=list1><li> <a id="t1" href=...>main</a></li><div> <div id=list2><li> <a id="t1" href=...>main</a></li><div> <div id=list3><li> <a id="t1" href=...>main</a></li><div>
5
2272
by: aamirghanchi | last post by:
Hi, I have a very simple html that has a linked stylesheet. According to the style sheet both blocks of text should be displayed in the font xx-small. but only one (DIV or SPAN) at a time is displayed in this font and that would be the one that is at the end of the stylesheet file. for example if DIV selector is the last block in...
2
1997
by: Mr X | last post by:
I'm a few weeks new to JS, and am having a problem. I have a simple INTERNAL style in a web page and I know that style is working. The problem arises when I try to run a script that changes one of that style's properties. The style is... -------------------------------------------------- ..xtable, .xtable TD, .xtable TH {...
3
1382
by: Doug Laidlaw | last post by:
I am in the process of converting a page with nested tables to CSS. The current page is at http://www.douglaidlaw.net./boykett/history.html. So far, it is using a page-wide stylesheet to set fonts only. I want this page to be followed by others with identical layout for successive "chapters." In each page, I would like a different image to...
2
1633
by: J055 | last post by:
Hi I'm adding rules dynamically to the HtmlHead.StyleSheet using the CreateStyleRule method. I'd like to know how to check whether the rules already exist first. Thanks Andrew
1
2043
by: Jeff | last post by:
Often, a page will have more than one stylesheet. Some external and some embedded. If there are multiple rules that have *identical* selectors, will the last one always take precedence? Any known instances where this is not true? #section_1 DIV{color: red} ^^^^^^^^^^^^^^ By selector I meant that part. And I mean identical selectors.
6
2542
by: _Who | last post by:
I use the code below to change to a style sheet that has: body { ....
4
3005
by: Steven Simpson | last post by:
Stefan Ram wrote (in "More than one language in a page"): Is this a new trend of user-agent writers (Microformats, and now Google) staking claims on the @class namespace? I'm surely not the only one disturbed by this. Somehow, an author publishing on the web, with no control over which user agents will access his page, has to avoid...
0
7504
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7435
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7694
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7461
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7792
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.