Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'some aswers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
some aswers
Authored by: ceebee on Nov 27, '02 08:21:14PM
>How does one "create" a css file?
Its a Plain Text file whose name ends with ".css" use any text editor to make it.

>does anyone know of a way to have a gray box or something drawn in place of the image
Not with CSS alone -- you've told the element not to display at all so any effect would also not be displayed (although would love to be proved wrong!)

Also the line visibility: hidden !important; in the examples is redundant (except in some rare circumstances), the image has already been instructed not to display itself so it's visibilty is irrelevent.You only need to use either one or the other rules depending on the rendering effect that you prefer...

display: none !important; means "don't render the contents of this element -- its effect is to flow the HTML onto the page as thought the element was not present.
visibility: hidden !important; means make the element invisible -- its effect is to flow the HTML onto the page as thought the element IS there but makes it invisible. ie. in this case it would appear as though there was a transparent image in place of the "original"

... also for those interested this is what the CSS Selector img[width="125"][height="125"] means ; choose all the IMG tags that have an Attribute width="125" and an Attribute height="125"' -- the square brackets are Attribute Selectors, in a sense the actual image is irrelevent to the CSS it only cares about the HTML element (the tag not the image) which is why it ignores the Ads with no height or width defined by the HTML.


[ Reply to This | # ]