Solved

How do I position my table vertically?

Posted on 2011-02-16
5
276 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
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
ChuckDeezel earned 500 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 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to change the link of an image using md5 in php ? 3 47
ASP server side get value 15 35
Writing comments on <p></P> or paragraph 2 19
Html value of radio 14 27
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

840 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