PDA

View Full Version : Rotate with CSS ?


Rob_Che
05-11-2008, 09:32 PM
Hello there... I'm starting this site here: http://www.doncasterlivemag.co.uk (http://www.doncasterlivemag.co.uk/)

The theme of the site (as it is in the magazine) will be rotated sections.
I want to try and emulate this and was wondering if there is a way to rotate?

I'm assuming you can't rotate text but it's worth asking and see if anyone has any ideas !

Cheers guys
Rob

domedia
05-11-2008, 10:34 PM
Sounds cool Rob
The theme of the site (as it is in the magazine) will be rotated sections.
I want to try and emulate this and was wondering if there is a way to rotate? Rotate how? as in showing the content on a 90 degree angle?

Rob_Che
05-11-2008, 10:41 PM
Hey Dom...

Well.. I've been doing a bit of googling and I can see that text can be flipped 90 or 180 degres (can't find the values I need tho)... Can you help with this ? (and any browser problems known ?)

In my first post I was actually wondering if the text could be rotated by a value ie: 23 degrees. BUT! then it came to me that as text is based on pixel widths it can't be possible (can it!?)

Rob

Rob_Che
05-11-2008, 10:58 PM
This is interesting... doesn't work in Firefox tho...


<style>
.vert{
left:1px;
top:5px;
width:1px;
writing-mode: tb-rl;
}
</style>
</head>
<body>
<span class="vert">this will be displayed vertically now</span>
</body>

domedia
05-12-2008, 02:02 PM
There's also browser out there that will put it on let's say a 23 degree angle, but you won't get IE/FF to support this. Don't think you'll get away from making a graphic out of this :-/

m1a2x3x7
05-12-2008, 02:26 PM
never thought about it before but that would be a cool effect.

Rob_Che
05-12-2008, 02:47 PM
*SIGHS*...

ah well... worth a shot... I've googled and schmoogled it but no joy...

Graphics it is... saves on code :wink:

Death Dream
05-12-2008, 02:50 PM
Make sure you have alt text too if someone disables images.

~Death Dream~

Rob_Che
05-12-2008, 04:10 PM
always :wink:

Death Dream
05-12-2008, 04:55 PM
always :wink:

Lol that is a habit I never had, Cary pounded it into me pretty good though lol.

~Death Dream~

Rob_Che
05-12-2008, 05:04 PM
It's a habit I never had... I have it now tho !