Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / August 2003



Tip: Looking for answers? Try searching our database.

OT user stylesheet selector - Moz

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian - 27 Aug 2003 23:38 GMT
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?

Signature

Brian
follow the directions in my address to email me

Stan Brown - 28 Aug 2003 18:25 GMT
In article <Opa3b.115953$2x.32101@rwcrnsc52.ops.asp.att.net> in
comp.infosystems.www.authoring.stylesheets, Brian
<usenet1@mangymutt.com.invalid-remove-this-part> wrote:
>body.home[onload] {
>   min-width: 90% !important ;
[quoted text clipped - 3 lines]
>works great.  However, it is affecting other pages, too, preventing me
>from ensuring flexibility in my sites.

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.

Signature

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/

Brian - 28 Aug 2003 21:14 GMT
>> It's there to defeat the machinations of a certain dev site, and
>> it works great.  However, it is affecting other pages, too,
[quoted text clipped - 8 lines]
> 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.

Signature

Brian
follow the directions in my address to email me

Stan Brown - 29 Aug 2003 07:27 GMT
In article <got3b.221969$Oz4.58891@rwcrnsc54> in
comp.infosystems.www.authoring.stylesheets, Brian
<usenet1@mangymutt.com.invalid-remove-this-part> wrote:

>>> It's there to defeat the machinations of a certain dev site, and
>>> it works great.  However, it is affecting other pages, too,
[quoted text clipped - 8 lines]
>> 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.

Signature

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/

Brian - 30 Aug 2003 07:21 GMT
>>>>It's there to defeat the machinations of a certain dev site, and
>>>>it works great.  However, it is affecting other pages, too,
[quoted text clipped - 10 lines]
> 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.

Signature

Brian
follow the directions in my address to email me

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.