layout

css debugging, cross-browser compatibility

There are two <div></div> tags. When it is browsed using Firefox, the effect is desirable. There is a gap between .steven and .john. However when it is browsed using IE, the effect is undesirable; .Steven and .john are connected together(There is no gap). How to solve this problem? .steven{ position: relative; width: 620px; ...

Please explain Ext-GWTs layouting (and resizing) model to me

I cannot seem to get my head around how to do a proper layout in Ext GWT that responds properly to resizes. I assume that I can declaratively specify layouts, put my components in them, and let the library take care of the rest; I just haven't figured out how yet. What I really don't want to be doing is writing resize handlers for my co...

jframe component layout

How can I specify the location on JFrame that a component (JLabel specifically) is placed? I created a JFrame object and added a JLabel and a JList to the frame but both objects are being placed on top of each other. I have tried using label.setBounds(10,10,10,10); list.setBounds(20,20,100,100); and label.setLocation(10,10); list...

How to know the height the space left on a brower by the menus, bookmarks and tabs?

Hello! I want make a page (HTML + CSS) that fits all the space left on the browser without horizontal and vertical scrollbars. Now you are readind this question on a web browser and, probably, you can see horizontal scrollbar. I want to use this space without using horizontal and vertical scrollbars. If you need more details, tell me....

Not parsing layout xml in Magento

Hi, I am following the book "Php Architects Guide to Programming Magento" where i try to incorporate rewards feature in magento. My problem is that the rewardpoints.xml file is not being parsed. What triggers Magento to parse the xml files(updates) from the Layout folder? Why is it not parsing rewardpoints.xml file? I know it is not p...

XAML Controls offsetting themselves, becoming invisible in Blend and browser

I'm having a problem, visible at runtime and in Expression Blend, where the text blocks (not text boxes, buttons, or custom controls) in my layout grid keep pushing themselves outside their cells, rendering them invisible. If I touch any of their properties in Blend (such as incrementing and then decrementing one of the margins), they be...

How to align image?

I've got thumbnails which larger side is 70px (e.g 70x40 or 52x70). I need to create a gray box 70x70px and put the thumbnail in it, so that image is aligned with the box at top vertically and center horizontally. How to do that? I've tried with an ImageView 70x70px, gray background, but image is not positioned as it should (it's in v...

Embedding persistent login form Zend

I've seen this question asked already - but none of the answers really gelled for me, so I'm asking again: I want to embed a persistent login form (which will change into a nav bar if logged in) in the header bar for a site. Effectively, I want to be able to inject some controller logic into the layout. After much research, I can see se...

JSF panelGroup - 1 span for all?

I'm wanted to use a panelGroup to group my inputs and their labels e.g <h:panelGroup styleClass="#{jsfServicesError.errorClass}" binding="#{jsfServicesError.myComponent}"> <h:outputLabel for="company" id="companyLabel" value="#{bundle.IDENTITY_COMPANY} * :"/> <h:inputText id="company" label="#{bundle.IDENTITY_COMPANY}" value="#{manager...

POS Database Layout

Our current database layout for store inventory includes a table that houses a record for each item and includes the item attributes such as price, cost, description, SKU, etc. Each store then has a table that has the SKU and the Quantity, and a few other attributes that are different for each store depending on the SKU. Although this ...

WPF and Silverlight controls and layouts pan and zoom capabilities

I would like to understand the general requirements for WPF/Silverlight layout for making it possible to implement pan&zoom (drag and zoom) features. I don't mean pan&zoom for an image but for a total page (window) layout (or part of it) with some controls. What features of the layout and what features of used custom controls make layou...

What are best practices to make layout scalable?

What is technical difference between Fluid vs liquid vs elastic vs Flexible css layouts? Are these all same or different technically? Is fluid layout better for both mobiles and computer user? I think there are only two properties to make fluid layout "em" and "%". And we already use "em" for font even in fixed width layouts. What ar...

Blackberry - ButtonField visibility depending on LabelField focus

I have 3 fields in my ui 2 buttons, one on top and other on buttom of a label field...when ever the label field gets focus i want the buttons to appear and i should be able to click on them...and when the label field loses focus the buttons should disappears..how can i do this... ...

Turn off layout for one of action

My situation: View action of ReportsController should render pure html, but not as a file (to view it in browser and save it after). So for rendering I use view template view.html.erb and i neet to turn off any layouts for this action. But in other actions of this controller layouts should stay untouched. Works only turning off for whole...

CSS floating issue

I know this is a srs beginner question, but here goes: I am trying to get a box, with an icon in the top left corner, and all the content of that box will be to the right of the icon. This is the code I am using: <div class="statsbox float_left"> <img src="images/chart_bar.png" class="float_left"> <div class="float_left"> ...

How to update the layout whenever a control changes height in Winforms?

I have a custom LayoutEngine and it handles the layout correctly. However I want the layout to update (be called again) if any control changes height. Is this possible? If so how and where should I do this? Inside the control, or the layout engine? Preferably I wouldn't want this code to be duplicated wherever I have this layout used. ...

Android force Horizontal layout

I'm pretty close to finished with my first game for Android, and I've come across a problem that's so simple I'm sure I'll feel stupid for not knowing how to solve it, but how can I force the app to stay in a Horizontal layout? Right now, if you turn the phone (emulator) it flips the graphics and squeezes them. I want the game to start...

Problem using * in Grid sizes

Hello When I set a column's width or a row's height to star, and I fill in content that is bigger than the available rectangle, the row keeps on growing 'underground': <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Win...

CardsLayout in Java Swing

I have taken a JPanel (say cardsPanel) and have set its layout as CardsLayout. After that I have added 3 cards on it (say card1, card2, and card3) all of JPanel type. Now I want to get the topmost card of the cardsPanel whenever a user clicks on a button "Show". So, How can I get the top-most card of the cardsPanel. ...

CakePHP pages_controller always uses default layout

I have a static page that I want to serve so I made a .ctp in the /views/pages/ directory. The problem is that it's using the default layout which I do not want to use. I tried making my own pages_controller and passing the $layout var but that does not work. There has to be a way to tell a /pages/ to use another layout.ctp. No? ...