473,480 Members | 3,021 Online
Bytes | Software Development & Data Engineering Community
Create 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 1806
Stan Brown wrote:
In article <Op*******************@rwcrnsc52.ops.asp.att.net > in
comp.infosystems.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$Oz4.58891@rwcrnsc54> in
comp.infosystems.www.authoring.stylesheets, Brian
<us*****@mangymutt.com.invalid-remove-this-part> wrote:
Stan Brown wrote:
In article <Op*******************@rwcrnsc52.ops.asp.att.net > in
comp.infosystems.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="something">.
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,
preventing 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="something">.


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="something". 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
2850
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...
14
6589
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"...
5
2262
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...
2
1985
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...
3
1376
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...
2
1624
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
2040
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...
6
2538
by: _Who | last post by:
I use the code below to change to a style sheet that has: body { ....
4
2998
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...
0
7060
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
7022
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
5365
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,...
1
4799
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...
0
4501
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...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
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...

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.