No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* General layout styling */ | ||
body { | body { | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: flex-start; | align-items: flex-start; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
min-height: 100vh; | min-height: 100vh; | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
} | } | ||
/* | /* Central content container */ | ||
#content { | #content { | ||
max-width: | max-width: 1200px; /* Adjust width as needed */ | ||
width: 100%; | width: 100%; | ||
margin: 20px auto; | margin: 20px auto; | ||
padding: 20px; | background-color: #ffffff; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* | padding: 20px; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |||
border-radius: 8px; | |||
display: flex; /* Enable Flexbox for two-column layout */ | |||
flex-direction: row; /* Arrange children horizontally */ | |||
gap: 20px; /* Add space between columns */ | |||
} | } | ||
/* | /* Left column ("top") */ | ||
# | #top { | ||
flex: 1; /* Allow this section to grow/shrink as needed */ | |||
border-radius: 8px | background-color: #f2f2f2; /* Optional: Background for the left column */ | ||
padding: 20px; | |||
border-radius: 8px; | |||
} | |||
/* Right column ("article") */ | |||
#article { | |||
flex: 2; /* Make this column wider */ | |||
background-color: #e8e8e8; /* Optional: Background for the right column */ | |||
padding: 20px; | |||
border-radius: 8px; | |||
} | } | ||
/* Footer alignment */ | /* Optional: Footer alignment */ | ||
#footer { | #footer { | ||
text-align: center; | text-align: center; | ||
margin-top: 20px; | margin-top: 20px; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
color: #666; /* | color: #666; | ||
width: 100%; /* Ensure it spans the full width of the container */ | |||
} | } | ||
Revision as of 20:51, 14 December 2024
/* General layout styling */
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
background-color: #f9f9f9;
min-height: 100vh;
font-family: Arial, sans-serif;
}
/* Central content container */
#content {
max-width: 1200px; /* Adjust width as needed */
width: 100%;
margin: 20px auto;
background-color: #ffffff;
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-radius: 8px;
display: flex; /* Enable Flexbox for two-column layout */
flex-direction: row; /* Arrange children horizontally */
gap: 20px; /* Add space between columns */
}
/* Left column ("top") */
#top {
flex: 1; /* Allow this section to grow/shrink as needed */
background-color: #f2f2f2; /* Optional: Background for the left column */
padding: 20px;
border-radius: 8px;
}
/* Right column ("article") */
#article {
flex: 2; /* Make this column wider */
background-color: #e8e8e8; /* Optional: Background for the right column */
padding: 20px;
border-radius: 8px;
}
/* Optional: Footer alignment */
#footer {
text-align: center;
margin-top: 20px;
font-size: 0.9em;
color: #666;
width: 100%; /* Ensure it spans the full width of the container */
}
