layout

Trouble using GWT ScrollPanel

Hello all. I'm trying to show a large image inside of a ScrollPanel. The ScrollPanel is one of the tabs of a TabPanel. All this is inside of a VerticalSplitPanel. I expected to have the ScrollPanel doing the scrolling but instead is the VerticalSplitPanel that has the scrollbars. Can anybody help me achieve the desired behavior. Than...

How do I create a two-column snaking layout in ASP.NET MVC?

I have about a hundred short-text data items (this number can vary substantially) that I would like to put in a page and have the browser manage that into three columns within a surrounding div, arranged with the items going down and then across, like this: A F L B G M C H N D I O E K ... Is there a way t...

Should I let visitors to my site change the width of pages from fixed to a fluid?

I'm considering implementing a feature that would let visitors to my forum change the width of the pages from 800px (for example) to 100%, and vice versa... Is this a good practice? ...

Align TextBox and Label text

Hello ! I'm designing a UI, and I found myself itching my head : how can I align a TextBox text and a label text, which are side by side. In design mode, it's easy, you move one with your mouse, a purple line appears and voila ! the alignment is good, but mine are code generated, so how can i align their contents ? Thank you ! Edit :...

How do I make side-by-side images equal height (CSS/HTML)?

Two images, one is 300x400 pixels (height x width), the other is 500x600. How can I make them appear side-by-side, scaled so they are the same height on screen, filling the whole width of the page (or container/div), without changing the aspect ratio of either image? I'd like an HTML/CSS way to do this -- something that works for more ...

layout falls apart on ie8 on some machines

Hi all, I issued a strange behaviour from IE8. We uploaded asp.net application on iis6. Everything works fine and layout is in place. But on my colleague machine, with same browser(IE8), layout falls a part and on the some of the other machines too(!??) It is strange because it is: the same server, same operating systems and the same br...

Make Two Floated CSS Elements the Same Height

I have two elements which can vary in heights and both floated next to each other. The problem is that it looks pretty ugly if one box is higher than the other. So I want them to be the same height. One way I thought might work would be too to wrap them in a container div and hope the taller one resizes it and the smaller one expands t...

How to I find the space a combo box needs to show all list items.

I have a WinForms combo box, I wish to set the width of the column box so that any selected item can be shown in full. (I do not know what items will be in the combo box at the time of writing the software) However when I call Combobox.PreferredSize, it does not seem to take into account the items that are in the drop down list. ...

Improvements or Variations of DiggSpy

In Chapter 14 of Designing Web Interfaces, authors Scott and Neil define the 'Periodic Refresh' pattern and cite Digg's DiggSpy as a canonical example. I agree that the pattern and its manifestation are excellent ways of serving real-time information to the user. I'm facing a similar challenge. I'd like javascript (and jQuery) to conti...

WPF - How to stop an ItemsControl psuedo-grid's columns from dancing/jumping around during layout

Several other questions on SO have come to the same conclusion I have -- using an ItemsControl with a DataTemplate for each item constructed to position items such that they resemble a grid is much simpler (especially to format) than using a ListView. The code resembles: <StackPanel Grid.IsSharedSizeScope="True"> <!-- Header --> <G...

Android: How to make all elements inside LinearLayout same size?

Hi, I would like to create a dialog to display a video title and tags. Below text I would like to add buttons View, Edit and Delete and make these elements same size. Does anyone know how to modify .xml layout file in order to make elements inside LinearView same size? The current layout file looks like this: <LinearLayout xmlns:and...

Layout issue with website when in compatibility mode

I noticed the layout of a website is all jacked up when viewing in IE8 in compatibility mode (assuming this means IE7 and/or IE6 as well) compared to viewing it in IE8 and Firefox. Since the site renders fine in IE8 and Firefox, I'm guessing that means I need to override certain styles for IE6/IE7. Are there any tools that I can use li...

SWT update / redraw / layout problem

Hello, I know many people experience this problem, but the solutions I found online do not seem to solve mine. I have a composite that has three buttons. What I want is the following : When I click one button, I want some other button to be grayed out ( setEnabled(false) ) and after a while (after a method execution), I want the button ...

Why say panel and boxlayout twice?

panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); ...

Flex layout : Changes made to a single state

I was modifying the layout of a Flex application in Flex Builder. What I didn't realize was that the changes I made, were made for a particular state. There are around 6-7 states in my application. Now, I need those changes to be made to all of those states. How do I do it? As of now there are multiple lines like this in one state : <...

How to create overlapping header/content like Facebook's

What is the correct way to create a solid color header that the content can partially overlap with CSS? Facebook has the exact look that I am going for (notice the picture overlapping the blue header): Here are my ideas, but I don't know if they pose problems: Put the picture/overlapping content in the header section and absolute po...

To have two horizontal pages in LaTeX

I need to have codes in the format A4. The codes are so long that I would like to make two pages in my document horizontal. Other pages should be vertical. How can you make two pages horizontal in LaTeX? ...

Building a user-customized layout with rails

I'm building a site that has user defined pages that are composed of a set of widgets. The widgets are fairly basic, similar to what you'd find in Blogger. Some widgets are for data collection/formatting presentation with basic structure (lists, tables) and others provide more complex functionality (blog, photo albums, etc) I want to a...

Adjusting WPF Layout Controls

Hi All, In a WPF UI Application, I have 4 controls and 3 radio buttons( say write, read and load). I have aligned them Properly too. 4 controls are : 1. Tabcontrol with listview in it 2. Stackpanel with checkboxes 3. Stackpanel(orientation - Horizantal) with textbox and browse button 4. A stackpanel with Textblock and Listview. My que...

This layout can be done with CSS?

Is it possible to do the following layout with CSS but not using absolute/relative positioning? We tried to solve this riddle for several days but we couldn't fit the box 10. Edit : Please also provide css + html files of your solution. So we can discuss solutions. ...