This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > July 2007 > How do you turn off all styling within a div
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How do you turn off all styling within a div
|
|
| Momomo 2007-07-15, 10:17 pm |
| Hi,
I am having a problem with a control which is caused by a style on the
page which I am not able to trace. If I use the control in a page
without any styling it looks ok. Is there a way to remove/turnoff all
CSS styling inside a div?
| |
|
| Momomo wrote:
> Hi,
>
> I am having a problem with a control which is caused by a style on the
> page which I am not able to trace. If I use the control in a page
> without any styling it looks ok. Is there a way to remove/turnoff all
> CSS styling inside a div?
I think you are going to have to provide a link to a page, and try
explaining your problem a little more clearly.
There could be color, background-color, border, margin, padding and a
slew of other declarations on your DIV.
Perhaps remove the ID (#), class (.[class name]), or DIV declaration?
To disable CSS in general, you need only remove the declarations or if
using Firefox, you could install an extension that disables styles on
all objects.
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
| |
| dorayme 2007-07-16, 3:16 am |
| In article
<1184551266.907130.52890@d55g2000hsg.googlegroups.com>,
Momomo <le_mo_mo@yahoo.com> wrote:
> Hi,
>
> I am having a problem with a control which is caused by a style on the
> page which I am not able to trace. If I use the control in a page
> without any styling it looks ok. Is there a way to remove/turnoff all
> CSS styling inside a div?
Depends what you are talking about, for your own pleasure or
authoring for others?
I will assume authoring since this is more on topic for this
group. And I have always been a big stickler for protocol on this
matter.
For literally "turning off" all styling for a particular element
we need to discuss the idea of turning off all styling for the
whole of the html first.
When you supply no css at all, just html with no inline styles
either, the page will get some minimal styling from a style sheet
that is supplied automatically as default by the browser.
Different browsers will supply different css sheets. So by
supplying no styling you will not succeed to have your viewers
have no styling. They will get a no-frills one. Perhaps this is
what you likethe look of in small doses?
If you want to recommend a plain style to all or some of your
html, then go ahead and supply it with css. CSS is capable of
supplying a plain look as well as fancy. It is not essentially
for fancy. (Make up artists on film sets go to a lot of trouble
to make essentially glamorous women look plain on occasions).
If you want a particular div to have a certain look, a plain one,
then style it to have that look. Without any url, best not to
discuss this matter further.
--
dorayme
| |
| Jukka K. Korpela 2007-07-16, 6:17 am |
| Scripsit Momomo:
> I am having a problem with a control which is caused by a style on the
> page which I am not able to trace.
Use proper tools then, such as Firefox Web Developer Extension or Firebug.
Alternatively, start from an unstyled version and add pieces of CSS code at
a time, until the problem emerges. Then you know pretty well which addition
triggered it.
To get more specific answers, ask a more specific question. Hint: URL.
> Is there a way to remove/turnoff all
> CSS styling inside a div?
No, and that would be a wrong approach anyway.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
| |
| Osmo Saarikumpu 2007-07-17, 10:17 pm |
| -Lost wrote:
> To disable CSS in general, you need only remove the declarations or if
> using Firefox, you could install an extension that disables styles on
> all objects.
That would be overkill for the matter in hand, as FF has this function
incorporated: View --> Page Style --> No Style. On the other hand, the
Web Developer extension¹ has also an option to disable browser default
styles and much more.
Osmo
¹ http://chrispederick.com/work/web-developer/
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|