diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2011-07-23 16:29:35 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2011-07-23 16:29:35 +0000 |
| commit | 91d114f50733f56692d74f86658cb2c9f9733b74 (patch) | |
| tree | 8d53cefb822d7f7fce4dfaa5a1a9e68c4eb9e0e7 /views/randimg.html.php | |
| parent | c8435721e90bb956ec2293ae0fc69fe96b74a600 (diff) | |
Added width styling to <img> tag instead on containing <div>.
Diffstat (limited to 'views/randimg.html.php')
| -rw-r--r-- | views/randimg.html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/randimg.html.php b/views/randimg.html.php index 59817a6..c470889 100644 --- a/views/randimg.html.php +++ b/views/randimg.html.php @@ -31,9 +31,9 @@ if ( ! empty($item) ) { $width = $width ? "width: {$width}px;" : ""; echo <<<HTML -<div class="g-randimg" style="$width"> +<div class="g-randimg"> <a href="http://$g3path/$link_path" title="$img_title"> - <img src="$thumb_url" style="border: thin solid black;" alt="$img_title" /> + <img src="$thumb_url" style="border: thin solid black; $width" alt="$img_title" /> </a> </div> HTML; |
