Title: Scale to Fit
Author: metatavu
Published: <strong>октомври 15, 2016</strong>
Last modified: октомври 15, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/scale-to-fit.svg)

# Scale to Fit

 By [metatavu](https://profiles.wordpress.org/metatavu/)

[Download](https://downloads.wordpress.org/plugin/scale-to-fit.zip)

 * [Details](https://mk.wordpress.org/plugins/scale-to-fit/#description)
 * [Reviews](https://mk.wordpress.org/plugins/scale-to-fit/#reviews)
 *  [Installation](https://mk.wordpress.org/plugins/scale-to-fit/#installation)
 * [Development](https://mk.wordpress.org/plugins/scale-to-fit/#developers)

 [Support](https://wordpress.org/support/plugin/scale-to-fit/)

## Description

wordpress-scale-to-fit plugin allows developers to force some elements to fit inside
other. This can be useful when developers need to make
 some non-responsive components(
e.g. iframes) to scale with the rest of the page.

Key Features:

 * Allows developers to force elements to fit inside others

### Configuration

Add css class “scale-to-fit” to element you wish to initialize scale-to-fit.

You can use following data -attributes to control scaling:

 * data-element-method: Method to find scaled element. Allowed values:
    - self – element it self (default)
    - parent – reference element
    - closest – closest ancestor of reference element matching data-element -attribute
      selector
    - find – closest descendant of reference element matching data-element -attribute
      selector
 * data-element: CSS Selector for closest and find methods
 * data-container-method: Method to find container element. Allowed values:
    - self – reference element
    - parent – parent of reference element (default)
    - closest – closest ancestor of reference element matching data-element -attribute
      selector
       _ find – closest descendant of reference element matching data-element-
      attribute selector
 * data-container: CSS Selector for closest and find methods

## Installation

 * Upload folder into /wp-content/plugins -directory
    - Activate the plugin in ‘Plugins’ menu

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Scale to Fit” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ metatavu ](https://profiles.wordpress.org/metatavu/)

[Translate “Scale to Fit” into your language.](https://translate.wordpress.org/projects/wp-plugins/scale-to-fit)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/scale-to-fit/), check
out the [SVN repository](https://plugins.svn.wordpress.org/scale-to-fit/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/scale-to-fit/) by
[RSS](https://plugins.trac.wordpress.org/log/scale-to-fit/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1

 * Initial version

## Meta

 *  Version **0.1**
 *  Last updated **10 години ago**
 *  Active installations **10+**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **4.6.30**
 *  Language
 * [English (US)](https://wordpress.org/plugins/scale-to-fit/)
 * Tag
 * [utilities](https://mk.wordpress.org/plugins/tags/utilities/)
 *  [Advanced View](https://mk.wordpress.org/plugins/scale-to-fit/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/scale-to-fit/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/scale-to-fit/reviews/)

## Contributors

 *   [ metatavu ](https://profiles.wordpress.org/metatavu/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/scale-to-fit/)