layout

define float as center in css

Hi, How can I define a define float as center in css? actually i need a layout between right and left and also i tried "text-align" but it doesn't work and the "float" property just working. Thank you ...

Swing: Alignment Problem

Hi everyone, I have a question about laying out some swing components. Say, I have a JPanel which contains a JLabel and a JTextField. I want JLabel to be drawn on the left-most side of JPanel, and JTextField to be drawn on the right-most side of JPanel. I tried using BoxLayout and Horizontal Glues, but I couldn't make it work. Can someb...

GWT vertical layout

I need a vertical layout, which would fill browser's viewport top to bottom, with on overflow (scrollbars). I need to layout widgets on the top, and on the bottom, and have one widget in the center which would stretch to fill the remaining space. There seems to be DockLayoutPanel for this purpose, the problem with it is that it forces m...

Layout problems in IE7

Our website www.phototulip.com displays fine in Safari and Firefox but not in IE7. The main content seems to display on the bottom right hand side and the nav bar shifts slightly to the left. I've tried to adjust sidebar and content widths but with no success. I was wondering if anyone could help. ...

jquery tabs css fluid layout

hi guys, quick question. I have a tabbed interface for my site but I have all the parts of the site crashing into each other. How do I achieve a fluid layout where it simply resizes when the display is smaller. I read a few articles @ alistapart and made my containing div relative to the browser window and every other div within the d c...

extjs form does not get rendered in a panel the second time it is selected

I have a basic layout where different components can be selected using a tree view and then get rendered in the main panel. This works fine for all of my components (like grids) but glitches with forms. The first time a form is selected it is fine, as soon as you try to select it again nothing gets rendered. The demo is available here ...

Controls Are cut in MFC when changing display to 125% in windows 7

I have an MFC application. When running it on Windows 7 I realized that when changing the display percentage to meduium - 125%, I have a TextControl which is cut off (end of sentence doesn't appear.) How can I fix this? I could enlarge the size of the control on the dialog, but I'd rather do that via the code. My application is locali...

Android - Including custom component causes it to be hidden behind main view

Hi folks, The app I'm working on has 4 tabs, 3 of which share many features, including a navigation bar a the bottom with Back, Edit, and Map buttons. There is exactly the same xml in all 3 layouts, so I'm trying to DRY this out by extracting that xml into a separate component, including it, and then going from there. Previously I had...

Flex 3 Constraint-based Layout problem

I am attempting to reproduce a foreign language quiz in Flex. Since I'm new I can't post an image yet, but picture a box on a page with a paragraph of text inside of it. At parts within the paragraph there are drop-down boxes for users to select a particular word or phrase from a few different options. There's a "Check Answers" button at...

CSS or Table 'Dock Layout' Solution for Non Scrolling Header?

I have a variable height header that doesn't scroll with the content below it. The content will act like a regular web page, with overflow=auto, constrained to the size of the viewport. I have yet to find a table-free CSS solution, and using tables overflow doesn't work correctly - the bottom table row is not constrained to the viewport...

Layout many irregular boxes so they fit on screen

I've got a list of images with dimensions for each image. I need to select and layout a group of images from that list so they fit on screen with slight overlaps, and no gaps. (gradient in the overlap to avoid a sharp transition) I've researched 2d box packing algorithms, but they all assume that you need to use all the items, and, of c...

XAML ScrollViewer scroll bar hidden issue (Silverlight)

I’ve got this strange problem whereby the content within a scroll viewer increases in size, the scroll viewer then shows is horizontal scroll bar. However the grid the ScrollViewer is ultimately within doesn’t seem to resize enough to show the scroll bar. I’ve isolated the problem in this sample app, basically some xaml and some code be...

Do Control.SuspendLayout and Control.ResumeLayout keep count?

I can't quite think of how to phrase the question to be precise, but hopefully my meaning will be clear. Do Control.SuspendLayout and Control.ResumeLayout keep count? To put it another way, If I call SuspendLayout twice, and ResumeLayout once, is layout still suspended? ...

Drag and drop layout designer

Are there any tools (frameworks) to create web based layout desinger (something like in Visual Studio, but with html and javascript) - with drag and drop, ability to combine several html tags into one control, changing "control" properties on the fly (e. g. width, font, etc) and exporting layout into html (xml)? Looked at jQuery and ExtJ...

Avoid stretching of table lines with fixed table height and variable number of rows?

I have a table in a HTML form. It has a fixed height for optical reasons. The number of rows in the table varies depending on the number of form fields available. Problem: If there are very few rows, all rows are stretched vertically, increasing the space between input elements. I could avoid this by giving the data rows a (fake) fixe...

Grails overrides my css styles when a layout is applied.

I have a page with components that renders correctly before applying a layout. However when I include that meta tag It changes my tabs and buttons to underlined text I took out all references to other .css files out of the main.gsp and it still changes the appearance. What is causing this behavior? (grails version 1.1.1) ...

How to place a long Grid in a WPF Layout Container?

When I place a Datagrid in a WPF Grid Layout container, the datagrid lengthens the Grid Layout. I want it to occupy only the space available on screen. ...

How can the right part of page of Google videos stay still when you search videos on the left

When you use Google Videos, you will notice the right part of the page stays still when you search videos on the left. How is it implemented? ...

How to customize build-in widgets in Android (menu, notification, spinners etc.)?

Hi I want to customize colour palette in Android widgets. Orange colour is good but it can be done better. Things which I want to do: - override colours in menu after press and focus - override colours in ongoing notification bar - override colour in EditText frame and finally - override spinner focus and press colour I want to use ...

GroupLayout-like library for iText

Hi. I was wondering whether there is a library that would provide javax.swing.GroupLayout-like ability to lay-out things (e.g. text boxes)? Or Maybe PDF itself supports such layouts? Some GroupLayout links: http://java.sun.com/docs/books/tutorial/uiswing/layout/group.html http://java.sun.com/javase/6/docs/api/javax/swing/GroupLayout.htm...