Thread: Auto Padding

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    66
    Rep Power
    3

    Auto Padding


    Code:
    <!DOCTYPE html> 
    <html>
    	<head>
    		<title>Abstract Workshop | Home </title> 
    		<!--Define the stylistic base colors--> 
    		<style type="text/css"> 
    
    			body
    			{
    			background-color: #660000;
    			}
    
    			div.img
    			{
    			border-left: none;  
    			position:relative;
    			padding-top: 310px;
    			} 
    		</style> 
    			<meta name="keywords" content="FMPG,forward motion,everlasting computer battery,abstract workshop,charge from anything cable"/> 
    			<meta name="description" content="A technology company dedicated to realizing creative and original ideas and inventions"/> 
    	</head> 
    	<body> 
    		<div class="img"><img src="back2.png" width="5000" ></img></div>

    The code works except for the fact that when it is opened in a web browser there is a little space between the image and the end of the browser window. How can I remove this?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    8
    Rep Power
    0
    Try removing the </img>. That's incorrect syntax. Should read <img src="" /> with NO closing tag.

IMN logo majestic logo threadwatch logo seochat tools logo