Hrmmm....worked for me man. Tried this
<?php
$input = "something";
isset($input)?$width=$input:$width="100%";
echo $width;
?>
And it returned "something", then I tried
<?php
isset($input)?$width=$input:$width="100%";
echo $width;
?>
And it returned "100%"
Maybe somewhere else in your code?