Questions tagged [variable-width]

Variable-width encodings represent characters using a storage size that varies based on the character in question.

Variable-width encodings represent characters using a storage size that varies based on the character in question.

For example, UTF-8 represents basic ASCII characters (such as "A") using a single byte, whilst the CJK character "も" is represented as a three-byte sequence.

24 questions
58
votes
8 answers

How to horizontally center a floating element of a variable width?

How to horizontally center a floating element of a variable width? Edit: I already have this working using a containing div for the floating element and specifying a width for the container (then use margin: 0 auto; for the container). I just wanted…
Waleed Eissa
  • 10,283
  • 16
  • 60
  • 82
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
8
votes
3 answers

Three-column CSS layout - fixed/max./variable width

I'm having trouble getting the following three-column layout to work: A B C +-------+-------------------+------------+ | | | | | Fixed | Use unused space | Resizable | | | …
Alex
  • 1,568
  • 2
  • 11
  • 15
5
votes
3 answers

Pure HTML/CSS solution for aligning 3 elements when 2 are dynamically sized?

This question takes a bit of explaining. Please bear with me: A few months ago, I set up a three-part header for a section on a website. On the left side of this header there is a Title, the contents of which can change. To the right side is a…
5
votes
3 answers

Prevent float wrap until elements have reached min-width

I have variable-width HTML layout with a fixed-width menu to the left of a content
of variable width (set by css max-width and min-width). For very narrow browser windows I would like the content to wrap beneath the menu, and I am currently…
Chris Johnson
  • 10,469
  • 4
  • 31
  • 35
3
votes
2 answers

Using variable-width font in Putty

VT100-style terminal handling deals with fixed-width fonts. Is it possible to use variable-width font like Comic Sans MS in Putty on Windows? If yes, how can it be done?
Trivikram
  • 801
  • 1
  • 9
  • 17
3
votes
2 answers

(Fixed Width) vs (Variable Width) Website Design

I am learning how to design a website. One of the decision seems to be how to present the data to the user i.e. with the presence of different monitor sizes, whether to structure the data to occupy the entire screen (a.k.a GMail) or make it fixed…
Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
2
votes
1 answer

Creating a variable width
 element with optional scrollbars

I want to add div to my website which has variable width, and that it will display scroll bars when the width is smaller than the longest line. I tried wrapping such a fixed width element, in a variable width (100%) but that didn't work. I got…
Yaron
  • 2,053
  • 2
  • 19
  • 21
1
vote
2 answers

How can I get three divs with equal spacing between them using variable width?

I am designing a webpage with a contact form that you can see here. As you can see the page is designed to be variable width. I would like there to be equal spacing between the images, the form, and the edge of the content area, i.e. there would be…
Nick
  • 4,304
  • 15
  • 69
  • 108
1
vote
1 answer

Using R for extracting rows from a large dataset which meet multiple conditions for each vendor_id

Using R Programming. I have dataset with Vendor_id, Bank_account_no and Date with over 3 million. I want to get the rows for each vendor_id where the Bank_account_no changes, for example from X to X to X (at least three time, could be more than…
Sara
  • 11
  • 2
1
vote
3 answers

Setting the variable percentage width of HTML elements next to other variable-width elements

I have a HTML structure with given CSS. Both caption and progress elements should be rendered in same line. caption elements should not have fixed width and progress elements should fill up the rest of the space next to caption based on their…
errata
  • 5,695
  • 10
  • 54
  • 99
1
vote
1 answer

floating fluid and fixed width element

I want to have a 4 columns layout Panel Bar with the following conditions: #c1, #c2 = with specific width #c3 autofill with remaining width #c4 auto width (e.g. increase / decrease width if more list added) and will correspond to #c3 I'm looking…
wei
  • 162
  • 1
  • 12
1
vote
3 answers

CSS: containing five floated 20% elements with borders

I'm trying to align five horizontal menu elements with 'float:left' next to each other inside a container that spans 80% of the screen and a minimum of 960px. For this, I had initially set their min-width to 192px (960/5) and their width to 20%, but…
ividyon
  • 656
  • 2
  • 6
  • 17
1
vote
1 answer

HTML/CSS How to auto-adjust the width of my container in order to show several images horizontally displayed?

I want to have a variable amount of images displayed horizontally in a web (which can be navigated with an horizontal scroll bar), but I can't get the images displayed beyond the 100% width of the browser. Since the amount of images will vary, I…
0
votes
2 answers

WPF TextBox - how to stop width change with value

I have a problem setting my TextBox exactly as I need. I was reading similar questions here, but none of them have same requirements as me. Basicaly I need text box with some MaxWidth to always try to fit the MaxWidth property. If user changes size…
David Bašta
  • 55
  • 1
  • 1
  • 7
1
2