gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
I'm frontend developper, please provide a css for a Marp theme with a centered logo in…
- User
I'm frontend developper, please provide a css for a Marp theme with a centered logo in the footer
- Assistant
Here's a sample CSS for a Marp theme with a centered logo in the footer:
code/* Marp theme with centered logo in the footer */ /* Main slide layout */ section.slide { display: flex; flex-flow: column nowrap; justify-content: space-between; align-items: center; height: 100%; } /* Footer */ section.slide footer { display: flex; flex-flow: row nowrap; justify-content: center; align-items: center; padding: 0 1rem; width: 100%; height: 2rem; background-color: #333; color: #fff; } /* Footer logo */ section.slide footer img.logo { margin-right: 1rem; height: 100%; max-width: 80px; }To use this CSS in your Marp presentation, you can create a
theme.cssfile and add this code. Then include the file in your Marp markdown like this:code--- marp: true theme: css/theme.css ---Be sure to update
css/theme.cssto the correct path of your CSS file. Also, replace with the selector for your logo image.