width

how can i get avi/wmv/mov files width and height in asp

i have an aspupload component that deals with my videos. on the page shoing the videos i need the width and hiehgt to be set dynamicly by the ratio of the file. how can i get it from avi? mov? wmv? i know that avi header format is there but how to use it from asp? and what about the other formats ...

Flex 4: Is it possible to have a BorderContainer automatically size to the contents within it?

I have a BorderContainer with several objects inside of it. I want it to fit snugly around its own contents, but it doesn't. It seems the default size of a BorderContainer is 112x112. That is so wierd considering no other containers have that default size. Is there a way to set the width and heigh properties to "auto" or something like t...

How to get the size of a NSString

Hi. A "quicky": how can I get the size (width) of a NSString? I'm trying to see if the string width of a string to see if it is bigger than a given width of screen, case in which I have to "crop" it and append it with "...", getting the usual behavior of a UILabel. string.length won't do the trick since AAAAAAAA and iiiiii have the sam...

How can I make a div assume 100% of its containing div?

I'm trying to make a div assume 100% of it's parent div. The parent div acts as a page wrapper, so it's already assuming 100% of the page width. I've tried adding width: 100%, but this did not seem to work. I'm a little baffled, because this seems like a relatively simply thing to do. ...

How can I prevent the user from resizing the silverlight out-of-browser window?

I have a silverlight app which can be installed as out-of-browser. I've defined the Height and Width in the main UserControl. I've defined the same Height and Width in the OutOfBrowserSettings.xml file. But the user can still resize the out-of-browser frame window. How do I prevent this? ...

How to get width of a div in pixels using JQuery (IE)

Hello there. At first glance it sounds easy... when using JQuery one can use the .width() method to retrieve the width of an element. The problem comes when the DIV element does not have its size in pixels but in words like 'auto' or 'inherit'. When I do this it works nice in Firefox and Chrome even if the size is specified in words: ...

Can't get ajax - loaded image's height and width via jquery.

I'm loading an image exteranlly via ajax like so... function load_image(image_href) { var img = new Image(); $(img).load(function () { $(this).hide(); $('#a_box').append(this); $(this).fadeIn(); }, gallery_image_load_complete() ).error(function () { }).attr('src', image_href); } function gal...

Is it possible to set the width of a jquery autocomplete combobox

i am using this jquery ui combobox autocomplete control out of the box off the jquery ui website: my issue is that i have multiple comboboxes on a page and i want them to have different widths for each one. i can change the width for ALL of them by adding this css: .ui-autocomplete-input { width:300px; } but i can't figure o...

Is there a way to change the maximum width of a window without using the WM_GETMINMAXINFO message?

I want to change the imposed Windows maximum width that a window can be resized to, for an external application's window (not my C#/WinForms program's window). The documentation of GetSystemMetrics for SM_CXMAXTRACK says: "The default maximum width of a window that has a caption and sizing borders, in pixels. This metric refers to the e...

How do you get the width of an element without a defined width?

How would you find out the width of a element that is wrapped by 20 odd other elements, but the only fixed width I know is the main wrapper's which is 800px. All child elements are generally blocks, floating or not, with different paddings and margins. I don't really need the answer to a specific case, I'm just wondering if there are too...

YUI CSS Basic Grid Pattern: Get width+margin on right grid (yui-ge) with jQuery

I have this Basic Grid Pattern on my website: <style type='text/css'> #doc3 { margin:auto; } </style> <div id="doc3"> <div id="bd"> <div class="yui-ge"> <div class="yui-u first" id="main"> Main content here </div> <div class="yui-u" id="right_cont"> right content here </div> </div> ...

Table column with headers change column width

Hi, here's my table: HTML viewable at jsfiddle.net (it's a lot of code to post here) The method to change the column width escapes me, I'd like the "Produkt" column to be wider. Thanks. ...

WPF: Bind width on UI element to Width of another UI Element

Hi, I wanted to bind Width of column header to the Width of the header defined. However the code doesn't work. If I specify the Width explicitly (Width="100"), it works fine. Can someone shed some light and tell me what is wrong with the code below? <dataGrid:DataGridTemplateColumn x:Name="pdpCol" Width="100"> <dataGrid:DataGri...

what is the max width of a facebook page?

i read it was going to be changed to 520px in early 2010, but i keep seeing pages that are new that are the older 760px width - is it safe to build at the wider width still or should we be building at 520px? ...

width 100% on checkboxes makes it center aligned. How can I counter this?

I am setting all inputs to a 100% width via CSS. However, checkboxes are center aligned for some reason. Anyway to counter this? I don't want to have to use attribute selection via css since they're not fully supported. ...

How to set size (width,height) of externally loaded swf

Hi, I have loaded swf using following code, var loader:Loader = new Loader(); loader.load(new URLRequest("XYZ.swf")); addChild(loader); How do I control height and width of this loaded swf. I tried var mc = MovieClip(loader.loaderContentInfo.content); mc.width = 320; mc.height = 240; this gives null object error. ...

how to get width of column in charting ColumnSeries. I have not set DataPointStyle. It takes the default

how to get width of column in charting ColumnSeries. I have not DataPointStyle. It takes the default I have set the itemssource to col.ItemsSource = new KeyValuePair[]{ new KeyValuePair(DateTime.Now.AddMonths(1), 100), new KeyValuePair(DateTime.Now.AddMonths(2), 200), new KeyValuePai...

div with float next to div with width

Hi, I have html: <div class="field-label"><label>Email: </label></div> <div class="field"><input class="input" ......></div> and piece of css: .field-label { clear:left; float:left; padding:0.5em; width:6em; } .field { padding:0.5em; } And it worked fine. But for some elements I wanted to apply following change: when I add width...

Fix Bar Chart Width and Spacing between bars in JFreeChart

I have stacked bar chart in which the number of columns is dynamic, can change from 1 to n columns. I want the spacing between the charts and width of the bar to be consistent. How do I fix it. Please suggest solutions / ideas. ...

How to make Chrome obey this rule?

Here is the code: <table style='margin-left: auto; margin-right: auto; text-align: right;'> <tr> <td style='vertical-align: top;'>Title:</td> <td style='width: 400px;'><input type='text' style='border: 1px solid black; width: 100%;' /> </tr> <tr> <td style='vertical-align: top;'>Content:</td> <td><textarea style='border: 1px ...