Re: [css-d] Can CSS target content in an iframe?

2009-05-28 Thread Dan Gayle
On Thu, May 28, 2009 at 3:20 PM, Stephen Tang wrote: > it's Javascript code that is doing this, since I know Javascript can > access iframe content. Javascript suffers from the same "Same Origin Policy" as CSS __ css-discuss [cs

Re: [css-d] changing languages for a phrase

2009-02-27 Thread Dan Gayle
> Is it possible to > do it like this je ne sais quoi and have a > style on an external style sheet link > > .french { > lang : fr; > font-style: italic; > } You can use attribute selectors though: *[LANG=fr] { font-style: italic; } Will not work, obviously, in some of our geriatric browsers. Bu

Re: [css-d] New to List First question.

2009-02-16 Thread Dan Gayle
IIRC, those stats only come from visitors of the W3Schools website, and thus are highly swayed toward web designers who are using FF and away from IE. On Feb 16, 2009, at 3:01 PM, Ryan Little @ Gusto wrote: > Hi all, > > I have been lurking for the last few days watching the eb and flo. I >

Re: [css-d] Inline styles vs. external style sheet

2009-01-23 Thread Dan Gayle
On Jan 23, 2009, at 8:09 AM, Virgilio Quilario wrote: You can always put a tag into your html body to include your external css file. I'm pretty sure it would override those linked in the head. that should make your css for the widget re-usable. you may put all overrides into that external f

Re: [css-d] Inline styles vs. external style sheet

2009-01-23 Thread Dan Gayle
I believe you are wrong. There are valid reasons for adding inline styles. For instance, when creating a plugin or widget for a CMS or other managed site, often the CSS and/or the HTML cannot be modified. On Jan 23, 2009, at 12:52 AM, david wrote: If you can't modify the HTML, you can't add

Re: [css-d] Inline styles vs. external style sheet

2009-01-22 Thread Dan Gayle
I believe you are wrong. There are valid reasons for adding inline styles. For instance, when creating a plugin or widget for a CMS or other managed site, often the CSS and/or the HTML cannot be modified. Or perhaps something is created in the content itself that needs specific styling, i

Re: [css-d] The CSS Overlords

2009-01-17 Thread Dan Gayle
>> CSS requires a change in thought process, a re-envisioning of a >> website >> from a different perspective. > > Exactly, at least for those who learned to create web pages without > the benefits of CSS. This is the interesting part, because I'm a professional web designer, and until abou

Re: [css-d] The CSS Overlords

2009-01-17 Thread Dan Gayle
Ask a person who uses a screen reader to answer why tables shouldn't be used for layout. You'll get your answer soon enough. Ask a person who has had to modify or alter a website made in tables, to add new features like a new sidebar or a pull quote within the middle of a block of text. Ask

Re: [css-d] best practices

2009-01-12 Thread Dan Gayle
Archive.org doesn't cache @imported stylesheets, so if you're interested in posterity, links are the better way to do it. On Jan 12, 2009, at 10:42 AM, s...@ssyed.com wrote: > Probaly linking is being cashed and @import not? Loading times? __

Re: [css-d] font color change on individual letters of a word

2009-01-08 Thread Dan Gayle
That's way more code than just styling it inline, IMHO. Even if you were going to do it this way, it would be better to create simpler classes: a{color:red;} .blue{color:blue;} .green{color:green;} A class overrides a simple element selector, so the classed span (.blue) would override the a

Re: [css-d] font color change on individual letters of a word

2009-01-08 Thread Dan Gayle
Using span elements with inline style blocks will fix your problem. Example: Flickr On Jan 8, 2009, at 6:27 PM, James E. Darfler wrote: > I'm now trying to follow the strict > definition of XHTML and it doesn't like the "font" in the solution.

Re: [css-d] question about combining descendant selectors

2009-01-08 Thread Dan Gayle
Your selectors are wrong. You aren't using descendent selectors for .article. You are saying .hm #news_snip .date has the color green AND ALSO .article has the color green, because of the comma. That means you have two declarations for .article, and the second one is over-riding the first.

[css-d] Specificity Problem

2008-12-24 Thread Dan Gayle
I am having a specificity problem that I need help with. I am trying to create an info box that floats to the right within my main content div that uses the cascade to supply the styling. The content of that info box needs to be marked up using plain html elements, because the content write