width

Filling a screen width

I'm really struggling to tidy up a web site I am building for someone. I've spent hours on trying to figure this out! I have limited knowledge so the code would be helpful. They want the section at the top (originally two images, now I'm trying background images and css) to fill the width of the browser- no matter what size it is. Does a...

Div that should take up the "rest of the page" expands beyond the page in ie.

Okay, this is REALLY starting to bug me... This page works fine in both Chrome and Firefox. www.bloggan.tk But if it's opened in internet-explorer it always expands beyond the page and introduces the scrollbar no matter what the resolution of the browser is. I have NO idea what change in the html it was that cause this... Here's the blog...

how to fix the column width of a listview in c# windows form?

i have a listview i need to fix the column width of the listview so that at run time user cannot drag the columnheaders and resize it.....what is the procedure?? i have searched all the properties but none of them help me out to solve this pbm.. this is possible in gridview but how will it be possible in listview.... ...

AS3: Setting size of loaded swf

I'm using Loader to load an external swf into my swf and adding that loaded swf to the stage using event.target.content. If i set the width and height of the loaded swf I actually resize the movieclip inside my loaded swf. What I wanna do is change the stage size of the loaded swf. Any way of doing that? ...

Get width of a single character from ttf-font in php?

Hello I'm creating an dynamic image, which creates headers on my page using PHPs GD-library. The problem is, that I need a line-wrapping system. It's not a problem itself, but first I need to get the width (in pixels) of current character. I'm pretty curious about this, is there any way? Or do I need to manually specify width of every ...

How to get width and height of string on the screen?

Lets say I've a string and some font (name, size, etc...). How to get width and height, measured in pixels, of such string displayed on the screen? ...

Does height and width not apply to span?

Total noob question, but here. CSS .product__specfield_8_arrow { /*background-image:url(../../upload/orng_bg_arrow.png); background-repeat:no-repeat;*/ background-color:#fc0; width:50px !important; height:33px !important; border: 1px solid #dddddd; border-left:none; border-radius:5px; -moz-border-ra...

Calculate proportional width of object (proportion: 1600x1080)

Hello, this is a simple jquery question: when my div "#wrapper" has a specific height (=browser height - 129px), i want to set the width of a inner div "#object" automatically too (cause i need a width for the object to read it out) ° example of the html: <div id="wrapper"> <div id="object"> </div> </div> example (jquery): $(...

dynamically setting the size of a textbox in a RDLC report

Can a textbox's width in a local RDLC report be set dynamically using C#? I would like to auto size the horizontal width of the text box based on the data it contains. ...

CSS - 2 divs side-by-side, one floated - how do I make the other fit next to it without overlapping?

I have had the following problem for a while and I am really not sure how to solve it. The problem can currently be observed here: http://www.androidpolice.com/2009/11/16/the-not-so-good-the-bad-and-the-ugly-my-list-of-20-problems-with-htc-hero/ - feel free to use this for Firebugging. There are 2 notions here: a table of contents (toc...

can't get true height/width of object in chrome

I have a question, if i set a image height in css and try to get height/width i get different results in different browsers. Is there a way to get the same dimension in all browsers? You can find a live example here<-Removed and the concept is like this: CSS: img{ height:100px; } Script: $(document).ready(function(){ $("#text...

Measuring text width with font as org.faceless.pdf.PDFFont instance

Hi! I have text with font in org.faceless.pdf.PDFFont. How can I get width of it in px? Thanks. ...

jQuery width() returns 0 for a span element created on the fly?

Hi, I'm trying to determine the width of a string. I'm using the following code but it always return 0. It seems to be that as the span element is created and not already present in the page body, jQuery width() returns 0. Is there a way such that I can get the width of the text without resorting to creating dummy html code in the page?...

JS/jQuery: Trying to fit an ambiguous text string within a certain width through substr

Hi, I'm trying to take a text string, (e.g. the word "testing") and calculating if the string, when displayed on screen, will exceed a certain width. I do this by putting it in a element and using width(). Now, the thing is I want to reduce the text string by a character at a time, and then determining the width. If the width is withi...

How to create column width in CSS that expands with large images yet stays a default size for normally sized content?

I am creating an HTML5 web page with a one column layout. Basically, it is a forum thread with individual posts. I have specified in my CSS file the column to be 600px wide and centered it in the window using margin: 0 auto;. However, some images that are in the individual posts are larger than 600px and spill out of the column. I'd li...

Jquery Carousel Issues

I am using Jquery's Just Another Carousel plugin and I'm having issues with something which I am not sure and because of this it's not working. I'm using this plugin because I need fixed height rather than fixed width. This Doesn't Works (When used Refresh CTRL+F5) any help? ...

How to set the width of a cell in a UITableView in grouped style

I have been working on this for about 2 days, so i thought i share my learnings with you. The question is: Is it possible to make the width of a cell in a grouped UITableView smaller? The answer is: No. But there are two ways you can get around this problem. Solution #1: A thinner table It is possible to change the frame of the table...

CSS: Parent-Div does not grow with it's children (horizontal)

I would like the parent-div (red) to grow with the green child-div. Now it just stops at the viewport. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html lang="de" xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> <head> <title>simple document</title> <style type="tex...

CSS div/overflow Question: Why does the first HTML file work but not the second?

Notice how the first HTML/CSS works when you re-size the browser horizontally. It will shrink no further than around 800 pixels, but it will expand as far as you drag the right edge of the browser. It will also correctly overflow the table at the top and scroll it horizontally. The thing I don't like about the first code snippet is wh...

Setting a Silverlight textbox control's width relatively

Hello, I tried searching on stackoverflow for an answer to my question but couldn't seem to find anything relevant. Since I'm relatively new to Silverlight, I'm not even sure if this is possible, but I am trying to figure out if it is possible to set a Silverlight textbox control's width value proportionally to it's immediate parent co...