Solved

Force <td valign='middle'>

Posted on 2010-09-20
3
402 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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…
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…

911 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

16 Experts available now in Live!

Get 1:1 Help Now