suess0r Posted September 4, 2007 Share Posted September 4, 2007 Hello there, I'm dynamically calling an image from the server in which the user has uploaded from the form before. I want to display a dashed border approximately 1/2" or 37px INSIDE the image (to show bleed space) Here's how I was trying to do this <?php $filename = $_POST['name']; echo "<img src='/files/new/".$filename."' width='450' height='300' style='border: dashed; padding: -37px -37px -37px -37px;'>"; ?> The only thing is that it adds the dashed border around the OUTSIDE of the image - Is there anyway of keeping this within the image? I know that it's kinda sloppy to add the CSS in the img src tag, and if you don't speak php this is what it means in html <img src="/files/new/filename.jpg" width="450" height="300" style="border: dashed; padding: -37px -37px -37px -37px;"> Appreciate the help!!! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.