Web Hosting, Design, & Coding forum

General discussion

I need some help with the table


I've had some trouble creating a simple page.
I'm trying to build a page with just the one
table. This will be white and I will place my
copy inside it. Surrounding this table will
be about a 2" color border. Above the table
I would like perhaps my website name. Could
you show me what the html would look like?

Thank you for responding,


Discussion is locked
You are posting a reply to: I need some help with the table
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: I need some help with the table
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
No need for a table

In reply to: I need some help with the table

Use divisions and CSS for positioning. Tables are meant for tabular data, not layout.

Collapse -
Ne need for tables

In reply to: No need for a table

but here is the code:


[h1 style="text-align: center;"]Web Site Title[/h1]

[div style="border: 3px solid #000; width: 800px; margin: 0px auto 0px auto; padding: 10px;"]

[p]Content here[/p]



Note that all square brackets [ ] need to replaced by angled brackets.

Also, this code goes in the <body> of the web page document... you still need a doctype and the <head>. I'm using inline CSS in this example, so you should probably convert this to at least internal CSS (if you only have one document) or external CSS (using a stylesheet) to make it efficient for multiple pages.


Collapse -

In reply to: Ne need for tables


Thanks for getting me on the right track. I'll
execute that new code pronto.

Again, thanks so much,


Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Best Black Friday Deals

CNET editors are busy culling the list and highlighting what we think are the best deals out there this holiday season.