Solved

Force <td valign='middle'>

Posted on 2010-09-20
3
394 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 …
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 …

744 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

13 Experts available now in Live!

Get 1:1 Help Now