Solved

vertical-align=middle and nested tables not working

Posted on 2013-06-25
3
341 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 56

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 56

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Silly CSS question - cant figure out 2 22
SVG and IE11 2 18
html form layout 4 36
Boolean 13 24
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

733 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