Solved

Placing <table> on page

Posted on 2003-10-27
3
175 Views
Last Modified: 2010-04-09
Hi Folks,

This is an easy question but I thought I'd save myself some trial-and-error by asking the experts.

I have a table in which the rows and cells are arranged how I want them. But, the whole table is too close to the window's top and left edges. What is the simplest/easiest way to move the whole table left and down by some number of pixels?

Thanks a lot

Rich
0
Comment
Question by:RichardFox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:RichardFox
ID: 9627005
I mean move the whole table right, not left, and down, of course!
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 50 total points
ID: 9627147
Just add a stylesheet reference to the head section of your document, and adjust the pixel values to suit:

<html>
<head>
<style type="text/css">
<!--
body         { margin:40px; }
-->
</style>
</head>
<body>
 etc...
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9627485
Thanks Rich - glad to help.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

705 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