width

change width of a div dynamically

I am trying to change my "inner" div's width dynamically on the click that the images are changed (which works) with a similar script. I cannot get the script to work, any help fixing it, or changing it would be appreciated. I am a noob in javascript so please be nice ;-) <script type="text/javascript"> function setBase(baseval) { ...

Set cell width of a Datagrid in a c# windows application

I have a datagrid in my c# windows application and my code is private void BindGrid(SmsPdu pdu) { DataRow dr=dt.NewRow(); SmsDeliverPdu data = (SmsDeliverPdu)pdu; dr[0]=data.OriginatingAddress.ToString(); dr[1]=data.SCTimestamp.ToString(); dr[2]=data.UserDataText; dt.Rows.Add(dr); dataGrid1.DataSource=dt; } An...

Dynamically assign a column width to a winforms datagrid?

I ve created columns of my datagrid using this, private void Receive_Load(object sender, System.EventArgs e) { dt.Columns.Add("Sender",typeof(string)); dt.Columns.Add("Time",typeof(string)); dt.Columns.Add("Message",typeof(string)); } How can i dynamically assign a column width to a winforms datagri...

Bourne Shell Left Right Justify

I am trying to do some formatting on output data in a script and not positive how to do Left Right justify as well as width. Can anyone point me in the right direction? ...

CSS: How does Width work as a percentage?

Hi all, I'm having what I think is a weird problem. I have one div, inside a parent div, and I'm giving the child div a width of 100%, but it's not growing to the size of the parent div. The parent div does not have a set width of any kind. So my question: does width in percentage only work when a parent element has a set width, or sho...

BlackBerry - What does getPreferredWidth() and getPreferredHeight() return??

Hi all, I am not getting clear about the concept of getPreferredWidth() and getPreferredHeight() methods. What do they return means on what what basis the values are returned.?? What is difference between getWidth() and getPreferredWidth()??? Thank you.. ...

Width and height not changing when setting img src property

Using Javascript to change an 's src... First time the width and height properties are being set correctly. The Second time they don't change. Why? So I've got this blank image on my page... <img id="imgCropImage" /> So the idea is that every time a user uploads an image, the uploader's UploadComplete callback will set this image's s...

Is it possible to set a fixed width on the UIImageView inside a UITableViewCell ?

I have a UITableView in which of course I use some UITableViewCells. Now some cells have an icon / image which I want to display in front of the text, and some others don't. I didn't create the UITableViewCells in Interface Builder, just using the default stuff : // Customize the appearance of table view cells. - (UITableViewCell *)ta...

How to set width of a custom validator

Hey, Does anybody know of a way to set the width of a custom validtor so that the error message text will wrap if it exceeds the specified width? I have a user control that contains a custom validator which the containing page can set the error message on based on specific validation results. The user control sits within a table cell ...

Get Image Width/Height without using a Drawing.Image

I know it sounds weird. I have a photo gallery that saves image info(url, name, date modified...) from the hard disk into an in memory collection. The thing is i want to have the image width/height stored into that collection. I can get it for each file using the Drawing.Image class. But considering the gallery can get quite big, creati...

Is there any way to make the stage for flash catalyst bigger than 4000px width?

Like the title says, can it be made bigger? Do I have to code it in flash builder? ...

CSS to create a group of text with an even left edge with auto width

I'm trying to create a layout something like this (you'll need to use your imagination): A B B B A is a piece of text, B is a piece of text whose left edge I would like to line up evenly with itself. To further complicate matters, B is by default hidden, and should not be taken into account in setting up the page flow, but inst...

How do I increase the width of a column in an HTML table?

Hi, How do I increase the width of a column in an HTML table? Below is my code. I am trying to get the second <td> tag in each row to expand so that there is more space between the input text box (1st <td> tag) and the name of the cookie and it's price (3rd <td> tag). Any ideas? Thanks! <!--Order Info. table -nested table 2 --> <!--Th...

Article not following site's layout (Joomla)

Hello, please go to www.espacioasir.com first and notice how the second article has been 'crushed' to the left - half of the article's normal width. Anyway, I don't think I can explain much more, my question is very clear: Why is this happening? I do want mention that the content of the article itself has nothing to do (or maybe just a ...

UINavigationItem title label set width?

In my UIViewController i set my title dynamically so i do not know the length of the string that will be shown in the navigation bar and because of that i have the current situation: is there any way to set the width of the label that displays the title in the navigation bar? or should i think of a with, compare the text length to it a...

Expanding DIV to Width of Container on Page Overflow

I am trying to create a simple box with some content and a colored header. Here is a bare-bones example of what I am talking about: http://guardingdark.com/css-20100217.html I will paste the code below too. The issue is when the the content DIV pushes the width of the block outside of the width of the page. The block DIV expands with t...

JQGrid Column auto width

I am just wondering how can we set a JQGrid column width to auto? colModel: [ { name: 'MyDescription', index: 'description', align: 'left', width: 150, sortable: false },..... for the above statement how can I specify an auto width for the column so that it fits to the size of the maximum content in it. ...

HELP Please - CSS Width Problems on IE8

I'm very new to website development, and don't know much about HTML or CSS. I do know however that the template that I've chosen to use from my hosting site is problematic on IE8, but I don't know how to fix it. The main content box where the page's text goes is slightly more to the left than centered. I don't know how to get it to matc...

Styling HTML FORM elements with padding, with width 100%

I'm styling a form by using a table with fixed-width columns and I want the input elements inside the <td> to fill the container. I know the CSS box model and I know the elements would bleed through with width: 100%, but the problem is with its consistency. <input> elements bleed through as expected but <select> elements don’t. This res...

[flex] Horizontallist variable width

Hello, i want to populate a horizontalList component from a xml file, the width value will be inside the xml file as well with all the data. actually i have this code: <mx:Model id="epg" source="epg.xml" /> <mx:Component id="customRend"> <mx:Label text="{data.description}" width="{data.width}"/> </mx:Component> <mx:HBox x="82"...