?
Solved

vertical-align=middle and nested tables not working

Posted on 2013-06-25
3
Medium Priority
?
349 Views
Last Modified: 2013-06-27
Hello

I have a table nested inside the cell of an outer table. The vertical alignment of the table cell of the outer table is vertical-align: middle. However the nested table is aligned at the top of the cell and not the middle. Please can you tell me what I am dong wrong. You can see the nested table on this page

http://www.docexdemo.com/retrofit/book-mot.php

if you look at the dates for june 25th onwards

thanks
0
Comment
Question by:andieje
[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
 
LVL 58

Accepted Solution

by:
Julian Hansen earned 2000 total points
ID: 39276237
Same problem as your other post - the 25 of June is in its own table which has a margin of 1.2em on line 94 of default.css - this is pusing the date up.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39276439
The elements with class td_day_past  have the vertical alignment correct but the other elements do not have a class the applies vertical alignment.

You should have a default style applied to every cell, and then apply more specific styles with a second class.

Cd&
0
 
LVL 58

Expert Comment

by:Julian Hansen
ID: 39277092
But the real problem is the margin-bottom - remove that and the layout will be correct.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
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).

771 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