/    Sign up×
Community /Pin to ProfileBookmark

hey all,
at work at the moment- a design for a css table just came in that requires one column of tall, narrow cells to have the text inside typed vertically; that is, rotated anti-clockwise on a 90 degree angle so that the text types ‘up’ the cell.

is this possible?
Thanks in advance

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@ShaneRileyDec 14.2007 — If you don't want to generate an image of the text, the only way to do it using CSS is in IE. Here's what you need for the IE only style

<h1 style="writing-mode: tb-rl"> or <h1 style="writing-mode: tb-rl; filter: FlipH FlipV;"> for the opposite direction
Copy linkTweet thisAlerts:
@WebJoelDec 14.2007 — A similar approach:

[CODE]<style>
p#vert {margin:25px; padding:5px; width:10px; font-weight:bold; border:1px solid black; text-align:center;}
#vert span {display:block;}
</style>[/CODE]



[code=html]....<body>

<p id="vert">
<span>V</span>
<span>E</span>
<span>R</span>
<span>T</span>
<span>I</span>
<span>C</span>
<span>A</span>
<span>L</span>
<span style="padding-top:23px;">T</span>
<span>E</span>
<span>X</span>
<span>T</span>
</p>


</body>....[/code]
Copy linkTweet thisAlerts:
@redbeef88authorDec 16.2007 — thx for the tips- i ended up using images, but both those methods worked well to some extent

cheers
×

Success!

Help @redbeef88 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...