Questions tagged [fixed-width]

Fixed layouts are layouts that start with a specific size, determined by the Web designer. They remain that width, regardless of the size of the browser window viewing the page. Fixed width layouts allow a designer more direct control over how the page will look in most situations. They are often preferred by designers with a print background, as they allow the designer to make minute adjustments to the layout and have them remain consistent across browsers and computers.

source: http://webdesign.about.com/od/layout/g/bldeffixedlyot.htm

Fixed Width Text File Definition: Above all, a fixed width text file is a file that has a specific format which allows for the saving of textual information/data in an organized fashion. Fixed width text files are special cases of text files where the format is specified by column widths, pad character and left/right alignment. Column widths are in units of characters. So if you have data in a text file where the first column always has exactly 10 characters, and the second column has exactly 5, the third has exactly 12 (and so on), then you have a fixed width text file.

Each row (paragraph) contains one record of information; each record can contain multiple pieces of data (fields), each data field (column) has a precise number of characters. The data is padded with spaces (or any character you specify) if it does not completely use all the characters allotted to it. Further, each piece of data can be left or right justified, meaning the padding of characters can occur on either side.

source: http://www.softinterface.com/Convert-XLS%5CFeatures%5CFixed-Width-Text-File-Definition.htm

462 questions
405
votes
5 answers

Fluid or fixed grid system, in responsive design, based on Twitter Bootstrap

I'm getting confused about the various options in the twitter bootstrap grid, and how they go together. To begin with, you can have an ordinary fixed container, or a container-fluid. Then either one can include either an ordinary row, or a fluid…
jrochkind
  • 22,799
  • 12
  • 59
  • 74
205
votes
9 answers

How to make an inline-block element fill the remainder of the line?

Is such a thing possible using CSS and two inline-block (or whatever) DIV tags instead of using a table? The table version is this (borders added so you can see it):
Triynko
  • 18,766
  • 21
  • 107
  • 173
149
votes
19 answers

Resize UIImage by keeping Aspect ratio and width

I seen in many posts for resizing the image by keeping aspect ratio. These functions uses the fixed points(Width and Height) for RECT while resizing. But in my project, I need to resize the view based on the Width alone, Height should be taken…
Jasmine
  • 1,511
  • 2
  • 10
  • 5
96
votes
6 answers

Read fixed width text file

I'm trying to load this ugly-formatted data-set into my R session: http://www.cpc.ncep.noaa.gov/data/indices/wksst8110.for Weekly SST data starts week centered on 3Jan1990 Nino1+2 Nino3 Nino34 Nino4 Week SST SSTA SST…
Fernando
  • 7,785
  • 6
  • 49
  • 81
51
votes
2 answers

Fixed width div on left, fill remaining width div on right

I want a div with a fixed width image on the left and a variable width div with a background color, which should extend its width 100% on my device. I can't stop the second div from overflowing my fixed div. When I add overflow:hidden at the…
Anamaria Miehs
  • 521
  • 1
  • 4
  • 10
48
votes
2 answers

Specify monospace font in `menu`

Language: R. Question: Can I specify fixed width font for the menu(..,graphics=T) function? Explanation: I recently asked this question on how to have a user select a row of a data frame interactively: df <-…
mathematical.coffee
  • 55,977
  • 11
  • 154
  • 194
27
votes
4 answers

Fixed width number formatting python 3

How do I get an integer to fill 0's to a fixed width in python 3.2 using the format attribute? Example: a = 1 print('{0:3}'.format(a)) gives ' 1' instead of '001' I want. In python 2.x, I know that this can be done using print "%03d" % number.…
pogo
  • 1,479
  • 3
  • 18
  • 23
25
votes
7 answers

Python Pandas, write DataFrame to fixed-width file (to_fwf?)

I see that Pandas has read_fwf, but does it have something like DataFrame.to_fwf? I'm looking for support for field width, numerical precision, and string justification. It seems that DataFrame.to_csv doesn't do this. numpy.savetxt does, but I…
jkmacc
  • 6,125
  • 3
  • 30
  • 27
23
votes
2 answers

Using calc() with tables

I'm trying to get a table with fixed-width tds and variable-width tds. Im using the CSS calc() function, but somehow it seems like I can't use % in tables. So that is what I have so far:
Marc Becker
  • 523
  • 2
  • 7
  • 18
21
votes
2 answers

When should I use UINT32_C(), INT32_C(),... macros in C?

I switched to fixed-length integer types in my projects mainly because they help me think about integer sizes more clearly when using them. Including them via #include also includes a bunch of other macros like the printing macros…
TimFinnegan
  • 583
  • 5
  • 17
21
votes
7 answers

Read fixed width record from text file

I've got a text file full of records where each field in each record is a fixed width. My first approach would be to parse each record simply using string.Substring(). Is there a better way? For example, the format could be described…
Chris Karcher
  • 2,252
  • 7
  • 24
  • 31
20
votes
4 answers

pyspark parse fixed width text file

Trying to parse a fixed width text file. my text file looks like the following and I need a row id, date, a string, and an integer: 00101292017you1234 00201302017 me5678 I can read the text file to an RDD using sc.textFile(path). I can…
Chris Hamson
  • 219
  • 1
  • 2
  • 6
20
votes
10 answers

Parsing a fixed-width formatted file in Java

I've got a file from a vendor that has 115 fixed-width fields per line. How can I parse that file into the 115 fields so I can use them in my code? My first thought is just to make constants for each field like NAME_START_POSITION and NAME_LENGTH…
MattGrommes
  • 11,974
  • 9
  • 37
  • 40
18
votes
2 answers

How to Set JPanel's Width and Height?

I'm developing Snake game using Java. Board's (where all action takes it place) width and height should be fixed (640 pixels * 480 pixels). Structure: Main class that extends from JFrame class, Board class that extends from JPanel class; In Main…
daGrevis
  • 21,014
  • 37
  • 100
  • 139
18
votes
7 answers

PHP library for creating/manipulating fixed-width text files

We have a web application that does time-tracking, payroll, and HR. As a result, we have to write a lot of fixed-width data files for export into other systems (state tax filings, ACH files, etc). Does anyone know of a good library for this where…
Bryan Agee
  • 4,924
  • 3
  • 26
  • 42
1
2 3
30 31