width

How do I independently change the width and height of a font in .NET?

Given something like this: thefont = New Font("Courier New", fontheight) and this: ' g is a Graphics object g.DrawString("some text", thefont, Brushes.Black, X, Y) what can I put in the middle of the two to change the width of the font, so that "some text" is expanded or compressed horizontally but the height remains the same? ...

How to make floating divs fill up space

Hi, I'm trying to create a "workflow" bar on a web page. The items in the workflow might be of different lengths. There might be enough items to fill the width of the screen, hence the flow needs to wrap onto the next line. I'm using left floating divs to do this. However, I'd like the divs to take an appropriate amount of screen w...

Why XAML Width="Auto" does not work for me?

I have recently started maintenance on some poorly written XAMLs. I myself am relatively new to XAML. One thing I need urgently is - grid columns should automatically adjust their width as per the text contents. The MSDN documentation on GridViewColumn.Width says - set it to Auto to enable auto-sizing behavior. However even though the...

Centering fonts in VB6

How do you determine the length of a string of text in Arial Bold font, and then center it in VB6? If not here, can you point me in a direction where I might be able to find this information? We're not using a "label" or "picture box" do print the text to the screen. We are sizing the text on the fly, and allowing the user to scale the...

change width more than 32767 with jquery

I want to make a mini timeline with jquery and this timeline have width more than 32767 px. When I change it by jquery $(".timelinecontainer").width(32767); in Opera does not change it, but in others browsers it works. What can you give me advices ? Sorry for my English :) ...

JavaScript - function to get real image width & height (cross browser)

as the title ...

CSS: Liquid Bar with Text Won't Expand

Hello! I have a horizontal bar that has been given a width of 100%. Within the horizontal bar, I have text that is left-aligned within a 978px container. Whenever the browser window is shrunk so that it is less than 978px wide, a scrollbar along the bottom of the page appears. Whenever I scroll to the right, the bar no longer spans t...

Get MySQL columns width ?

Hello. I was wondering if I can somehow convert a column header text form MySQL into actial width size pixels. I am trying to generate a PDF from the database and I want it to automatically adjust column widths. As I will use it for many tables, the width must differ so I should be able to see it like: "The header for this column is call...

HTML/CSS: Creating a centered div with a min-width

I'd like to have on my page a div which is centered and has a certain width, but which extends beyond that width if required by the content. I am doing this with the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtm...

firefoxs renders thin grey lines at content box edges of a png at certain widths - why?

When firefox (3.0.6) renders a png image at certain widths (e.g., 50%), a thin grey line is shown along the left and top edges of the content box. The line disappears at other widths (e.g., 70%). Furthermore, the line doesn't seem to be present in the original image (using gimp to inspect the image). The phenomenon occurs in the absence...

Table Row SHOW / HIDE *Without* Column Width Resizing, w/ TableLayout: auto

I have table with multiple rows, showing items for sale. When the user clicks on a row, a Javascript inserts / shows a new row right beneath it with details about the item. The issue is when the description is long, it forces the column widths to readjust / resize. This shifts the columns positions and is really annoying, especially for ...

Gridview Column width changing.

I have a gridview whose datasource is an oracle database. I want to know how to be able to change column width (in the gridview) when it is being displayed in the web browser. Thank you ...

How to get console window width in python

Is there a way in python to programmatically determine the width of the console? I mean the number of characters that fits in one line without wrapping, not the pixel width of the window. Edit Looking for a solution that works on Linux ...

detect window width and compensate for scrollbars - Javascript

How do I detect the width of a user's window with Javascript and account for their scrollbar? (I need the width of the screen INSIDE of the scrollbar). Here's what I have...it seems to work in multiple browsers...except that it doesn't account for the scrollbars.. function browserWidth() { var myWidth = 0; if( typeof( window.inn...

setting width of datagrid generated by Dynamic data (Entity framework, in .net)

Hi I am generating editable data grids from tables using dynamic data, however, i am unable to set the width of the tables/grids. Can someone please point me to an article/ or suggest how i can do this? Thanks in advance. Regards. Kulu. ...

Getting Column Width from SqlDataReader.

Hello, I've come to StackOverflow before with this quest: http://stackoverflow.com/questions/547040/ms-sql2005-query-stored-proc-results-to-text-using-sqlcommand-or-such I was told to build the string myself so that I get the same results as from SQL Managment Studio's Results To Text (Cntrl + T) I have now run into a problem, how ...

DOM element width can be non-integer?

I have some one page whose div elements are aligned by JavaScript. The JavaScript just check a set of div elements to find the max offsetWidth, then set all div elements' width to be the max offsetWidth. It works perfect in most browsers and locales, but it fails on french-France in Firefox on Mac. In this case, the content of div wraps....

Pixel and percentage width divs side-by-side

I've found a lot of similar questions, and tried out several solutions (including some of the so-called "holy grail" CSS layouts), but they don't quite do what I need. I have a containing div (a CSS containing block) with id right. Inside it on the left side, I want a fixed-width div (a splitter bar, but it doesn't matter what it's bein...

Import a fixed width text into Excel 2003 using VB

Hello. I have a fixed width text file and I want to automatically import certain spaces in each line into specific cells of an Excel 2003 sheet. Can you help me? I will re-phrase my question because the previous one wasn't very clear. I need to read specific characters (i.e. 12-17, 23-29) and place them inside a excel sheet. Is this po...

Div width 100% minus fixed amount of pixels.

Hi, I have some toolbars that have pretty simple structure: One wrap div that has header, content and footer divs inside. Header and footer have 3 divs inside them: left, middle and right. To get a better idea of the structure, check this image: http://ezmundorf.110mb.com/toolbars.png Reason for the structure is that I need rounded co...