[support] A shot in the dark - was Drupal themes

Larry Garfield larry at garfieldtech.com
Sun Apr 2 18:45:08 UTC 2006


On Sunday 02 April 2006 13:14, Bruce Whealton wrote:
> Ok, maybe I do need a bit of a brushup or more knowledge on css.  If I
> wanted to have all images not have borders, what setting is that in the
> css?  I'm seeing now on a page displaying an image the background is black
> around the image except for a white border that would only be visible on
> the right against the black background.

img {
  border: 0px;
}

>   Also, if I was to change that image's style class, is class = "image
> preview" equal to .image .preview in the css style sheet or is it ->
>   .image preview
>   How does css handle spaces in this case?
>   This was good in that it was precise and not just a change of every
> background color everywhere.  If .node .content was used in every theme and
> the same way that would be great. Thanks,
>   Bruce

class="image preview" means that the element is of class "image", and also of 
class "preview", independently of each other.

Anything of class image, regardless of other classes:
.image { ... }

Anything of class preview, regardless of other classes:
.preview { ... }

Anything that has BOTH class preview AND class image:
.image.preview { ... }

This is not what you want, because it means anything of class preview that is 
nested inside something else of class image:
.image .preview { ... } (notice the space between e and .)

-- 
Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


More information about the support mailing list