Skip to content

Commit 21c34bc

Browse files
authored
Fix layout issues in intro section and bullet points
Added styles to fix bullet points and layout issues caused by floating images. Updated the intro section for better text alignment and visibility.
1 parent fa261d1 commit 21c34bc

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

index.html

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@
5555
a { color: #0066cc; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
5656
a:hover { color: #004499; text-decoration: underline; }
5757

58+
/* Fixes bullet points hidden by floating images */
59+
#intro ul {
60+
list-style-position: inside;
61+
padding-left: 0;
62+
}
63+
64+
/* Creates a column for text so it doesn't "leak" under the image */
65+
.intro-text-block {
66+
overflow: hidden; /* This creates a new "block formatting context" */
67+
}
68+
69+
@media (max-width:850px) {
70+
.intro-text-block { overflow: visible; }
71+
}
72+
5873
/* Back to Top Button Styling */
5974
#backToTop {
6075
display: none; /* Hidden until user scrolls */
@@ -95,21 +110,24 @@
95110

96111
<div class="w3-container w3-padding-8 header-spacing" id="home">
97112
<img class="header-logo" src="images/Sawgraph-Logo-transparent.png" alt="SAWGraph logo">
98-
99-
<div id="intro">
113+
114+
<div id="intro" class="intro-text-block">
100115
<h2 class="w3-border-bottom w3-border-light-grey w3-padding-16">Overview</h2>
101116
<p><strong>Safe Agricultural Products and Water Graph (SAWGraph)</strong>: An <b>Open Knowledge Network </b> to Monitor and Trace PFAS and Other Contaminants in the Nation's Food and Water Systems
102117
<a href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2333782"><i>A ProtoOKN project</i></a></p>
118+
103119
<p>The goal of SAWGraph is to connect federal and other datasets to more quickly analyze data and make decisions around per- and polyfluoroalkyl substances (PFAS) sources, testing, impacts, and risks.
104-
The graph integrates data and provides interfaces that support:
120+
The graph integrates data and provides interfaces that support:</p>
121+
105122
<ul>
106123
<li>analysis, mapping and communication of the results of testing for PFAS contamination</li>
107124
<li>spatial connections to known and potential sources</li>
108125
</ul>
109-
to support PFAS research and decision making around PFAS testing and mitigation.</p>
126+
127+
<p>to support PFAS research and decision making around PFAS testing and mitigation.</p>
110128
</div>
111129
</div>
112-
130+
113131
<div class="w3-container">
114132
<div class="w3-card-4 w3-leftbar w3-light-grey" style="max-width:1100px; padding:15px">
115133
<img src="images/overview.png" style="width:100%;max-width:1000px" class="w3-margin w3-center" alt="Overview of SAWGraph architecture">

0 commit comments

Comments
 (0)