Bob Cohen wrote:
>
> On Dec 6, 2007, at 9:24 AM, David Laakso wrote:
>
>> /I think/ adding this selector to your style sheet may close all image
>> gaps IE is leaving for lowercase descenders and eliminate the need for
>> any css/markup class to do so.
>
> Ah. So that's why the gap was happening. I used to wonder why people
> hated IE so much. But now that I'm trying to write standards
> compliant code, I understand. Oi!
I do not hate IE. I do find it difficult to work with at times. But if
it were easy, then anyone could do it. And there goes all the fun...
>
>> img {display: block; border : 1px solid fuchsia; }
>
> This appears to work. Question: when I change the color to something
> different, I explicitly see a border around the image. It would appear
> that specifying the border and the color both removes extra space and
> blends the block in with the background. It would appear that I'd
> have to manipulate the border according to the background if, say, I
> wanted to do something similar on the right column, I'd have to write
> something like?
>
> img.differentBackground {display: block; border: 1px solid
> differntColor; }
>
> Bob
>
As usual, I have difficulty understanding question(s) (not just your
question, but all questions).
I used the border and its color in this: img {display: block; border :
1px solid fuchsia; } as a test to see all images on the page because I
am lazy and did not take time to read or target the specific image or
images you wrote about. It is nothing more than a fast and dirty test
border/color.
In a real scenario, it depends on the situation-- generally, target only
what you need where you need it.
If an image is to have different background-color, the class could be:
.c1 {different background-color;}
If an image is to have different border, the class could be:
.c2 {different border-color;}
If an image is to have different background-color and different color
border, the class could be:
.c3 {different background-color and different color border}
If all images have a border except one or another one, the class could be:
.c4 {border: none;}
The class name, does not describe what is to happen-- but rather that
/something/ about it is different. This gives you more flexibility to
make changes to the CSS without modification /or/ misunderstanding in
the markup. And the shorter the class name string in the CSS and markup,
the faster the software loads it.
Or, something like that...
Best,
~dL
--
http://chelseacreekstudio.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/