?
Solved

How do I position my table vertically?

Posted on 2011-02-16
5
Medium Priority
?
279 Views
Last Modified: 2012-05-11
I am trying to build a table.  It seems to work fine, with the exception of the vertical position... it appears half-way down the page.  

Any ideas why?
0
Comment
Question by:rmmarsh
[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
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
ChuckDeezel earned 2000 total points
ID: 34911158
Use the vertical align tag in a div surrounding your table. See below:

http://htmlhelp.com/reference/css/text/vertical-align.html
0
 

Author Comment

by:rmmarsh
ID: 34911333
Fantastic!  Now, one more question if you don't mind... how do I set the font of the entire table?
0
 
LVL 4

Assisted Solution

by:ChuckDeezel
ChuckDeezel earned 2000 total points
ID: 34911407
You can do that in the DIV too. The DIV just says that you are DIViding the code up. So anything for that section will use the rules.

Here is something on DIV:
http://www.w3schools.com/tags/tag_DIV.asp

Here is something on the style attributes:
http://www.pageresource.com/dhtml/csstut2.htm

So, inside of the DIV you can set your style.

<DIV id="ads" style=color:adsfadfad> <table> </table> </div>

Open in new window

0
 
LVL 4

Expert Comment

by:ChuckDeezel
ID: 34911410
Sorry that was a very hastily written snippet of code. It was very sloppy and I appologize.
0
 

Author Comment

by:rmmarsh
ID: 34911627
No problem... it's the theory, and I get it!  Thanks so much for your help.   I appreciate it!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Suggested Courses

777 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