i have a question about lyouts and layers in dreamweaver8

alexandergre

New Member
how can i set the position of a table in the center of my page horizontally and vertically , so when the user resizes the window my table will stay allways in the center of page .

i dont have persian keyboard right now​
ex: http://www.stijn-zwanckaert.be/index1.html
see, whenever u resize the IE window the table is in the center
 

echessdesign

مدیر انجمن طراحی وب
U can use it:
HTML:
 <html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body style="padding:0; margin:0;">

<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
	<tr>
		<td align="center">
		<table border="0" width="200" cellspacing="0" cellpadding="0" height="200">
			<tr>
				<td style="background: red;">&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

</body>

</html>
 

alexandergre

New Member
echessdesign گفت:
U can use it:
HTML:
 <html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body style="padding:0; margin:0;">

<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
	<tr>
		<td align="center">
		<table border="0" width="200" cellspacing="0" cellpadding="0" height="200">
			<tr>
				<td style="background: red;">&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

</body>

</html>

allright, thanks, works like i want
 

جدیدترین ارسال ها

بالا