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

div always on top of page and random image automatically fit that div

Excuse my ignorance and let me explain. I would like a div to be always fully visible in a web-page. Its a div that contains a random picture and after that is a "Read more" button . So it would be nice if the image fits the div and the div and…
slevin
  • 4,166
  • 20
  • 69
  • 129
2
votes
0 answers

Replacing line breaks in DIV jQuery

I can't get and replace line breaks in DIV element. I need to get same form of text like it is in div, but I must replace new lines with < br > I have textarea and with jQuery I am copying text to < div id="text1"> , div has limited width ant text…
user2899587
  • 189
  • 2
  • 3
  • 11
2
votes
3 answers

How can I make my website width fit fully on iphone 5?

I am working on a new site for my photography hobby. the ad is faspix.com I have got it to fit onto laptop/desktops how I would like but I am having an issue with making the width fit onto my iPhone when I load the page on iPhone the height is there…
2
votes
3 answers

ImageView: getWidth() different from getLayoutParams().width?

That's my source code to create a new ImageView: ImageView image = new ImageView(this); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); params.width =…
Tobias Baumeister
  • 2,107
  • 3
  • 21
  • 36
2
votes
1 answer

WPF - Getting Image Width/Height from internet URL

I've managed to get an image's width/height if its stored in my computer with the following code:(Fullpath is the file's full location) var bitmapFrame = BitmapFrame.Create(new Uri(FullPath), BitmapCreateOptions.DelayCreation,…
Oranges
  • 193
  • 1
  • 2
  • 16
2
votes
1 answer

Setting width of select and input elements in css

I'm new to learning CSS/HTML (and to this site!) and am trying to design some basic input fields as practice. I've managed to set up a few things but am really struggling to set specific width of input/select fields (px is fine but % would be…
Winters
  • 980
  • 3
  • 11
  • 16
2
votes
1 answer

Javascript random background image size

I have a code that shows a random background everytime I refresh, but I have no idea how I can make all images width100% and heigth 100%. Here's my code: