vertical align of data in a gridview - asp.net

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>

Related

Parallax effect on all sections

https://jsfiddle.net/uoz5rac7/2/
I have a parallax effect here in the first section, but I would like to have it on all sections. If I use transform: translateZ(-1px) scale(2);
-webkit-transform: translateZ(-1px) scale(2); on the other sections my first sections breaks.
Is there any way to achieve the same effect like in the first section for others?

CSS hover width styles in different browsers

My example is in this JSfiddle link:
https://jsfiddle.net/k9x4wmxk/3/
In Chrome browser, the hover CSS style (Line 71 in JSFiddle),
.photobox:hover img {width: 105%;}
present exactly what I want. The image width expands when hover.
However in Firefox browser, the above CSS style change the image height, not the width.
Does anyone know the problem? How can I fix it? Thanks a lot!
try this code image hover
.photobox:hover img { -moz-transform: scale(2);
-webkit-transform: scale(2);
-o-transform: scale(2);}

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.

Vertically positioning text relative and rotated 90°

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);

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/

Resources