Dreamweaver CS3

10 pts.
Tags:
Dreamweaver
Dreamweaver CS3
Web design
Center dreamweaver web page when posting on the web. Web page now shows in upper left corner of browser and not on entire page.
ASKED: June 23, 2008  3:00 PM
UPDATED: June 25, 2008  6:04 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

This is the quick and easy way. Put your page in a table set to the width that you want and then center the table.

<table align=”center” width=”776″>
<tr>
<td>
YOUR CONTENT
</td>
</tr>
</table>

Or you could use css:

<html>
<head>
<title>Document Title</title>
<style>
body
{
text-align: center;
}
.centered
{
margin-left: auto;
margin-right: auto;
width: 50em;
text-align:left;
background-color:#CCCCCC;
}
</style>

</head>
<body>
<div class=”centered” >
YOUR CONTENT
</div>
</body>
</html>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following