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
16
votes
4 answers

How do I read a fixed width format text file in pandas?

I just got my hands on pandas and am figuring out how I can read a file. The file is from the WRDS database and is the SP500 constituents list all the way back to the 1960s. I checked the file and no matter what I do to import it using read_csv, I…
user1234440
  • 22,521
  • 18
  • 61
  • 103
16
votes
3 answers

Can you specify tabular lining figures for webfonts?

Since it's possible to specify lining and oldstyle figures I'm hoping there's browser support for tabular numerals with webfonts? Left: default numerals Right: desired tabular numerals (notice monospaced) Font: Brandon Grotesque Related: Is there…
Mark Fox
  • 8,694
  • 9
  • 53
  • 75
15
votes
1 answer

What is the advantage of having instructions in a uniform format?

Many processors have instructions which are of uniform format and width such as the ARM where all instructions are 32-bit long. other processors have instructions in multiple widths of say 2, 3, or 4 bytes long, such as 8086. What is the advantage…
14
votes
1 answer

Can I mix percent width and pixel width in my html table headers?

I have a table where the number of columns may change (from 1 to 10), with the exception of one column which should always stay at a fixed width so that there's no extra space or it doesn't wrap (it will be used to add or delete rows in the…
David
  • 565
  • 4
  • 7
  • 14
13
votes
3 answers

HTML justify text-align with
 tag

I have a problem with the text-align "justify" inside a paragraph with format and fixed width, because I want the paragraph text in HTML to appear totally justified (like it would happen with a MS Word file). However, this does not happen. What I…
julianfperez
  • 1,726
  • 5
  • 38
  • 69
12
votes
6 answers

Why are fixed-width file formats still in use?

Are there any advantages to a fixed-width file format over something like XML? I realize XML would likely take up more disk space to store the same amount of data but the file could also be compressed. I guess you could also, in theory, read a…
Josh M.
  • 26,437
  • 24
  • 119
  • 200
9
votes
2 answers

Python: How do I format numbers for a fixed width?

let's say numbers = [ 0.7653, 10.2, 100.2325, 500.9874 ] I'd like to output the numbers with a fixed width by varying the number of decimal places to get an output like this: 0.7653 10.200 100.23 500.98 is there an easy way to do this? I've been…
attamatti
  • 183
  • 1
  • 10
9
votes
3 answers

Fixed width column in HTML table with table-layout=auto

When an HTML table has it's table-layout set to auto its columns are auto-sized. Given this scenario is there a way to keep specific columns fixed width? I've tried using CSS width - doesn't seem to have any effect.
Yuriy Galanter
  • 38,833
  • 15
  • 69
  • 136
8
votes
3 answers

left justify and right justify one element content in css

I have an HTML code on inspect (as shown below) in which I want to left justify and right justify time element content in css. HTML Code (On inspect):
flash
  • 1,455
  • 11
  • 61
  • 132
8
votes
1 answer

Java printing string with fixed width

I have to write a code in Java that will take a String and put a certain number of characters on each line (the fixed width). I will also have to put extra spaces in to fill in any extra spots, like if four words only equal 23 characters and the…
Lucille
  • 81
  • 1
  • 1
  • 5
8
votes
1 answer

Pandas read_fwf not Loading Entire Content of File

I have a rather large fixed-width file (~30M rows, 4gb) and when I attempted to create a DataFrame using pandas read_fwf() it only loaded a portion of the file, and was just curious if anyone has had a similar issue with this parser not reading the…
eroma934
  • 329
  • 2
  • 4
  • 13
7
votes
1 answer

Printing fixed width strings that contain multi-byte characters

I have some strings that are stored in multi-byte UTF8 format, and I'd like to print them to the console in a fixed-width space. I am doing this by: wprintf(L"////////////// BLOCK 1 /////////////// ////////////// BLOCK 2 /////////////// …
Jaska
  • 187
  • 1
  • 6
7
votes
3 answers

writing fixed width, space delimited CSV output in Python

I would like to write a fixed width, space delimited and minimally quoted CSV file using Python's csv writer. An example of the output: item1 item2 "next item1" "next item2" anotheritem1 anotheritem2 If I use writer.writerow(…
jvm
  • 71
  • 1
  • 3
7
votes
2 answers

how does a font tell the OS that "I AM a MONSPACED / FIXED-WIDTH FONT"?

at the very first, i only want to know, why in IDE PYCHARM on Windows 10, while "show only monospaced fonts" checked, many fonts will not be listed in the editor's font selecting dialog-box[settings/editor/colors and fonts/font], also in mintty. I…
7
votes
4 answers

Fixed width, variable height in JPanel with flow

I have an annoying problem with Java’s layout managers. I have the following situation: In a panel A are two other panels B with an absolute layout and C with a FlowLayout. B is highly customized and has a fixed size set via setPreferredSize. C…
poke
  • 369,085
  • 72
  • 557
  • 602
1
2
3
30 31