Closed Bug 873837 Opened 11 years ago Closed 7 years ago

Update "Scaling background images" to cover background-image and background-size

Categories

(Developer Documentation Graveyard :: CSS, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheppy, Assigned: teoli)

References

()

Details

(Whiteboard: c=CSS u=webdev p=0)

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

The background-image and background-size properties aren't covered in this article about using background images; let's add them.
below CSS properties are missing for the background-size: cover and contain example. Example looks blank because of these missing properties. i request you to update it.

background-size: cover
......................
background-image: url(https://developer.mozilla.org/files/2917/fxlogo.png);
background-size: cover;
-------------------------------------------------------------------------------
background-size: contain
...........................
background-image: url(https://developer.mozilla.org/files/2917/fxlogo.png);
background-size: contain;
Note that this is a wiki and any help is appreciated. Especially that I won't have any time to work on this before the end of the summer (Northern Hemisphere) at least.

So feel free to steal the bug.
Hi Jean,

Thanks for the update.  I tried to update, but I saw  code is correct.

background-image: url(/files/2917/fxlogo.png);
background-size: cover;

problem is : 
In Editor preview the page looks fine with background-size : cover & contain example. But same won't show in the Page.

I tried to add iframe. It doesn't render the content inside iframe.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.