Questions tagged [width]

The property which determines the size of an object on the X-axis. The most common form of this measurement is in pixels or millimeters.

The property which determines the size of an object on the X-axis. Most likely, it has no taxonomic value in your post, and you should not be using it. Consider e.g. , or

6050 questions
2
votes
1 answer

How to change width of

I have a as follows: I tried to set the width of the panel grid to 50px by…
hellzone
  • 5,393
  • 25
  • 82
  • 148
2
votes
4 answers

CSS styling, float:right and keeping the left text to a restricted width

I'm trying to replicate the following table of contents: You can see my attempt here and see the problem: I don't know how to keep the chapter titles restricted to a specific width so that they don't wander over to the page numbers. I've tried…
76987
  • 383
  • 1
  • 4
  • 14
2
votes
2 answers

GridBagLayout: Last component affects grid width

i'm facing a problem with Javas GridBagLayout. Running the following code: import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.JComboBox; import javax.swing.JFrame; import…
Marius5000
  • 85
  • 1
  • 5
2
votes
2 answers

how to check width span and remove one by one letter in span

I have this code :
hello my friend how r you ???? I miss you honey
julia
  • 261
  • 1
  • 4
  • 8
2
votes
1 answer

How to fit a table into Susy grid?

I'm trying to figure out how to fit a into a Susy grid. Meaning a elements to the width returned by Susy's space() function.…
Niels
  • 372
  • 2
  • 15
2
votes
1 answer

Stretch width of div background image with set height

I am trying to stetch a div background image but not keep the aspect ratio. So I want a fixed height of 270px and a width 100% of the screen. It works perfectly in chrome but not in IE or Firefox. Here is what I have now: CSS: #container…
Laraaa
  • 21
  • 1
  • 3
2
votes
2 answers

CSS and image size

I would like to have a CSS class and/or solution where the image is 100% width (with height being auto), but max its own size. Anyway to achieve that or do I need to specify max width image-by-image?
Tom
  • 3,587
  • 9
  • 69
  • 124
2
votes
1 answer

Dynamically set webview width to match content width (and height)

as the title says, I'm trying to find a way to size a UIWebView's width to match its content's width, up to some maximum width. I would also like to have it match the height, but assuming we can find the proper width, the height problem is answered…
psilencer
  • 79
  • 8
2
votes
1 answer

field with HTML enter gives different width/margin than withouth HTML enter

The following code: Selectiedatum Gives a different output than:
Misja
  • 91
  • 1
  • 6
2
votes
4 answers

Can I display the width of a div increased with animate() using a variable?

Is it possible to use animate() to increase a div's width dynamically and display this in a variable? I've tried several things, but the variable still displays the original width of the div (wich is zero) So it's not being updated. HTML
Opoe
  • 1,337
  • 8
  • 30
  • 56
2
votes
5 answers

How to set DesiredSize.Width of a UIElement?

I need to calculate the Width of each UIElement in a custom panel. If looping over Children: foreach (UIElement child in Children) { ... } I can't do child.DesiredSize.Width = myCalculatedWidth; since DesiredSize and DesiredSize.Width are read…
Nicros
  • 5,031
  • 12
  • 57
  • 101
2
votes
1 answer

Best practice for getting View dimensions, possibly before they are drawn to screen

I've seen a ton of different questions and answers to the problems people are having with retrieving height and width of views, particularly this thread. The following are mentioned methods to retrieve View dimensions: onWindowFocusChanged() in…
mpellegr
  • 3,072
  • 3
  • 22
  • 36
2
votes
2 answers

Flash Dynamic Text Width

Hey! I try to find out the text size of a textfield in the following example field.text = 'aaaaaaa'; trace(field.textWidth); setTimeput(function(){ field.text = 'aa'; trace(field.textWidth); },2000) The number is always the same. Why? I need…
xpepermint
  • 35,055
  • 30
  • 109
  • 163
2
votes
1 answer

CSS width/height of IMG and TD

I have a problem in css, I have a TD with a width:100px; and height:100px; inside it, I have an img element with the same width and height (100px, 100px). The problem is that the TD is automatically resized to 145px width and 114 px height. If…
Jo Colina
  • 1,870
  • 7
  • 28
  • 46
2
votes
1 answer

JQuery layout fixed width when closed

I'm trying to set the width of the ui-layout-west pane at a specific dimension, when it is closed. By default, when pressing the "toggler", the pane gets completely closed, as can be seen in this example. What I want is the "west-pane" to be set to…
Andrei V
  • 7,306
  • 6
  • 44
  • 64
1 2 3
99
100
or a should be as wide as a Susy grid column or a number of Susy grid columns. My idea is to set the