Re: [css-d] New Member: wild card question

2009-03-21 Thread Gunlaug Sørtun
Dave Miers wrote:

> I often use a * {margin: 0; padding: 0; border: 0; } as a starting 
> point and for the most part saves me lots of extra css code, 
> headaches, and time for layout with great cross browser/platform 
> support. However  sometimes when entering content in what is 
> basically a template it would be nice to restore the defaults for 
> just one div, is there anyway to stop this from affecting a 
> particular div?

You can use the CSS3 negation pseudo-class to that effect...

...but it won't work in any version of IE - yet.

Wouldn't be wise to use it anyway, since the defaults you want to keep
varies a bit (too much IMO) across browser-land. Better declare what you
want, where you want it.

regards
Georg
-- 
http://www.gunlaug.no
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] New Member: wild card question

2009-03-21 Thread David Laakso
Dave Miers wrote:
> I'm new here, although I did chime in on a couple of questions. My  
> name is Dave and look forward to honing my css skills.
>   

Welcome!
> I often use a * {margin: 0; padding: 0; border: 0; } as a starting  
> point and for the most part saves me lots of extra css code,  
> headaches, and time for layout with great cross browser/platform  
> support. However  sometimes when entering content in what is basically  
> a template it would be nice to restore the defaults for just one div,  
> is there anyway to stop this from affecting a particular div?


Not sure I get all this but, anyway...

Setting a style for that particular division in the head of the document 
will override the style sheet.

Styles for individual pages, including specific selectors within those 
pages, can be done using an id or class on the body as explained here


Aside: Use of a reset such as yours and other such gimmicks that are out 
and about on the Web is a matter of opinion. My opinion is that it is a 
far better to code from knowledge and understanding rather than reset.


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] New Member: wild card question

2009-03-21 Thread Dave Miers
Hi All

I'm new here, although I did chime in on a couple of questions. My  
name is Dave and look forward to honing my css skills.

I often use a * {margin: 0; padding: 0; border: 0; } as a starting  
point and for the most part saves me lots of extra css code,  
headaches, and time for layout with great cross browser/platform  
support. However  sometimes when entering content in what is basically  
a template it would be nice to restore the defaults for just one div,  
is there anyway to stop this from affecting a particular div? For  
example it kinda does a number on lists when you weren't planning on  
using them for menus and now you have to reinvent the list format with  
css. I would prefer to address this on a div in html that may vary in  
"id" although would usually be a mainContent div. So I don't want to  
make this change in the CSS file, but only on the page in question.  
Obviously I can't do it for the whole page since that would break the  
templates layout. I work mainly in text editors now, so I'm not  
limited by WYSIWYG.

An example page is at   
http://thenewearthmetaphysicalcenter.com/healKathleen.html
Um...about the content, they are just a client..lol...and as long as  
the money is green..well you know :)

TIA

Dave
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/