The layout tag is for questions about the placement, alignment and justification of objects with respect to a containing element.

learn more… | top users | synonyms

1
vote
1answer
107 views

Optimizing a Google card layout

I'm developing an Android app in which I would build a card layout with a custom library. I think that my layout has not been optimized, but I don't know how I can this. It's not a very simple layout ...
3
votes
2answers
53 views

Align text (left, center, right) without additional packages

I wrote this short subroutine to left, center, right-align a multiline string. How can I make it better (shorter, prettier, optimized)? Can you offer some suggestions? ...
7
votes
1answer
115 views

Incrementing letter-spacing of one line of text

I was asked to create a script which will increment the letter-spacing of one line of text, until its width matches that of the first line; for use in headline/subheadline text to maintain a block ...
8
votes
1answer
65 views

Honey I shrunk the view

Going down the rabbit hole, I wanted to be able to change the size of a form, and not have to worry about the layout of the controls. vba doesn't support user-resizeable forms, but forms still have a ...
5
votes
1answer
132 views

Justification of my current approach and possible suggestions about alternative to a Grid in a StackPanel form for an easier way of inserting new rows

In my real life example I am at a layout stage and before I actually move any further I would like to review my current approach. I am still learning about UI, XAML on WPF technology and I guess I ...
4
votes
1answer
361 views

Should I split code into smaller functions? Advice on layout

I have the following code. I was wondering if anyone can give me any pointers on how to make this more concise and neater? Should I be splitting this down into smaller functions? ...
3
votes
1answer
85 views

Am I over using <ul> for layout?

I want to create a small web widget, you can see it at this jsfiddle. Right now it is organized by placing lists within lists and content within those lists. All of this is supposed to sit, as a bar, ...
7
votes
1answer
1k views

Dividing the screen in two halves using LinearLayout

I want to divide the screen in two halves. The layout is locked on portrait mode. The top half will have one button and the bottom half will have many buttons. That's why I choose this division, since ...
0
votes
1answer
260 views

Angular version of FitText

This project has evolved a lot since I started learning Angular. I'm pretty happy with it now, and I'm wondering if there's anything I can improve upon, or have forgotten at this point... HTML ...
5
votes
4answers
159 views

Improve HTML structure?

I am not new to html however would like to know about best practices. I need to develop a layout like this: This is what I have proposed: ...
4
votes
1answer
84 views

Webpage Template

Introduction I am designing a website as a hobby. As you can probably tell from the code below, I am an absolute beginner. The first thing I'd like to do is to create a nice webpage template that I ...
1
vote
2answers
118 views

How's my and my father's java ODE Solving and Graphing Program?

At the request of my father, I've adapted some C# code he wrote which uses a timer to display the true and approximate solutions of the ODE y' = -lambda*y in real time to do the same in java and then ...
1
vote
2answers
958 views

Nested layouts - BoxLayout inside BorderLayout

I have this code: ...
2
votes
1answer
322 views

HTML - single page layout - absolute positioning

I am doing web apps, mostly single page apps. So i have to give absolute and fixed positioning a lot via css. For Example, consider this page layout: ...
2
votes
1answer
281 views

Java Swing Panel layout [closed]

I am working on a Java project for college that involves us setting up a TCP Server and Client. I have that part working and now to add more of a feel to my project I want to add a GUI. We have not ...
7
votes
2answers
3k views

Is nesting grids a good idea?

I find myself nesting a lot of grids inside grids in WPF. I just found myself 3 Grids deep, and stopped to think: "Should I be doing this?" Is there some kind of performance cost? Is it ...
3
votes
3answers
405 views

How to make this code more readable

This is a page that allow user to do register: ...
2
votes
1answer
966 views

wxPython Form Builder - Sizer Automation

Presented for critique are a pair of classes which automate Sizer Creation and Layout in wxPython. ...