LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2012, 02:27 AM   #1
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
centering text in a table cell and using transform:rotate at the same time.


I am trying to get the rotated text to center virtically within the table cell. Several places in W3School tells me that you can virtically place the text in a table cell.

I have tried the following:
Code:
<tr valign="middle">
.updown {vertical-align:middle;}
<tr class="updown">
vertical-align:middle;
None seem to work. Am I asking html to do something it is not capable of doing?
Any help would be appreciated.

The not working code can be viewed here.
http://www.texasflyfishers.org/SFS/2...pril-2012.html

And this if needed. Oneiric Ocelot - Gnome3 - Opera 10.11 - Firefox 11
 
Old 05-04-2012, 03:24 AM   #2
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
maybe this works

Code:
.updown {vertical-align:middle; transform:rotate(270deg);}
 
Old 05-04-2012, 10:21 PM   #3
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Original Poster
Rep: Reputation: 29
Thank you for getting me thinking sideways. I was classing in the wrong order.

This works:
Code:
<td class="updown"><p class="skew">...........
Everything I was doing was working on the text in the window. I needed to place the window in the middle of the table data cell and THEN rotate the paragraph.

Again thanks.
Dave
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to transform html special characters into readable text Karl Godt Programming 5 03-18-2012 11:52 PM
LXer: Transform plain text files into Web pages automatically with this ... LXer Syndicated Linux News 0 01-08-2007 07:54 PM
Abiword --- Can't insert picture in table cell rickh Linux - Software 2 03-07-2006 12:53 PM
rotate text bizshop Linux - Software 1 06-22-2005 05:17 PM
Centering text on an image using ImageMagick barisdemiray Linux - Software 2 09-20-2004 11:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration