Solved

How do I position my table vertically?

Posted on 2011-02-16
5
278 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 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

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 i…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

707 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