Re: [css-d] Preventing page breaks

2011-09-22 Thread Tim White
On Thu, Sep 22, 2011 at 12:21 PM, Del Wegener wrote: > This is for print styles: > Is there a CSS method to prevent a page break inside and img, table, or > ? > I seems that page-break-inside:avoid is supported only by Opera and maybe IE > 8&9. As far as I know that is the method, and that is th

Re: [css-d] CSS Content

2011-09-22 Thread G.Sørtun
On 22.09.2011 22:14, Giles, Sarah wrote: This is what I went with: [.] Should work OK, although I would normally define "position: absolute" on the generated content and "position: relative" on the ".featured_offer" container or one of its parents. Find positioning to be more flexible th

Re: [css-d] CSS Content

2011-09-22 Thread G.Sørtun
On 22.09.2011 22:01, "G.Sørtun" wrote: Example-page: http://www.gunlaug.com/index.html Note that I have wrapped the "before:" and "after:" styles in a ... @media screen {} ...where I initially set all "before:" and "after:" to "display: none" to hide these styles from a few semi-old browsers

Re: [css-d] CSS Content

2011-09-22 Thread Giles, Sarah
On 9/22/11 4:01 PM, "G.Sørtun" wrote: >On 22.09.2011 16:38, Giles, Sarah wrote: >> I want to add an img before a tag using CSS content. Is this >>possible? > >Yes, no problem. > >Example-page: http://www.gunlaug.com/index.html > >...where I use the following site-wide styles to insert 3 birds,

Re: [css-d] CSS Content

2011-09-22 Thread G.Sørtun
On 22.09.2011 16:38, Giles, Sarah wrote: I want to add an img before a tag using CSS content. Is this possible? Yes, no problem. Example-page: http://www.gunlaug.com/index.html ...where I use the following site-wide styles to insert 3 birds, an (R) and a (C) in the header-area, and a cat at

Re: [css-d] apply class to parent when children are in focus?

2011-09-22 Thread Debbie Campbell
Thanks! That was it, I applied it to the wrong style. Thank you. -- Debbie On 9/22/2011 10:42 AM, Kevin A. Cameron wrote: I'm looking at the page, I don't see the addition. It can't be applied to a.selectedanchor:hover, but to a.selectedanchor. Might need to add !important to that declaration d

Re: [css-d] apply class to parent when children are in focus?

2011-09-22 Thread Debbie Campbell
Hmm. Still reverting to the darker color when focus is moved from the parent to the windowed menu... I'll check in with the forum at Dynamic Drive and post here when I get an answer. -- Debbie On 9/22/2011 10:15 AM, Kevin A. Cameron wrote: Looks like there is some JS that is adding class 's

[css-d] Preventing page breaks

2011-09-22 Thread Del Wegener
This is for print styles: Is there a CSS method to prevent a page break inside and img, table, or ? I seems that page-break-inside:avoid is supported only by Opera and maybe IE 8&9. Del __ css-discuss [css-d@lists.css-discuss

Re: [css-d] apply class to parent when children are in focus?

2011-09-22 Thread Kevin A. Cameron
Looks like there is some JS that is adding class 'selectedanchor' on hover. Just modify that class to also have white text. If you're looking to recreate something like this with just CSS, maybe check http://css.maxdesign.com.au/listamatic/ Kevin On Thu, Sep 22, 2011 at 8:37 AM, Debbie Campbell

[css-d] apply class to parent when children are in focus?

2011-09-22 Thread Debbie Campbell
In this page: http://kittymunson.com/acbl/newsite/clubs/acblscore.php# If you click on the Learn & Improve tab, then on any of the menu items with a >>, you'll see the parent item changes to white with a colored background. But if you mouse down into the menu, the parent item returns to a d

Re: [css-d] CSS Content

2011-09-22 Thread Tedd Sperling
On Sep 22, 2011, at 10:38 AM, Giles, Sarah wrote: > I want to add an img before a tag using CSS content. Is this possible? > > Before I get my rear jumped about adding content with CSS and the whole > separation of presentation and content thing I will state this img IS > presentation. > Basic

Re: [css-d] CSS Content

2011-09-22 Thread Giles, Sarah
On 9/22/11 10:53 AM, "Tim Arnold" wrote: > >You could use the :after pseudoclass, but it might be simpler >(certainly better supported in all browsers) to place it as a >background image to the div in question. Position it top left and add >enough left padding to the div to make room for it. S

Re: [css-d] CSS Content

2011-09-22 Thread Tim Arnold
On Thu, Sep 22, 2011 at 10:38 AM, Giles, Sarah wrote: > Some of these groups are "Special" And their specialness changes on a > personal whim. So I am creating a class to denote their specialness that will > change their background color, give a boarder, and change font color. I also > want to

[css-d] CSS Content

2011-09-22 Thread Giles, Sarah
I want to add an img before a tag using CSS content. Is this possible? Before I get my rear jumped about adding content with CSS and the whole separation of presentation and content thing I will state this img IS presentation. Basically I have a grouping of ( might be a more applicable tag a