Solved

Force <td valign='middle'>

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Remove Space when printing webpage - Setup in Print.css 3 18
Word, Excel, Access icons 4 17
Are these icons a web font? 3 21
GET error with Font Awesome 3 19
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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 videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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…

821 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