SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot dizyn's Avatar
    Join Date
    Apr 2006
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    div placement problem

    here is my code it works fine for FF but in IE search div goes all the way towards right, please help.

    Code HTML4Strict:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sluuurp - Power Of The Search</title>
    <style type="text/css">
    <!--
    body {
    	margin: 0px;
    	padding: 0px;
    	background:#000000;
    }
    #container { 
    	border: 0px solid #009933;
    	margin: 0px auto;
    	background: url(back.jpg) no-repeat top left;
    	width: 100%; 
    	height: 750px;
    }
    #search{
    	clear:both; 
    	margin: 350px 0px 0px 350px; 
    	width: 300px;
    	float: left;
     
    	border: 1px solid #009933;
    }
    -->
    </style>
    </head>
     
    <body>
     
    <div id="container">
    	<div id="search">
    	<form id="form1" name="form1" method="post" action="">
    		 <input name="Search" type="text" id="Search" value="Search" size="38" />
    		 <input type="submit" name="Go" id="Go" value="Go" />
    	</form>
    	</div>
    </div>
    </body>
    </html>

  2. #2
    SitePoint Zealot
    Join Date
    Sep 2007
    Location
    Wiltshire, UK.
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I assume you want to centre the whole thing so try putting text-align: center into the body style.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •