Questions tagged [grid-layout]

Grid layout is used to align content into columns and fields. Unlike table layouts, grids are composed of guide lines so that elements positioned relative to the grid can have drag and drop behavior.

grid-layout
Filter by
Sorted by
Tagged with
-1 votes
1 answer
37 views

Trouble Formatting BoxLayout

I want to layout 6 components, vertically aligned in one column. In addition, I want a blank space of 200 pixels before the first component in the column. I have the following code: public class ...
user50210's user avatar
-1 votes
1 answer
68 views

Adjust Grid Size according to the content

How can i define Grid size so that it can increase and decrease according to the TextBlock Content in wpf?
aa aa's user avatar
  • 399
-1 votes
1 answer
391 views

Swing based Java game

this is a problem that I've been really struggling with I need to create a game for some University coursework. The game is basically a 4x4 grid. When i click a button, the player should move ...
Jordan Moffat's user avatar
-1 votes
2 answers
128 views

Gridlayout pictures to small eclipse

I have a gridLayout form 3 by 3. with in there imagebuttons. the grid is working, but i want the images to fill the weight of the parent. this is the code i have: <LinearLayout xmlns:android="http:...
Kelly Mies's user avatar
-1 votes
1 answer
54 views

3 x 3 grid, cant place text above each img in ul

I'm trying to place text over each individual img in a li, making a 3 x 3 grid. I'm using the ul to keep the images nice and responsive but cant seem to place text above them individually. This is ...
user3661106's user avatar
-1 votes
1 answer
333 views

Why <div class="clear"></div> didn't used?

Hi, sometimes learning something makes you more confused, I am in that position right now, thanks in advance. I asked a question in this address: Why <div class="clear"></div> ...
Andre Chenier's user avatar
-1 votes
1 answer
1k views

Columns with padding overlapping, but not filling width

I'm creating a 5-column layout with divs overlapping each other, to make a 5px space between them. I'm using border-box to fix annoying padding issues. The problem: The columns simply won't fit the ...
Matias Vad's user avatar
  • 1,733
-1 votes
1 answer
35 views

How to achieve stacking in CSS grid layout

I would like some help from the CSS Gurus please. I need to make a Grid Layout whereby there are 3 divs within the grid. the first div takes up 2 thirds of the width and is twice the height of the ...
user3859651's user avatar
-1 votes
1 answer
60 views

Android how to achieve this type of layout with rows and col span

Requirement: I should be able to scroll entire view if left view is visible or not (all components should scroll at a time if i scroll anywhere with in the view). By clicking on show/hide left view ...
Naresh Gunda's user avatar
-1 votes
1 answer
850 views

Right-aligned responsive CSS grid layout

I have an HTML layout I need to develop and I can't think of any nice way to do it... How can I make this layout? It is basically a normal responsive centred column layout, where the column is a max-...
Ned Martin's user avatar
-2 votes
2 answers
127 views

Impossible Bootstrap Layout

I am working on a programmatic method for laying out bootstrap grids. Is there a correct way to lay out a theme such as this? MMMMMMMMMMMMMMMMMMMMM MMMMMMM MMMMMMMMMMMMMMMMMMMMM MMMMMMM ...
zeros-and-ones's user avatar
-2 votes
2 answers
5k views

Gridlayout and Flowlayout. what are these? [closed]

i would ask a question. WHAT and WHAT are the DIFFERENCE of FLOWLAYOUT and GRIDLAOUT in java. advantages and disadvantages (if theres). because my prof says about these terms to build a GUI in ...
jarnthrax's user avatar
  • 146
-2 votes
1 answer
445 views

Python tkinter grid layout mixed up

I'm new to Python and therefore Tkinter. For a first small project I'm trying to create a program to write a CSV file. The program gets a filename on startup, checks the file for a header and creates ...
Avarion's user avatar
-2 votes
1 answer
1k views

Can I do change in the size of JTextField using GridLayout (like width and height of field)?

can I do change in the size of JTextField using GridLayout (like width and height of field) in Java I tried this but it doesn't work: txt=new JTextField(20);
rola's user avatar
  • 9
-2 votes
1 answer
2k views

Unexpected layout issue using GridLayout

I am trying to get a JPane to fill up its given space, but it wont. this code should be explanitary... JPanel memWindow = new JPanel(); memWindow.setLayout(new GridLayout(1, 4)); ...
Shuba's user avatar
  • 366
-2 votes
1 answer
293 views

How to wrap and stack items in QML, into rows and columns

I have a series of buttons that I want to appear in columns at the bottom of my QML page. The number of columns across should depend on the width of the window, as the window width increases I want ...
TSG's user avatar
  • 4,423
-2 votes
1 answer
733 views

Remove whitespace of hidden items on a grid

I am working on a catalog for a website that uses a grid to show different purchaseable items. Now I have a function that will hide certain items in the grid by clicking an image. But when clicked the ...
kyllion001's user avatar
-2 votes
1 answer
38 views

*beginner Why is this grid layout not working for html? i cant figure out

i learned the basics of grid layout today and got one to work but i cant figure out why this is not working. At the moment i cant figure out why. Any help will be much appreciated. here is my HTML ...
Amit Dahal's user avatar
-2 votes
1 answer
367 views

CSS grid layout without predetermining number of columns for each cell

Grid with 6 columns. Each column of the grid is 50px Content 1: <section><p>hello</p></section> Content 2: <section><img width="110"></section> Content 3: &...
Thomas David Baker's user avatar
-2 votes
2 answers
108 views

Interview prep: K Queen attack [closed]

I have an N by N grid and K queens in it. The queen can move vertically, horizontally or diagonally. I want to figure out if any queen can attack any other queen in O(N) time.
Hassam Ullah Sheikh's user avatar
-2 votes
1 answer
1k views

How to set size of MARGINS in GridLayout

I am adding ImageButtons one at a time to a GridLayout using RecyclerView. My app listens for incoming images and strings to label the buttons. I want to add a margin to the right of each button and ...
Emily Di-Lee's user avatar
-2 votes
2 answers
706 views

How to create an Asymmetric Layout on Android

How to create an asymmetric layout similar to the image attached? The standard android guides show only how to create symmetric Lists and Tables
Raviraja's user avatar
  • 406
-2 votes
1 answer
150 views

How do I count the number of paths in this problem?

You are given an n×n grid where each square contains an integer between 1…n^2. A route in the grid starts from some square and moves always either vertically or horizontally into another square, which ...
mathematician256's user avatar
-2 votes
2 answers
3k views

Why is my page div not filling up the entire screen? [duplicate]

Unfortunately I am horrible at CSS and HTML, so I can't figure out why my page looks like this: As you can see, there is all that whitespace when the entire background should be black. CSS: #page { ...
archingfork's user avatar
-2 votes
2 answers
224 views

Sorting 2D Arrays Using Python

I am currently taking a class called Intro to Computer Science and we are learning Python (Python 3) and I am having some trouble figuring out how to get my code into the format that is in the "...
Audrey Washington-Wright's user avatar
-2 votes
1 answer
2k views

Most efficient way to code a responsive 2 (50%) / 3 (33%) column CSS-grid layout?

I'm currently trying to layout a fairly straightforward responsive image grid using CSS Grid (see image) A static image of the CSS grid layout I'm attempting to create: The first row will show two ...
LucyR's user avatar
  • 13
-2 votes
1 answer
32 views

How to give CSS attributes to new labels that have not been fully defined?

I have a system of which creates a new Label in Javafx that is predefined but is just created on the spot whenever a method is ran. I want to be able to edit the background color of the label(s) that ...
user avatar
-2 votes
2 answers
947 views

Syntax error with simple button.grid(row=1, column=0) code - tkinter

Im getting a syntax error, if i take out the 'Button' code it works. I think it is to do with the grid function, but im not sure how to fix it. from tkinter import * app=Tk() app.title("Framing ...
Jamie's user avatar
  • 11
-2 votes
1 answer
636 views

card layout custom posts design wordpress

I am trying to accomplish a minimalistic grid/card layout in wordpress. I am new developer and new to wordpress, and so I'm having difficulty achieving a result like this: desired result current ...
wpnewbie's user avatar
-2 votes
2 answers
366 views

Jquery: add row with set number of columns and set width

This will probably sound trivial to you but still.. User inputs a name and two numbers, all stored in variables. This is repeated multiple times. I want to display that data in a 19 columns row, of ...
Fabio Mancin's user avatar
-2 votes
1 answer
2k views

How to make GridLayout to respect columns setting?

I had been trying to make gridlayout to give the same columns as i had specified in the code instead i got 3 times amount of my specification, any idea on why it is like this and how to solve this ...
user2586759's user avatar
-2 votes
1 answer
708 views

Making card game, need to add JLabels to JPanel at runtime based on how many cards in player's hand

In my game, the player's hand will typically be around 5 cards (and a separate ArrayList), but can get massive quickly with a lot of "draw cards" options in the game. Everywhere else that cards are ...
lfernandes's user avatar
-2 votes
1 answer
447 views

Grid vs Flex for implementations of Holy Grail-like layout [closed]

I want my layout to go from this when Sidebar is present: To this when Sidebar is not present: To get this effect, I believe three modern choices are to: Grid alone: have a grid that utilizes a ...
Raj's user avatar
  • 1,645
-3 votes
3 answers
201 views

Bootstrap Grid Layout is overlapping

I have an Bootstrap Responsive Grid-Layout. I get these problems. So, the "cells" are overlapping. This happens with container-fluid and row-fluid too. I know, I can use overflow and text-overflow ...
woaahmxtn's user avatar
-3 votes
2 answers
819 views

How does Pythons .grid() function work

I try to use the following to align buttons but it doesn't work #creates entry inputs for answers entry=Entry(master) entry.pack() entry.focus_set() #button 1 created and used to call addition ...
jmckee's user avatar
  • 1
-3 votes
1 answer
1k views

Setting an icon image to top right and bottom left buttons [closed]

How would I go about creating a 4x4 grid of colored,clickable areas using swing? Ok, so I have the buttons I need. This is the updated code I have. I am now trying to to get a text field or jlabel ...
user2835532's user avatar
-3 votes
1 answer
342 views

Java Grid Layout Order

I have 3 toggle buttons which can turn on/off three panels in a grid layout, let's call them panels A, B, and C. I want to achieve that no matter what order I turn the panels on, they will end up in ...
schafran's user avatar
  • 669
-3 votes
2 answers
821 views

Swing - After setVisible(false) white space remains

I have an outer JPanel that holds a list of inner panels in it, and my Layout is GridLayout Under certain conditions, I want to render invisible some of my inner panels. The problem is, after I do ...
Mehdi's user avatar
  • 3,825
-3 votes
1 answer
84 views

Need help on Java Swing JFrame

I'm very new to Swing and I need to build a JFrame that: Has an image on top. Below the image has 16 little images divided into 4 groups (4 "panels"), on the same "row". Below those 16 images I need ...
Saulo Tammari's user avatar
-3 votes
1 answer
187 views

Adjacent JButtons [closed]

I am creating a word game where letters must be chosen from a 6X6 grid. However, only adjacent letters can be chosen(ie. adjacent buttons). What way is there of identifying that buttons are adjacent ...
user3084426's user avatar
-3 votes
1 answer
98 views

Using grid with Angular (CSS)

I would like to use display: grid; in my Angular project. According to https://caniuse.com/#feat=css-grid it seems that IE 11 only partially supports it by using -ms-. prefix. Would it be enough ...
AngularDebutant's user avatar
-4 votes
1 answer
216 views

Java Swing gridLayout issue [closed]

I just cant get this to appear the way i want, im exhausted trying gridlayout, gridbaglayout, borderlayout etc... plz i need help this is what i did so far panneauEst = new JPanel(new ...
Pierre-luc G.'s user avatar
-4 votes
1 answer
70 views

What is the relationship between the container, the blocks and the bootstrap grid?

I have started learning coding on freecodecamp and got confused with the containers, inline vs block vs inline-block and the bootstrap 12 column system. What is the difference between a container and ...
Elly's user avatar
  • 1
-4 votes
1 answer
413 views

isotope.js - how to solve rendering wrong spaces in fluid layouts

As for the subject, I've got problems with isotope and fluid layouts. I don't think it's really an isotope problem itself. Probably some render issue browsers have when objects are treated/positioned ...
Luca Reghellin's user avatar
-7 votes
1 answer
89 views

Can I copy the content from GridLayout in android?

Is there any way in android to copy and paste GridLayout as same as Textview did? I have the GridLayout inside of LinearLayout. Inside of gridlayout, I have added more than one textviews. I need to ...
Nithya Murugan's user avatar

1
40 41 42 43
44