Re: [css-d] descendant selectors

2007-03-16 Thread Donna Jones
Hi John: > I would have guessed this is the way to go about it. Maybe you can give > the a class and then assign it a background-image ? Although, I'm not > sure that's the best route. you know what, i shouldn't have written the question to begin with, just moving too fast (or faster than my

Re: [css-d] descendant selectors

2007-03-16 Thread John Lauck
I would have guessed this is the way to go about it. Maybe you can give the a class and then assign it a background-image ? Although, I'm not sure that's the best route. On 3/16/07, Donna Jones <[EMAIL PROTECTED]> wrote: > > hi all, i, and a couple of friends, are trying to figure out a > "des

[css-d] descendant selectors

2007-03-16 Thread Donna Jones
hi all, i, and a couple of friends, are trying to figure out a "descentant selector" issue. say you have this in the css: #content li a img {border: 2px solid green;} your html is some words with Firefox the image is styled. With IE7 or 6 it is not. I am leary about the "logic" an

Re: [css-d] Descendant Selectors Based on IDs

2006-05-04 Thread Dagmar Noll
Thanks Glenn, Rob, and Tyson. I can now start writing cleaner, more sensible CSS and HTML! Cheers, Dagmar __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss

Re: [css-d] Descendant Selectors Based on IDs

2006-05-03 Thread Tyson Tate
On May 3, 2006, at 5:56 AM, Dagmar Noll wrote: > #header ul > #header p > #header img > #sections h1 > #sections h2 > #section p > > If this is valid CSS, are there any major red flags regarding using > descendant selectors based on IDs? All of the above will work perfectly. However, keep in min

[css-d] Descendant Selectors Based on IDs

2006-05-03 Thread Dagmar Noll
Hi all. Are descendant selectors based off of IDs valid CSS? In case I am not using the right language (please set me straight if I'm not), I mean this: #header ul #header p #header img #sections h1 #sections h2 #section p If this is valid CSS, are there any major red flags regarding using de

Re: [css-d] Descendant Selectors

2005-06-14 Thread Robert Neville
> a selector of "p" > would be sufficient to uniquely identify the needed > element. But let's > say there's another paragraph elsewhere on the page; > in that case, > "#header p" would be sufficient because #header has > to be unique if > you're using valid markup. Great explanation! I pret

Re: [css-d] Descendant Selectors

2005-06-14 Thread Michael Wilson
Robert Neville wrote: Can you add descendant ID selectors to an ID selector? #container #header, #container #footer Yes, but you may not always need to include the containing element in your selector. Because id's are unique per page, you may not need the added specificity a compound selecto

Re: [css-d] Descendant Selectors

2005-06-13 Thread Philippe Wittenbergh
On 14 Jun 2005, at 9:40 am, Robert Neville wrote: Can you add descendant ID selectors to an ID selector? #container #header, #container #footer Yes. But it is not often needed: an ID selector is always unique on a page anyway. Would a better approach be the ID selector with the class sele

[css-d] Descendant Selectors

2005-06-13 Thread Robert Neville
I have a quick question about descendant selectors. Even though the following site (http://css.maxdesign.com.au/selectutorial/) has given me considerable insight, this question relates to additional clarification when nesting selectors. Can you add descendant ID selectors to an ID selector? #con

RE: [css-d] descendant selectors, background-image position, and Firefox

2005-06-07 Thread Pringle, Ron
> > Both the CSS and XHTML are valid. Here's the link to the page: > > > > http://chnm.gmu.edu/history120/new/nav-test.html > > this is the ruleset for your current state > > #pre18thcentury a#nav-pre18, > #18thcentury a#nav-18, > #19thcentury a#nav-19, > #20thcentury a#nav-20 { > background-po

Re: [css-d] descendant selectors, background-image position, and Firefox

2005-06-07 Thread Ingo Chao
Jeremy Boggs schrieb: I'm trying to create a navigation bar using images as tabs, and using the conditional descendant selectors to choose the "current" link. I have an unordered list of four links: ... the a tag's background image is 80px high. the non-current state as a background position of

[css-d] descendant selectors, background-image position, and Firefox

2005-06-07 Thread Jeremy Boggs
I'm trying to create a navigation bar using images as tabs, and using the conditional descendant selectors to choose the "current" link. I have an unordered list of four links: Pre-18th 18th 19th 20th the a tag's background image is 80px high. the non-current state as a background position of 0