This tool helps content editors format multiple types of content for the Caltech Library blog with consistent, accessible styling including book lists, events, resource links, and featured card layouts.
- index.html - The main tabbed formatter tool (open in browser)
- content-styles.css - CSS to add to your blog stylesheet
- blog.png - Logo image
- web component/ - Source files for the Three Card Layout web component
The tool has four tabs for different content types:
Use this for: Creating formatted book lists from ISBNs
Step 1: Choose Your Layout
- Vertical List - Books displayed in a stacked list with cover on left, details on right
- Horizontal Grid - Books displayed in a grid with covers and titles
Step 2: Enter Book Details
Quick Fill Option:
- Paste a list of ISBNs (comma-separated or one per line) into the text box
- Click "Fetch Book Details"
- The tool automatically fetches from Open Library:
- Book title
- Author(s)
- Cover image
- ISBN
- Description (via Google Books, falls back to Open Library)
- Review and edit the auto-filled information
- Manually add Call Number if needed (optional)
- Click "Format Book List"
- (Optional) Click "Preview Styled Output" to see how it will look
- Click "Copy to Clipboard"
- Paste into your blog's Source Code view
Manual Entry Option:
- Fill in the form fields for each book:
- Title (required)
- Author (optional)
- ISBN (optional)
- Description (optional) - brief summary of the book
- Cover Image URL (optional)
- Cover Alt Text (optional) - defaults to "Book cover of [Title] by [Author]"
- Call Number (optional)
- URL/Permalink (optional)
- Click "+ Add Another Book" to add more books
- Click "Format Book List" when done
- (Optional) Click "Preview Styled Output"
- Click "Copy to Clipboard"
- Paste into your blog's Source Code view
What it generates:
- Book entries with cover images displayed on the left
- Book title, author, description, ISBN, and call number
- Alternating background colors for readability
- "View Book" button if URL is provided
- HTML comments marking the beginning and end of the book list
Use this for: Creating styled event announcements
Quick Fill Option:
- Upload an .ics calendar file using the file picker
- The tool automatically fills in:
- Event title
- Date and time (always displayed in Pacific Time)
- Location
- Description
- URL (if available)
- Review and edit the auto-filled information
- Click "Format Event"
- (Optional) Click "Preview Styled Output"
- Click "Copy to Clipboard"
- Paste into your blog's Source Code view
Manual Entry Option:
- Fill in the form:
- Event Title (required)
- Date (required) - use the date picker
- Time (optional) - displayed in Pacific Time (PST or PDT depending on date)
- Location (optional)
- Description (required)
- Link (optional) - registration or more info URL
- Link Text (optional) - defaults to "Learn More"
- Click "Format Event"
- (Optional) Click "Preview Styled Output"
- Click "Copy to Clipboard"
- Paste into your blog's Source Code view
What it generates:
- Calendar-style date box with day and month
- Event title, date, time (with PST/PDT label), and location
- Event description
- "Learn More" link button if URL provided
- HTML comments marking the beginning and end of the event
Use this for: Creating styled resource/link lists
Quick Fill Option:
- Paste a list of URLs (one per line) into the text box
- Click "Fetch Link Details"
- The tool automatically fetches:
- Page title
- Page description (meta description)
- Review and edit the auto-filled information
- (Optional) Add a section title (e.g., "Related Resources")
- Click "Format Links"
- (Optional) Click "Preview Styled Output"
- Click "Copy to Clipboard"
- Paste into your blog's Source Code view
Manual Entry Option:
- (Optional) Add a section title (e.g., "Related Resources")
- For each link, fill in:
- Link Title (required)
- URL (required)
- Description (optional)
- Click "+ Add Another Link" to add more links
- Click "Format Links" when done
- (Optional) Click "Preview Styled Output"
- Click "Copy to Clipboard"
- Paste into your blog's Source Code view
What it generates:
- Styled link cards with hover effects
- Optional section title
- Link title, URL, and description for each link
- Links open in new tab
- HTML comments marking the beginning and end of the link section
Use this for: Displaying three featured items side-by-side (or stacked), such as spotlighted resources, services, or announcements
Step 1: Choose Your Layout
- Horizontal Row - Three cards displayed side by side (stacks on mobile automatically)
- Vertical Stack - Three cards stacked with image on the left and content on the right
Step 2: Enter Card Details
Fill in the form for each of the three cards:
- Title (required)
- Description (optional) - brief text for the card body
- Image URL (optional) - displayed at the top (horizontal) or left (vertical) of the card
- Image Alt Text (optional) - defaults to the card title if not provided
- Link URL (optional) - if omitted, no link button appears on that card
- Link Text (optional) - defaults to "Read more"
Click "Format Cards" when all three cards are filled in.
Step 3: Retrieve Formatted HTML
- (Optional) Click "Preview Styled HTML" to see how it will look
- Click "Copy to Clipboard"
- Paste into your blog's Source Code view
What it generates:
- A
<card-layout>web component tag with all card content as attributes - A
<script>tag that loads the component from the Caltech Library CDN - No additional CSS needed β styles are built into the component
- HTML comments marking the beginning and end of the card layout
Note: The card layout uses a web component with encapsulated styles (Shadow DOM). It does not depend on content-styles.css and will automatically receive style updates when new versions of the component are released.
- Book cover images displayed on the left (120px wide)
- Book information on the right (title, author, description, ISBN, etc.)
- Alternating background colors (light grey/white) for readability
- Green "View Book" button (when URL is provided)
- Clean spacing with bottom borders between entries
- Calendar-style date box with colored background
- Event details laid out horizontally
- Date, time (with PST/PDT label), and location clearly formatted
- Event description with good readability
- Styled link button for registration/more info
- Card-style layout with borders
- Hover effects on link items
- Optional section title with bottom border
- Link titles, URLs, and descriptions
- Links open in new tabs
- Responsive flexbox layout β horizontal row on desktop, stacks on mobile
- Vertical layout option with image left, content right
- Placeholder shown when no image is provided
- Link button hidden automatically if no URL is provided
Problem: Book details not fetching
- Solution: Check that ISBNs are valid and properly formatted (10 or 13 digits)
- Solution: Some books may not be in the Open Library database; fill in manually if needed
Problem: The styling doesn't show up on the blog
- Solution: Check that content-styles.css has been added to the blog's stylesheet
Problem: Cover images not showing
- Solution: Some books may not have cover images available; you can add a custom cover image URL
Problem: Can't format event
- Solution: Make sure you've filled in all required fields (Title, Date, Description)
Problem: ICS file not uploading
- Solution: Make sure the file is a valid .ics calendar file
Problem: Time shows incorrectly after ICS import
- Solution: Times are always converted to Pacific Time. If the time looks wrong, check that the original event was saved with the correct time in LibCal and re-download the .ics file
Problem: "Some links are incomplete"
- Solution: Each link needs both a title and URL. Fill in or remove incomplete links
Problem: URL fetch not working
- Solution: Some websites may block automated requests; fill in the title and description manually if needed
Problem: Cards not displaying on the blog
- Solution: Make sure the full output was copied, including the
<script>tag at the bottom - Solution: The web component requires a modern browser; it will not render in very old browsers
Problem: Card layout looks unstyled in preview
- Solution: The preview loads the component script from the Caltech Library CDN; make sure you have an internet connection when previewing
- Use the preview before copying - it shows exactly how content will look on the blog
- Use Quick Fill features - ISBN, ICS, and URL imports save time and reduce errors
- Combine content types - Format books, events, and links separately, then paste them all into one blog post
- HTML comments help identify sections - Each formatted section includes comments like
<!-- BEGIN BOOK LIST -->to help you find content in source code - Keep the tool open - You can switch between tabs without losing your work
- Clear between uses - Use the "Clear" button to start fresh on each tab
- Edit after import - Quick Fill auto-populates data, but you can always edit any field before formatting
The Books, Events, and Links tabs use these CSS classes from content-styles.css. The Three Card Layout tab uses a web component with built-in styles and does not use these classes.
.book-item- Main container for each book.book-item-odd/.book-item-even- Alternating background colors.book-content- Flexbox container for cover and info.book-cover- Book cover image container.book-cover-img- Book cover image (120px wide).book-info- Book information container.book-main- Title, author, and description container.book-title- Book title.book-author- Book author.book-description- Book description text.book-meta- Metadata container.book-details- ISBN, call number.book-view-btn- "View Book" button/link
.event-item- Main container.event-date-box- Calendar-style date box.event-day- Day number in date box.event-month- Month in date box.event-content- Event details container.event-title- Event title.event-meta- Date/time/location container.event-meta-item- Individual meta item (Date, Time, Location).event-description- Event description.event-link- Call-to-action link
.link-section- Overall container.link-section-title- Section heading.link-item- Individual link container.link-title- Link title with anchor tag.link-description- Link description
If you encounter any issues or have questions, please contact the web team.
Last Updated: February 2026 Version: 5.0 - Added Three Card Layout content type