jquery - Is there any way to shrink an ascx to make it fit in a fixed div? -


I have an esx control and I need to fit in a device on my page. I do not want to scroll it, can I reduce its size to fit it properly? Labels look fine, but some table cells and text boxes can be shrunk and I believe it will fit properly. I was thinking of selecting jQuery on the text box in ASCs and reducing their width. One concern is that these text boxes use the "Coles" attribute for their length. Can I set that value up to 75% which is currently or something else? Can you hold some columns of a table in jQuery and only work on those cells? Some columns will need to maintain their width while others may be clearly shrinking.

I do not want to modify the execution ASX because it was used during the whole app and the stakeholder would like to use the same control on this page.

Thanks for any advice ~ San Diego in CK

I think That you can use CSS for it. a id attribute like "myDiv" or whatever.

You can use CSS & lt; Div & gt; Style and its core element:

  #myDiv {width: 500px; Height: 500px; } / * Textarea #myDiv * / #myDiv within textarea {width: 100px; } / * TD #myDiv * / #myDiv td {width: 50px; }  

I believe the CSS width property value will be preferred over the textarea of cols (This was in my browser - Firefox 3.0, but you want to test in other browsers). What you need to do with CSS without jQuery, but you can do those things that you were also doing with jQuery.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -