Solved

How do I position my table vertically?

Posted on 2011-02-16
5
275 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
align Linkedin sign to the right page 5 34
Centered Image 2 27
How to change the link of an image using md5 in php ? 3 27
Hide cell in a table 2 9
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses four methods for overlaying images in a container on a web page
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ā€¦
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).

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now