LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-09-2023, 04:15 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Angry (CSS) All my other forums are failing me. How can I make this layout work?


I know, not even figuratively a programming language, but I know one of you cats here will be an accomplished front end dev.

https://jsfiddle.net/t9Lpfmeb/1/ <-- Everything should fit inside of the red box.

So what I want is an absolute position div (it will become a modal),

: that contains a top row that is short

: a middle row which fills the remaining space

: a bottom row that is short

In the middle row is two columns, side by side

: the left column will house a textarea that should fill the entirety of the left column

: the right column will house a scrollable area that should fill the entirety of the right column

I like fieldsets, but I'll make do with something else if that's the issue.


I am fairly comfortable on the command line, am a full time linux user, fairly confident with PHP, JS, Apache, Proxmox, Wireguard, ESP32 etc ... CSS seems like one of the most difficult things I've had to learn in recent years. I don't know what is wrong with me lol.
 
Old 06-09-2023, 04:24 PM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
I am no CSS expert by any means, but have been playing with grids for my own project.

How do you feel about getting rid of the embedded grid on the second row (that seems to be what is causing your issue)?

One grid, two equal columns, three rows. First and last row span 2 columns. It seems to do what you want.

https://jsfiddle.net/fy9uxpn5/

Last edited by goumba; 06-09-2023 at 04:27 PM.
 
1 members found this post helpful.
Old 06-09-2023, 04:30 PM   #3
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Quote:
Originally Posted by goumba View Post
I am no CSS expert by any means, but have been playing with grids for my own project.

How do you feel about getting rid of the embedded grid on the second row (that seems to be what is causing your issue)?

One grid, two equal columns, three rows. First and last row span 2 columns. It seems to do what you want.

https://jsfiddle.net/fy9uxpn5/
Deadly!

Thanks so much!

My intuition never works when I approach CSS problems. Do you know what the issue was with my approach?
 
Old 06-09-2023, 05:10 PM   #4
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Grids are funny beasts, I'm learning. The fractional unit in particular seems to present problems in my own project, where an embedded grid and some other blocks refuse to stay within it's parent. If I use "hard" units - like pixels, points, inches, etc - it doesn't happen. Just the flexible units seem to overflow without reason.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Y'know CSS was to kill off HTML table layout? Well, second time's a charm: Meet CSS Grid LXer Syndicated Linux News 0 04-01-2017 07:03 PM
how can I correctly display a webpage layout using css mia_tech Programming 1 04-02-2014 03:58 AM
LXer: Making GTK3 themes – Part 2: The gtk.css and gtk-widgets.css file LXer Syndicated Linux News 0 07-24-2012 01:50 PM
CSS - Is there a way to put several lines of HTML into one line using CSS? Chronothread Programming 12 01-05-2011 06:06 AM
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 12:21 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration