Vertically positioning text relative and rotated 90° - css

I'm unsure if there is a property that does this. But I'm looking to add text vertically in a div on this website- http://chazsouthard.org/. However I want the text to appear to be rotated 90° clockwise.
I attached a screenshot from Photoshop as a example for what I'm trying to accomplish.

If you are using CSS3 I believe you are looking for transform: rotate(90deg);
http://www.w3schools.com/cssref/css3_pr_transform.asp

You will need to use a negative number here to achieve the orientation you desire. Adding the prefixed versions as well for cross-browser compatibility. simple codepen: http://codepen.io/BuoyantMedia/pen/Asdmr
transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);

Related

CSS3D overlapping divs on Mobile Safari

Mobile Safari shows the correct version of the UI for a split second.
After that the translated 3d surfaces cut into each other.
.top {
background-color: #a58855;
transform: translateY(-50px) rotateX(90deg);
-webkit-transform: translateY(-50px) rotateX(90deg);
}
Please see full code on jsbin
Any ideas how to fix the problem? I tried adding custom z-indexes and z-translations, but nothing seems to help. After half a second image "corrects" itself to the broken state.

IE11: overflow: hidden doesn't work

It's not the IE6 bug of position: relative mentioned here, and I couldn't figure out why. When the child div animates beyond its parent's border some part of it still flickers for a split second before disappearing properly.
The cause was the attribute transform: translate3d(0px, 0px, 0px) series added to force render the div. I added all four of them using LESS's method, but only the first one is really in use.
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
Remove the last one and it's fixed.

vertical align of data in a gridview

I want my data to be displayed vertically instead of horizontal inside a gridview because there are about 65 fields and it is not coming in size for printing.
The actual view like this:
But I want in the form :
Can anybody help me...
You can put the grid in some div and set the rotation of that div to 90 degree with css.
.vertial-orientation
{
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
}
<div class="vertial-orientation">
<!-- put your grid here -->
</div>
Note the support of tranform is required by the browser to apply the css.
You can use this property
GridView1.RowStyle.VerticalAlign
Example:
GridView1.RowStyle.VerticalAlign=VerticalAlign.Top
Also try,
<ItemStyle VerticalAlign="Top"></ItemStyle>

skewX() CSS3 Property

I have a practical use for the CSS3 skewX property. I have written a simple image accordian-like script with jQuery. Images are skewed (already, not in CSS) as part of the design and in order to make the correct areas clickable, the containing divs need to be skewed.
The problem is that in skewing the div, the image is skewed aswell. Skewing a skewed image does not look good.
One solution I've tried is resetting the skewX value to 0deg on the image, but to no avail. In the fiddle, I haven't included the accordian as this isn't necessary to the solution.
http://jsfiddle.net/yM49N/2/
<div><img src="https://www.google.com/intl/en_com/images/srpr/logo3w.png"></div>
div {
-webkit-transform:skewX(200deg);
-moz-transform:skewX(200deg);
-o-transform:skewX(200deg);
-ms-transform:skewX(200deg);
transform:skewX(200deg);
border:1px solid red;
}
You can apply an inverted skewX on img:
img {
-webkit-transform: skewX(-200deg);
-moz-transform: skewX(-200deg);
-o-transform: skewX(-200deg);
-ms-transform: skewX(-200deg);
transform: skewX(-200deg);
}
To make the div contain the image properly, you also need to add overflow: hidden.
http://jsfiddle.net/thirtydot/yM49N/3/

Vertically flowing text with css

I would like to have a div with some text in it. But I'd like the text to flow vertically instead of horizontally. Like this;
M
y
t
e
x
t
Any ideas on how to accomplish this with CSS?
If you have only one line of text you could try using width:1em;letter-spacing:1px (and a space between each letter)
edit: if you want to use no space between each letter width:1em;letter-spacing:1em;word-wrap:break-word
CSS3 has a proposed 'writing-mode' attribute that can be set to 'tb-lr' (write text from top to bottom, write lines from left to right), but I don't know if any browsers support it yet, so its not something to rely on.
div{
text-orientation: upright;
writing-mode: vertical-lr;
}
<div>Jelly</div>
Please find the answer here you can use text-orientation and
.yourtext { -moz-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
-moz-transform-origin: top right;
-webkit-transform-origin: top right;
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

Resources