Split - How do I set the widths of two images on the screen? |
Split - How do I set the widths of two images on the screen? |
bhs67 |
Aug 15 2024, 01:02 PM
Post
#1
|
Group: Members Posts: 9 Joined: 17-April 24 Member No.: 29,168 |
index.html
-------------------------- <main> <div id="blocksAndButtons" class="split left"> <div id="blocklyDiv"></div> </div> <div id="canvasContainer" class="split right"> <canvas id="canvas" width="450" height="260"></canvas> </div> <script src="cars/image.js"></script> </main> -------------------------- index.css -------------------------- body{ font-family: 'Courier New', Courier, monospace; text-align: center; #canvasContainer { display: flex; margin-top: 20px; margin-right: 20px; } #blocksAndButtons { margin-top: 20px; margin-left: 20px; } } .split { height: 100%; width: 40%; position: fixed; z-index: 1; top: 0; overflow-x: hidden; } .left { left: 0; } .right { right: 0; } -------------------------- Split - How do I set the widths of two images on the screen? I want the left side to be 60% and the right side to be 40% |
coothead |
Aug 15 2024, 03:44 PM
Post
#2
|
Advanced Member Group: Members Posts: 240 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 |
Hi there bhs67,
coothead This post has been edited by coothead: Aug 15 2024, 03:50 PM |
coothead |
Aug 15 2024, 04:21 PM
Post
#3
|
Advanced Member Group: Members Posts: 240 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 |
coothead |
bhs67 |
Aug 18 2024, 07:54 AM
Post
#4
|
Group: Members Posts: 9 Joined: 17-April 24 Member No.: 29,168 |
This is what I used to display - https://snipboard.io/UCVY5k.jpg. This code is at Github - https://github.com/bhs67/Split-Forum-Before.
This is after I made after I made the recommended changes - https://snipboard.io/KAiae1.jpg. This code is at https://github.com/bhs67/Split-Forum-After. I made some errors in the files in my "Split Forum After" folder. I want the two images next to each. This post has been edited by bhs67: Aug 18 2024, 08:05 AM |
bhs67 |
Aug 21 2024, 06:50 AM
Post
#5
|
Group: Members Posts: 9 Joined: 17-April 24 Member No.: 29,168 |
coothead, Your first post works! Thanks!
|
coothead |
Aug 21 2024, 06:57 AM
Post
#6
|
Advanced Member Group: Members Posts: 240 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 |
|
Sue-Ellen |
Dec 25 2024, 09:12 AM
Post
#7
|
Newbie Group: Members Posts: 14 Joined: 2-September 06 Member No.: 53 |
That's one sexy banana!
|
coothead |
Dec 25 2024, 09:51 AM
Post
#8
|
Advanced Member Group: Members Posts: 240 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 |
|
Lo-Fi Version | Time is now: 22nd January 2025 - 08:26 PM |