function theme_positioning_test in ImageCache Actions 6.2
Same name and namespace in other branches
- 8 tests/imagecache_testsuite.module \theme_positioning_test()
- 7 tests/imagecache_testsuite.module \theme_positioning_test()
1 call to theme_positioning_test()
- imagecache_testsuite_positioning in tests/
imagecache_testsuite.module - Display a page demonstrating a number of positioning tests
File
- tests/
imagecache_testsuite.module, line 267
Code
function theme_positioning_test($x, $y) {
$inner = "<div style='background-color:red; width:75px; height:100px; position:absolute; left:{$x}px; top:{$y}px'>";
$outer = "<div style='background-color:blue; width:200px; height:150px; position:absolute; left:25px; top:25px'><div style='position:relative'>{$inner}</div></div>";
$wrapper = "<div style='background-color:#CCCCCC; width:250px; height:200px; position:relative'>{$outer}</div>";
return $wrapper;
}