width

Page width varies according to Iframe size?

Hi, I have a requirement where i need to display a aspx page say login.aspx in two different Iframes of different width without scroll bar. E.g. Login.aspx should get displayed in iframe of width 800 and 700 without scroll bar. I know I should reduce the UI elements width but the width of the UI elements should vary for Iframes. Is it ...

top navigation menu using <li>

I have build a top navigation using LI tag with display:inline/float:left property. We can not set width for the LI tag. The menu items are coming dynamically from the database. The requirement is, menu should always cover 100% width even in case there is only one item. if there are 5 items then also it should cover 100% space. Any id...

Width as a variable when using fscanf [C++]

I am trying to read in a certain portion of a file and that amount of data is different per line but I know how how many bytes of info I want. Like this: 5bytes.byte1byte2byte3byte4byte5CKSum //where # of bytes varies for each line (and there is no period only there for readability) Actual data: 05AABBCCDDEE11 03AABBCC22 04AABB...

Make LaTeX table caption same width as table?

It looks bad in my paper if a caption is wider than the table underneath it. How can I make them both align? Right now my code looks like: \begin{table}[th!] \caption{Reference temperature blah blah} \centering \begin{tabular}{llll} ... \end{tabular} \end{table} ...

Silverlight 2 TextBlock ignores MaxWidth

I am using Silverlight 2 to dynamically add a TextBlock to a Canvas. I set the MaxWidth of the TextBlock but it ignores this value and displays a string longer than the MaxWidth value. TextBlock label=new TextBlock(); label.SetValue(Canvas.LeftProperty,Convert.ToDouble(x+3)); label.SetValue(Canvas.TopProperty, Convert.ToDouble(y + 1));...

Using width property for table data cells to change the look of table

<table id='tab' border='2'> <tr><td width="33%">col 1,1</td><td width="33%">col 1,2</td><td width="33%">col 1,3</td></tr> <tr><td width="50%">col 2,1</td><td width="50%">col 2,2</td></tr> <tr><td width="33%">col 3,1</td><td width="33%">col 3,2</td><td width="33%">col 3,3</td></tr> </table> Helo I am trying to get all columns in a order...

nokia j2me fullscreen width, height problem

I'm creating a canvas and setting it as fullscreen. In the canvas my getHeight() and getWidth() functions does not return the actual height and width of the full screen. It returns them as if I didn't set it to full screen. How can I get the size of the full screen in nokia phones or other ones that have the same problem? ...

Text div not justifying in Safari & Google Chrome

Hi, all. I was wondering if someone could help me figure out why the particular paragraph is not following the style: text-align: justify; It works fine when I preview it on Komodo, but when I preview it on Safari and Google Chrome, it seems like the text is aligned left instead of justified. Here's my code - HTML: <div id...

Div width problem in IE

I read through several questions similar to this one before posting, but did not find a solution that worked for me. I have one page in my site that does not fit the template I use for every other page because the table of info generated for that page is so wide. To make the table show I used overflow-x:visible. The result is exactly ...

How does IE calculate the CSS element width:100%?

Title says it all. Trying to get information on this so I can answer my other question here. ...

WebKit and overflow: hidden affecting width

Hi! I'm having a problem with overflow and width in Google Chrome/Webkit. This is a follow-up question on this question, there you will find the CSS. I need to have visibility: hidden to fix the problem in the first question. The problem is visible in the screenshots below. Why does this attribute affect the width in Webkit? Can I solv...

iPad browser WIDTH & HEIGHT standard.

Does anyone know the safest width and height for the BODY when viewing any web page on the iPad? I want to avoid the scrollbars as much as possible. Thanks. Erik ...

Android TableLayout: preserve column widths between different tables

I have two TableLayouts, one above the other, in my View. I want them to act as a single table for the purpose of calculating column widths, but appear separately with a gap between them (and the main View background showing through) for aesthetic reasons. Each table has 3 columns, and I want the column widths sized automatically depend...

How to create a HTML container which will fill all available width between two floating elements?

Here is a schema of what I want to render, and as simple as it seems I can't find a way to code the container between the two floating elements...: ---------- ---------- | | Some text text text text text text text text | | | | text (in a <p> element). ...

Loader SWF Height and Width/Overflow Question- Simple banner Ad

I'm trying to create a simple banner ad where the mouse hovers over the button and a panel shows up over some content of the site. I have two different .swfs: the container, which is the button and a loaded swf that has the animation that comes up when the button is clicked. The button is only 183 x 40px where as the loaded swf is 183...

WPF - DataGrid Column with Width="*", but MinWidth to Fit Contents

Hi, What would be the best/right way to have a set of DataGrid columns have proportional width (Width="*"), but to have their MINIMUM width be at least the width of their content? At the moment, if I use Width="*", then the columns stay exactly proportional, but content gets cropped if the columns get too thin. If I use Width="Auto", th...

[WPF] How to draw a simple volume bar fast / databinding ?

I have a INotifyPropertyChanged derived class with a Volume property (float, 0.0f - 1.0f) that gets set on a fixed frequency (say 30fps). I'd like to draw a tiny volumebar displaying this in my window. I don't want to use a normal databound progressbar, I'd prefer something simpler (and faster :)). Is there a proper way to simply draw a...

Dynamically size a select list (Safari)

I would like to size a select list based on the width needed for the selected index(string). Say for example I have a list with 3 strings, short, medium, loooooong; I don't want the select list to automatically be as wide as its largest element, rather it should be as wide as its selected element. The first method I tried: document.getE...

android:textview adjusts itself to wrong layout_width

<TextView android:layout_height="wrap_content" android:id="@+id/LineNumberTextView" android:hint="Number" android:textSize="15sp" android:layout_width="wrap_content" android:paddingRight="10sp"> </TextView> The above code creates a wrong view: when the text is replaced (in code) to a short (1-3 digits) numbe...

HTML DIV with absolute position: how to make it 100% wide and zoom-safe?

I have a following HTML/CSS (simplified): <body> <style> body { margin: 0px; padding: 0px; color: #fff; background-color: #090909; text-align: center; } #content { width: 500px; margin: 0px auto; ...