Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

newbie question - how do I get all the content of the site to be centered

Posted on 2003-03-10
10
Medium Priority
?
206 Views
Last Modified: 2010-04-25
how do I get all the content of the site to be centered i.e. all the dream weaver sites i have seen have a big centered frame which the site is inside of, I tried this and previewd it in a browser and it was all lopsided and crap....how do I get everything to center?  for sme reason making a frame and centering it doenst center it.....
0
Comment
Question by:Devario Johnson
  • 4
  • 3
  • 2
  • +1
10 Comments
 

Expert Comment

by:aaran
ID: 8110612
The easiest way is to use content tables for the layout.

Here's some code to provide an 760 pixel wide centred content area into which you can add your site content.

<html>
<head>
<title>Centred Table for layout purposes...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
          <td width="100%" height="100%" align="center" valign="top">
               <table width="760" height="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                         <td width="760" height="100%" align="center" valign="top">content goes here...use tables for layout...just use tables with width=100% to start...<br>
                              <br>
Don't put anything outside this table cell ( &lt;td&gt; )...</td>
                    </tr>
               </table>
          </td>
     </tr>
</table>
</body>
</html>
0
 
LVL 5

Author Comment

by:Devario Johnson
ID: 8112948
is there some way I can do it without HTML?
0
 
LVL 2

Expert Comment

by:InnerChild
ID: 8121638
no.  That is what dreamweaver is doing behind the sceen is generating the HTML, so the only way to fix your problem is with HTML.

LAter
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
LVL 2

Expert Comment

by:zombeen
ID: 8126470
Well if you donot want to actually code , you can definitely do it with Dreamweaver. What you can do is create a table with 100% height & 100 % width , and place all your content within this table. Inside the table, do remeber to set Horizontal & vertical alignment to center & middle respectively, and you will have something very close ot what you desire. You might also need to set page margins to 0 for all the sides

Zombeen
0
 
LVL 5

Author Comment

by:Devario Johnson
ID: 8129873
cool, how can I get the bachground inside of the tabe to be different from the background or the page?  an example of what I mean is http://www.download.com   

   
0
 
LVL 2

Expert Comment

by:InnerChild
ID: 8130409
<tr>
    <td background="nameoffile.jpg"></td>
  </tr>

LAter
0
 
LVL 2

Expert Comment

by:zombeen
ID: 8133942
devarioj, you can set a color for the whole page as gray (as in www.download.com ), and inside the table , you can inset any more amout of tables, text, images et. to suit your needs

zombeen
0
 
LVL 5

Author Comment

by:Devario Johnson
ID: 8134050
ok guys, im sorry for bothering you so much, it's just I cant get this to work and it is so frustrating.  
 
I know how to make the background of the page to be a specific color, but how can I change the color of the background inside of a table ONLY and not effect the background of the page.  i.e  have the background of the page as grey and the background of the table to be yellow...
Thanks...and I will give points to whoever gets this....
0
 
LVL 2

Accepted Solution

by:
zombeen earned 80 total points
ID: 8134144
CLICK on the table (inside the table anywhere), and in the properties tag , choose a bg color. Thats it...

Zombeen
0
 
LVL 5

Author Comment

by:Devario Johnson
ID: 8149322
Good job dude!! thanks for the help!
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question