
July 24th, 2005, 12:56 AM
| | | style to remove all styles
Hi,
Is there any way to apply a style that will effectively block the
application of any applied or inherited styles for that object and any
contained objects?
E.g.,
CSS:
P {backgro...}
DIV P{font-f...}
....
..removeStyles{styles:clear}
HTML:
<div class="removeStyles">
<p>No styles on this!</p>
</div>
Setting the style for .removeStyles to {} does not do it.
TIA
Chandy | 
July 24th, 2005, 12:56 AM
| | | Re: style to remove all styles
Chandy <chandy@totalise.co.uk> wrote:
[color=blue]
> Hi,
>
> Is there any way to apply a style that will effectively block the
> application of any applied or inherited styles for that object and
> any contained objects?[/color]
No. (I've thought about this feature too actually).
--
David Håsäther | 
July 24th, 2005, 12:56 AM
| | | Re: style to remove all styles chandy@totalise.co.uk (Chandy) wrote:
[color=blue]
> Is there any way to apply a style that will effectively block the
> application of any applied or inherited styles for that object and
> any contained objects?[/color]
No. And it wouldn't be HTML. It would be CSS, which is discussed in our
sister group c.w.i.a.stylesheets.
[color=blue]
> .removeStyles{styles:clear}[/color]
You really need to read a tutorial on CSS first. You can't just invent
constructs as you go and expect browsers to read your mind.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html | 
July 24th, 2005, 12:56 AM
| | | Re: style to remove all styles
"Chandy" <chandy@totalise.co.uk> wrote in message
news:5af0375a.0503250409.69a13e27@posting.google.c om...[color=blue]
> Hi,
> Is there any way to apply a style that will effectively block the
> application of any applied or inherited styles for that object...[/color]
Yes, by applying a new style of your choice that overriddes the existing
style.
[color=blue]
> ...and any
> contained objects?[/color]
If I understand your definition of contained objects then to the best of my
knowledge the answer is no.
Lets say you applied a style to all divs on your page. Then you apply an
override style to a particuliar div. If you then insert a new div within
that div it will inherit the style that was originally applied to all divs
and ignore the style of the div it is contained within. Clear as mud right?
Signed,
me
[color=blue]
> E.g.,
>
> CSS:
> P {backgro...}
> DIV P{font-f...}
> ...
> .removeStyles{styles:clear}
>
> HTML:
> <div class="removeStyles">
> <p>No styles on this!</p>
> </div>
>
> Setting the style for .removeStyles to {} does not do it.
>
> TIA
>
> Chandy[/color] | 
July 24th, 2005, 12:57 AM
| | | Re: style to remove all styles
Chandy wrote:[color=blue]
>
> Hi,
>
> Is there any way to apply a style that will effectively block the
> application of any applied or inherited styles for that object and any
> contained objects?[/color]
[example snipped]
I have a toolbar button on my Mozilla browser (via the PrefBar
extension) that eliminates all CSS from the current Web page that
I'm viewing. This is very handy when I want to test one of my own
Web pages to see how it might look on a browser that does not have
CSS support. To restore CSS for the affected page, I merely reload
the page.
Behind that button is the following script:
javascript:
for(i=0;i<document.styleSheets.length;i++)
{void(document.styleSheets.item(i).disabled=true); }
el=document.getElementsByTagName('*');
for(i=0;i<el.length;i++)
{void(el[i].style.cssText='');}
--
David E. Ross
<URL:http://www.rossde.com/>
I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>. | 
July 24th, 2005, 12:57 AM
| | | Re: style to remove all styles
David Ross wrote:[color=blue]
> Chandy wrote:
>[color=green]
>>Hi,
>>
>>Is there any way to apply a style that will effectively block the
>>application of any applied or inherited styles for that object and any
>>contained objects?[/color]
>
>
> [example snipped]
>
> I have a toolbar button on my Mozilla browser (via the PrefBar
> extension) that eliminates all CSS from the current Web page that
> I'm viewing. This is very handy when I want to test one of my own
> Web pages to see how it might look on a browser that does not have
> CSS support. To restore CSS for the affected page, I merely reload
> the page.
>[/color]
Why an extension? Firefox has Tools --> Page Style --> No Style, though
I preferred versions < 1.x which had a stylesheet switcher in the lower
left-hand corner.
Mozilla not have the same thing? Seems strange. | 
July 24th, 2005, 12:57 AM
| | | Re: style to remove all styles
"Peter1968" wrote in comp.infosystems. www.authoring.html:[color=blue]
>Firefox has Tools --> Page Style --> No Style, though
>I preferred versions < 1.x which had a stylesheet switcher in the lower
>left-hand corner.
>
>Mozilla not have the same thing? Seems strange.[/color]
It's View -> Use Style, but "no style" isn't an option. I wonder
what would happen if I had a user stylesheet with no styles in my
Chrome directory, whether that one would then be an option in View
-> Use Style.
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/ | 
July 24th, 2005, 12:57 AM
| | | Re: style to remove all styles
Peter1968 wrote:[color=blue]
> David Ross wrote:[color=green]
>> Chandy wrote:[/color][/color]
[color=blue][color=green][color=darkred]
>>>Hi,[/color][/color][/color]
[color=blue][color=green][color=darkred]
>>>Is there any way to apply a style that will effectively block the
>>>application of any applied or inherited styles for that object and any
>>>contained objects?[/color][/color][/color]
[color=blue][color=green]
>> [example snipped][/color][/color]
[color=blue][color=green]
>> I have a toolbar button on my Mozilla browser (via the PrefBar
>> extension) that eliminates all CSS from the current Web page that
>> I'm viewing. This is very handy when I want to test one of my own
>> Web pages to see how it might look on a browser that does not have
>> CSS support. To restore CSS for the affected page, I merely reload
>> the page.[/color][/color]
[color=blue]
> Why an extension? Firefox has Tools --> Page Style --> No Style, though
> I preferred versions < 1.x which had a stylesheet switcher in the lower
> left-hand corner.[/color]
Why not the Web Developer extension? Lots of tools; if you've not
checked it out, you might find it interesting.
--
Blinky Linux Registered User 297263
Who has implemented Usenet Solution #45933:
Now killing all posts originating at Google Groups | 
July 24th, 2005, 12:57 AM
| | | Re: style to remove all styles
[color=blue]
>
> Why an extension? Firefox has Tools --> Page Style --> No Style, though[/color]
Make that View --> Page Style --> No Style.
My mistake. |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|