Solved

vertical-align=middle and nested tables not working

Posted on 2013-06-25
3
324 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
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 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 51

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 how to create an extensible mechanism for linked drop downs.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 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

22 Experts available now in Live!

Get 1:1 Help Now