Hey People,
I'm starting to pull my hair out of my head...
I have the following:
<html>
<head>
<style>
body { margin:0 auto; }
</style>
</head>
<body>
<div style="border: solid 1px red; width: 100%;">test</div>
</body>
</html>
This works in IE producing a nice div, 100% width, no H scrollbar...
Now in Chrome and FF, it is 1...
Hey guys,
It seems to me that the Ribbon control has a problem with textboxes. I was expecting a common TextBox control behaviour: a fixed width and a visible caret when the text exceeds the width. But the RibbonTextBox control changes its width and when the text exceeds the right limit, the overflow is not visible.
I found a hack on a...
I am trying to calculate the innerwidth of jquery dialog (ui-1.8)
For somereason it is always returning 0. One reason perhaps is that the dialog is still hidden and not open??
Was using
$('#dialogId').innerwidth()
Any help?
...
Ok, how do I get the Middle div to expand to it's entirety?? I've been wrestling with this issue for hours now. Please can anyone help me?? I'm not going to use tables, I know this has to be possible.
Thanks.
...
Hi, in C if I have a printf statement containing say "%.2f", it says that the precision is 2 digits after the decimal place. I haven't explicitly specify the width. I have two questions:
Is this good programming practice?;
Is without specifying the width means that the width of the field will get adjusted automatically when printing th...
I have 2 canvas, one use old html "width" and "height" to size it, the other use CSS
<canvas id="compteur1" width="300" height="300" onmousedown="compteurClick(this.id);"></canvas>
<canvas id="compteur2" style="width: 300px; height: 300px;" onmousedown="compteurClick(this.id);"></canvas>
compteur1 display like it should, but not compt...
I am writing a site using jquery that repeatedly repeatedly calls $(window).width() and $(window).height() to position and size elements based on the viewport size...
In troubleshooting I discovered that I am getting slightly different viewport size reports in repeated calls to the above jquery functions when the viewport is not resized...
I'm using the Expander control from the Silverlight toolkit, and I would like the header to have a specific background colour across the whole width. What I'm really aiming for is to mimic our old ASP.NET-based CollapsiblePanelExtender, from the AJAX control toolkit.
It should be mentioned that I want the expand/collapse icon to appear ...
Is there a way in CSS to set the width of any element to equal the width of its parentNode? I tried 'inherit' - sounds logic - but it didn't work.
Thanks in advance.
...
I've worked out most of the kinks with my "lava-lamp" effect that I'm trying to create. Basically I want two curly braces (both are images) to wrap a list-item, then follow over to the next list-item. I always build in FF, then make exceptions for IE. I can't figure out what exception I need to make!
I'm using an absolutely positione...
Hello,
I have a simple grid with 3 columns (one of which contains a grid splitter). When resizing the grid and the left column reaches its minimum width, instead of doing nothing it increases the width of the right column. Could anyone help me stop this?
I can't set the max width of the right column, because the grid itself also resize...
I've a table with 2 columns and each column is 800px wide. I want to show this table in 800x50 window. So there should be horizontal and vertical scrollbar to view complete table.
While I've found few related solutions (this and this) on SO, they only work if table width is smaller than screen size. In my case screen size is 1200px and ...
I have an image on the page:
<img id="foobar" src="emptySpace.gif" />
The image has an absolute position of left: 0 and top: 0 in a .css file.
When I try this in JavaScript onmouseover, the height and width don't change. What am I missing?
var image = jQuery("#foobar");
image.height(500).width(500);
What gives?
...
I can't seem to control the dialog width. I have a simple layout like so`
<TextView android:id="@+id/name_prompt_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/name_prompt"
android:padding="10dip"/>
<EditText android:id="@+id/name_inp" android:layout_width="fill_parent...
My webpage currently looks like this:
<asp:Table runat="server" style="position: absolute;
left: 0%; top: 82%; right: 0%; bottom: 0%; width: 100%; height: 18%"
CellPadding="0" CellSpacing="0" GridLines="Both">
<asp:TableRow>
<asp:TableCell>
Content1
</asp:TableCell>
<asp:TableCell Width="...
I have a button, the content template of which contains two TextBlocks. How can I program the button to adjust to the amount of text in the TextBlocks?
I only know what text is going into the buttons at run time, not design time.
I was trying to go down the road of putting the TextBlocks in a Viewbox, but a ViewBox can only have one c...
Hello,
Is it possible to get the size of an element after resizing it using $(el).css()?
My code is:
function resize() {
$(".combobox").css('width', '100%');
var width = $(".combobox").width();
}
I've get the real value of the combobox only after calling the function a second time. The first time is gets the width before exe...
Hi, my layout's requirement is to keep all thumbnails at 80px height, not higher, not smaller. In my model I set the style to :thumb=> "500x80>", so basically almost every picture which is not too wide gets its perfect miniature with 80px height. Sometimes, however, my pictures are narrow and high, so the thumb can have unclickable dimen...
Hi,
This is probably very basic stuff, but please bear in mind I am completely new to these things.
I am working on a procedure for my Access datasheet forms that will:
Adjust the width of each column to fit content
Sum the total width of all columns and subtract it from the size of the window's width
Adjust the width of one of the c...
It sounds easy, but none of my "easy" syntax worked:
<xsl:param name="length"/>
<xsl:attribute name="width">$length</xsl:attribute>
not
<xsl:attribute name="width"><xsl:value-of-select="$length"></xsl:attribute>
any suggestions?
thanks
...