# visual-slider/trunk/admin/custom-css.php

Visual Slider, version trunk. 27 lines.

- Page: https://pluginprobe.com/plugins/visual-slider/trunk/code/admin/custom-css.php
- Raw: https://pluginprobe.com/plugins/visual-slider/trunk/raw/admin/custom-css.php
- Modified: 2026-06-08T20:28:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/visual-slider/trunk/code/admin/custom-css.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
if( ! function_exists( 'vs_perview_layer_size' ) ) {
function vs_perview_layer_size($value=false){
	$css='';
	if(!empty($value['horizontal'])){
		$css.='--vs-lr-rt:'.$value['horizontal'].'%;';
	}
	if(!empty($value['vertical'])){
		$css.='--vs-lr-tp:'.$value['vertical'].'%;';
	}	
	if(!empty($value['width'])){
		$css.='--vs-lr-wt:'.$value['width'].'%;';
	}	
	if(!empty($value['height'])){
		$css.='--vs-lr-ht:'.$value['height'].'%;';
	}	
 		$css.='--vs-lr-lt:auto;';
 
	
	
	return $css;	
 
}
}
```
