Solved

Force <td valign='middle'>

Posted on 2010-09-20
3
407 Views
Last Modified: 2012-05-10
I would like to force one cell on my page to have the attributes of:

<td valign='middle'>

But the css is overriding it.
0
Comment
Question by:hrolsons
  • 2
3 Comments
 
LVL 1

Expert Comment

by:1mart
ID: 33719946
You need to add class to this cell and make specific css rule for it to override the default stylesheet.
0
 

Author Comment

by:hrolsons
ID: 33720023
1mart, could you possibly walk me through that?
0
 
LVL 1

Accepted Solution

by:
1mart earned 500 total points
ID: 33720177
Add class to the cell:
<td class="whatever">

And then add the following line to the stylesheet:

td.whatever {
  vertical-align: middle;
}

You can always override stylesheets with more specific declarations.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
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 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…
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…

786 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