liveBook · Manning

Customization

As explained in Build a Website with ChatGPT

Code customization is the manual modification of generated or existing source code to achieve desired behavior or presentation.

Code customization means manually modifying generated or existing source code to change a page’s behavior, content, appearance, or presentation. Use it for small adjustments; rewrite the prompt and regenerate when the page needs major changes. section 5.4 section 10.8

Customize a generated web page carefully:

  • Open the HTML or CSS file in a text editor. section 5.4
  • Edit visible text while preserving surrounding HTML tags, attributes, and quotation marks. section 10.8
  • Duplicate an existing <details> entry to add an accordion item, then change its title, date, and text. section 5.4
  • Adjust CSS color, font-size, padding, margin, width, or overlay values while keeping required units such as px. section 5.4 section 13.7
  • Leave complex JavaScript alone unless you understand it; an injudicious edit can make an interactive catalog unusable. section 13.6.3

Change entry text styling

Add this rule to the CSS file to make entry paragraphs larger: .entry-text { font-size: 20px; } section 5.4

<main>
    <details>
        <summary class="entry-title">Title of Entry 1</summary>
        <p class="entry-date">24 July 2023</p>
        <p class="entry-text">Entry text goes here.</p>
        <p class="entry-text">Another paragraph goes here.</p>
        <p class="entry-text">You can keep going if you want.</p>
    </details> 

Shows the HTML structure of an accordion entry, including its title, date, and multiple paragraphs of entry text. section 5.4

How Build a Website with ChatGPT covers it

How deep it goes
Explains practical HTML and CSS edits with steps and examples, but defers complex JavaScript modification.
Examples
Uses accordion entries, gallery captions and alt text, CSS colors and spacing, sorting fields, and rem conversions.
What it assumes
Assumes a generated page and basic file editing while explaining relevant HTML tags, CSS values, and measurement units.
What you can do after
Operate/configure generated pages by editing HTML and CSS safely and recognizing when to regenerate or avoid JavaScript changes.
How it connects
Connects customization with HTML, CSS, JavaScript, prompts, text editors, accessibility, and ChatGPT-generated pages.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Website with ChatGPT. The section links point to the parts of the book it draws on.