Skip to content

Commit ec8137e

Browse files
author
Ariel Jolo
committed
trying new layout
1 parent c7e7f13 commit ec8137e

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

themes/osi/template-parts/content-board-member.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
22
/**
33
* Template for displaying a board member in a side-by-side layout:
4-
* Left column (header) is 30% wide and sticky; right column is 70% wide.
4+
* - Left column (header) is 30% width, sticky under the site header.
5+
* - Right column (main content) is 70% width, scrolls normally.
6+
* - The wrapper spans 100% of the browser width.
57
*
68
* @package osi
79
*/
@@ -29,23 +31,24 @@
2931
</article>
3032

3133
<style>
32-
/*
33-
The container for both columns:
34-
- We use flex to lay out the left and right columns.
35-
- We leave some gap if needed.
36-
*/
34+
/* Make the wrapper fill the entire screen width */
3735
.board-member-wrapper {
36+
width: 100%;
37+
max-width: none;
38+
margin: 0;
39+
padding: 0;
3840
display: flex;
39-
align-items: flex-start; /* So columns align at the top */
40-
gap: 0; /* adjust as desired */
41+
align-items: flex-start; /* top-align columns */
4142
}
4243

4344
/* LEFT COLUMN: 30% width, sticky under the site header */
4445
.board-member-header {
4546
position: sticky;
46-
top: 120px; /* match this to your site header height so there's no overlap */
47+
top: 120px; /* adjust to your site header height */
4748
width: 30%;
48-
flex-shrink: 0; /* prevents the left column from shrinking */
49+
flex-shrink: 0; /* don't let the left column shrink */
50+
background-color: #fff; /* optional if you need a background */
51+
padding: 20px;
4952
box-sizing: border-box;
5053
}
5154

0 commit comments

Comments
 (0)