|
|
some aswers
>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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|