Engineering Tools for AI

程式設計

頁面修改用的 CSS 編輯術語

搜尋頁面修改時常用的 header、button、spacing、hover、responsive 等 CSS 與 UI 術語。

63 個項目

頁面結構

Header

Header

意思

The top area of a page, usually holding the site title, navigation, theme controls, language controls, and menu button.

修改方向

Changing header padding, height, border, or position changes how tall and fixed the top area feels.

注意

A taller header can reduce the visible content area, especially on mobile.

相關 CSS

headerpaddingheightpositionborder-bottom

請求範例

Make the mobile header title smaller while keeping the header height the same.

頁面結構

Footer

Footer

意思

The bottom area of a page, often used for links, legal text, contact information, or small navigation.

修改方向

Footer padding and border changes affect the amount of breathing room and the separation from the content above.

相關 CSS

footerpaddingborder-topmargin-top

請求範例

Add more top padding to the footer so it does not feel attached to the content.

頁面結構

Section

Section

意思

A large content area that groups related content such as a hero, tools list, reference cards, or article block.

修改方向

Section padding changes the vertical rhythm of the page. Background changes make the section feel separate.

相關 CSS

sectionpadding-blockborder-topbackground

請求範例

Reduce the vertical padding of the tools section on mobile.

頁面結構

Container

Container

意思

An inner wrapper that keeps page content from stretching too wide on large screens.

修改方向

Increasing max-width makes content wider. Increasing side padding keeps content away from screen edges.

相關 CSS

max-widthmargin-inlinepadding-inline

請求範例

Make the main container a little narrower on desktop.

頁面結構

Card

Card

意思

A framed block that presents one repeated item, such as a tool, reference entry, or result.

修改方向

Card padding, border, radius, and shadow control how dense or prominent each item feels.

相關 CSS

borderborder-radiuspaddingbackgroundbox-shadow

請求範例

Make the reference cards more compact by reducing their padding.

頁面結構

Panel

Panel

意思

A framed working area, usually holding controls, inputs, settings, or output.

修改方向

Panel spacing and layout changes affect how easy repeated tool use feels.

相關 CSS

borderbackgroundpaddingdisplay

請求範例

Align the panel controls in one row on desktop and stack them on mobile.

頁面結構

Navigation

Navigation

意思

A group of links or buttons used to move between major pages or categories.

修改方向

Gap, alignment, and visibility rules change how the navigation behaves on desktop and mobile.

相關 CSS

navdisplaygapalign-items

請求範例

Hide the navigation links on small screens and keep the menu button visible.

頁面結構

Menu

Menu

意思

A list of links or actions that opens from a button.

修改方向

Position, width, and z-index decide where the menu opens and whether it appears above other content.

注意

If the menu is placed in normal document flow, it can push the whole page down.

相關 CSS

positionrighttopz-indexwidth

請求範例

Make the menu open as a floating panel aligned to the right.

頁面結構

Sidebar

Sidebar

意思

A vertical area at the left or right side of the page, often used for navigation or filters.

修改方向

Sidebar width and responsive rules decide whether it stays visible, collapses, or moves below content.

相關 CSS

asidewidthpositiongrid-template-columns

請求範例

Move the filter sidebar below the content on mobile.

頁面結構

Hero

Hero

意思

The first large section of a page that introduces the main purpose or action.

修改方向

Hero padding, title size, and layout affect the first impression and how much content fits in the first viewport.

相關 CSS

paddingbackgroundmin-heightgrid

請求範例

Reduce the hero title size on mobile so the action buttons stay visible.

間距與尺寸

Padding

Padding

意思

Space inside an element, between the border and the content.

修改方向

Increasing padding-top adds more space above the content inside the element.

注意

More padding usually increases the visible size of the element.

相關 CSS

paddingpadding-toppadding-rightpadding-bottompadding-left

請求範例

Increase the top padding of the header slightly.

間距與尺寸

Margin

Margin

意思

Space outside an element, between it and neighboring elements.

修改方向

Increasing margin-bottom pushes the next element farther down.

相關 CSS

marginmargin-topmargin-rightmargin-bottommargin-left

請求範例

Add more margin between the hero section and the tools list.

間距與尺寸

Gap

Gap

意思

The space between items inside a flex or grid layout.

修改方向

Increasing gap spreads sibling items apart without adding extra space around the whole group.

相關 CSS

gaprow-gapcolumn-gap

請求範例

Reduce the gap between the theme button, language button, and menu button.

間距與尺寸

Width

Width

意思

The horizontal size of an element.

修改方向

A fixed width keeps the element stable. max-width lets it shrink on small screens.

相關 CSS

widthmin-widthmax-width

請求範例

Make the menu panel width match its longest item.

間距與尺寸

Height

Height

意思

The vertical size of an element.

修改方向

Fixed height can keep a header stable. max-height with overflow can keep dropdowns from becoming too tall.

相關 CSS

heightmin-heightmax-height

請求範例

Keep the header height stable while making the title smaller.

間距與尺寸

Max width

Max width

意思

The largest width an element is allowed to reach.

修改方向

Lowering max-width makes text lines shorter and panels narrower on large screens.

相關 CSS

max-widthwidth

請求範例

Set a max-width on the dropdown so it does not cover too much of the page.

間距與尺寸

Top / Right / Bottom / Left

Top / Right / Bottom / Left

意思

Position offsets used with positioned elements.

修改方向

right: 0 aligns a floating panel to the right edge of its positioned parent.

相關 CSS

toprightbottomleftinset

請求範例

Align the open menu panel to the right side of the header controls.

文字

Font size

Font size

意思

The size of text.

修改方向

Reducing font-size helps long labels fit in tight spaces such as mobile headers.

相關 CSS

font-sizetext-smtext-lg

請求範例

Make the mobile site title smaller but keep it on one line.

文字

Font weight

Font weight

意思

How thick or bold the text appears.

修改方向

Increasing font-weight makes labels more prominent without changing their size.

相關 CSS

font-weightfont-boldfont-semibold

請求範例

Make the category labels a little bolder.

文字

Line height

Line height

意思

The vertical space each line of text occupies.

修改方向

Increasing line-height makes paragraphs easier to read. Reducing it makes compact UI labels tighter.

相關 CSS

line-heightleading

請求範例

Increase the paragraph line-height in the hero description.

文字

Letter spacing

Letter spacing

意思

The space between individual letters.

修改方向

Small positive spacing can help uppercase labels feel clearer. Too much spacing can make Korean text awkward.

相關 CSS

letter-spacingtracking

請求範例

Remove negative letter spacing from compact buttons.

文字

Text align

Text align

意思

The horizontal alignment of text inside its container.

修改方向

Right-aligned menu text can make a floating menu feel attached to the right edge.

相關 CSS

text-align

請求範例

Right-align the menu item text inside the menu panel.

文字

Wrap / No wrap

Wrap / No wrap

意思

Whether long text can move to the next line or must stay on one line.

修改方向

No-wrap keeps a header stable, while wrapping can show more text but usually increases height.

相關 CSS

white-spaceword-breakoverflow-wrap

請求範例

Keep the mobile title on one line and truncate the overflow.

文字

Truncate / Ellipsis

Truncate / Ellipsis

意思

A way to cut off overflowing single-line text and show dots.

修改方向

Truncation prevents layout breakage when labels are longer than expected.

相關 CSS

overflowtext-overflowwhite-space

請求範例

Truncate the site title on very small screens.

色彩與背景

Color

Color

意思

The color of text or icons.

修改方向

Changing color affects readability and visual priority.

相關 CSS

color

請求範例

Make the selected language text visible in dark mode.

色彩與背景

Background

Background

意思

The color or image behind an element's content.

修改方向

Background changes can separate panels, highlight active states, or improve contrast.

相關 CSS

backgroundbackground-color

請求範例

Use a darker background for the selected language item in dark mode.

色彩與背景

Opacity

Opacity

意思

How transparent an element is.

修改方向

Lower opacity makes elements quieter, but it can reduce readability.

相關 CSS

opacityrgbacolor-mix

請求範例

Make disabled controls look dimmer without making the text unreadable.

色彩與背景

Gradient

Gradient

意思

A smooth transition between two or more colors.

修改方向

Subtle gradients can add depth, but strong gradients can make tools feel less practical.

相關 CSS

linear-gradientradial-gradientbackground-image

請求範例

Keep the hero background subtle and avoid a strong gradient.

色彩與背景

Accent color

Accent color

意思

A repeated highlight color used for labels, active states, or important actions.

修改方向

Changing the accent color changes the page's visual identity and emphasis.

相關 CSS

colorbackgroundborder-coloraccent-color

請求範例

Use the same green accent for category labels and active chips.

色彩與背景

Contrast

Contrast

意思

The difference between foreground and background colors.

修改方向

Higher contrast improves readability, especially in dark mode and on mobile screens.

相關 CSS

colorbackground-color

請求範例

Increase the contrast of dropdown items in dark mode.

邊框與形狀

Border

Border

意思

A line around an element.

修改方向

Border width and color control how strongly a box or button is separated from the background.

相關 CSS

borderborder-colorborder-widthborder-style

請求範例

Make the menu panel border slightly darker in dark mode.

邊框與形狀

Border radius

Border radius

意思

How rounded the corners of a box or button are.

修改方向

A small radius feels practical and compact. A large radius feels softer and more playful.

相關 CSS

border-radius

請求範例

Keep cards at an 8px border radius.

邊框與形狀

Box shadow

Box shadow

意思

A shadow around an element that makes it feel raised above the page.

修改方向

Stronger shadows make floating menus or modals feel layered. Too much shadow can feel heavy.

相關 CSS

box-shadow

請求範例

Add a subtle shadow to the floating menu panel.

邊框與形狀

Outline

Outline

意思

A line shown around an element, often when it is focused by keyboard navigation.

修改方向

A clear outline helps keyboard users know which control is active.

相關 CSS

outlineoutline-offset:focus-visible

請求範例

Keep a visible focus outline on icon buttons.

邊框與形狀

Divider

Divider

意思

A line used to separate sections or groups.

修改方向

A divider can make category boundaries clearer without adding much visual weight.

相關 CSS

border-topborder-bottomhr

請求範例

Add subtle dividers between menu categories.

版面與位置

Display

Display

意思

The basic layout mode of an element.

修改方向

display: none hides an element. flex and grid arrange child items.

相關 CSS

displaydisplay: nonedisplay: flexdisplay: grid

請求範例

Hide the desktop navigation on mobile screens.

版面與位置

Flex

Flex

意思

A layout method for arranging items in a row or column.

修改方向

flex-direction: column stacks items vertically. flex-wrap allows items to move to the next line.

相關 CSS

display: flexflex-directionflex-wrapgap

請求範例

Keep the header controls in a flex row.

版面與位置

Grid

Grid

意思

A layout method for arranging content in rows and columns.

修改方向

Changing grid columns controls how many cards appear per row.

相關 CSS

display: gridgrid-template-columnsgrid-columngap

請求範例

Show four tool cards per row on wide desktop screens.

版面與位置

Align items

Align items

意思

How items are aligned on the cross axis inside flex or grid.

修改方向

align-items: center vertically centers controls in a header row.

相關 CSS

align-itemsplace-items

請求範例

Vertically center the title and header buttons.

版面與位置

Justify content

Justify content

意思

How items are distributed on the main axis inside flex or grid.

修改方向

justify-content: space-between pushes groups to opposite sides.

相關 CSS

justify-contentjustify-itemsmargin-left: auto

請求範例

Keep the title on the left and controls on the right.

版面與位置

Position

Position

意思

How an element is placed in relation to the page or another element.

修改方向

position: absolute lets a dropdown float without pushing the page layout down.

相關 CSS

positionrelativeabsolutefixedsticky

請求範例

Make the menu panel absolute so it does not push the page down.

版面與位置

Z-index

Z-index

意思

The stacking order of positioned elements.

修改方向

A higher z-index can place dropdowns above page content.

注意

z-index only works predictably when positioning and stacking contexts are considered.

相關 CSS

z-indexposition

請求範例

Raise the language dropdown above the menu panel.

版面與位置

Overflow

Overflow

意思

What happens when content is larger than its container.

修改方向

overflow-y: auto allows a long menu to scroll instead of extending beyond the screen.

相關 CSS

overflowoverflow-xoverflow-ymax-height

請求範例

Make long dropdown menus scroll inside a max-height.

響應式

Breakpoint

Breakpoint

意思

A screen width where the layout changes.

修改方向

Changing a breakpoint decides whether tablets behave more like mobile or desktop.

相關 CSS

@mediasmmdlgxl

請求範例

Treat tablets as desktop for the top navigation.

響應式

Mobile

Mobile

意思

Styles intended for small phone-sized screens.

修改方向

Mobile styles often reduce font size, stack columns, and keep controls touch-friendly.

相關 CSS

@mediamax-widthsm

請求範例

On mobile, stack the cards in one column.

響應式

Desktop

Desktop

意思

Styles intended for wider laptop or desktop screens.

修改方向

Desktop styles can use more columns, horizontal navigation, and wider content containers.

相關 CSS

@mediamin-widthlgxl

請求範例

On desktop, keep the category navigation visible in the header.

響應式

Viewport

Viewport

意思

The visible area of the browser or device screen.

修改方向

Viewport units make sizes relative to the visible screen.

相關 CSS

vwvh100vw100vh

請求範例

Limit the menu width to the viewport so it does not overflow on phones.

響應式

Responsive

Responsive

意思

A design that adjusts to different screen sizes.

修改方向

Responsive rules can make the same component horizontal on desktop and vertical on mobile.

相關 CSS

@mediaclampmin()max()

請求範例

Make the controls responsive without changing their order.

互動狀態

Hover

Hover

意思

The state when a mouse pointer is over an element.

修改方向

Hover styles can change background, text color, border, or shadow to show that an item is interactive.

注意

Touch devices do not have reliable hover behavior, so important actions should also work by click or tap.

相關 CSS

:hoverbackgroundcolortransition

請求範例

Add a background color change when hovering over menu items.

互動狀態

Active

Active

意思

The short state while a button or link is being pressed.

修改方向

Active styles can make buttons feel tactile with a small color or position change.

相關 CSS

:activetransformbackground

請求範例

Add a slight pressed effect to toolbar buttons.

互動狀態

Focus

Focus

意思

The state when an input, button, or link is currently selected for keyboard or typing.

修改方向

Focus styles make keyboard navigation visible and accessible.

相關 CSS

:focus:focus-visibleoutline

請求範例

Make the search input focus ring match the accent color.

互動狀態

Disabled

Disabled

意思

A state where a control is visible but cannot be used.

修改方向

Disabled styles often reduce contrast and remove pointer interaction.

相關 CSS

:disabledopacitycursorpointer-events

請求範例

Make disabled buttons visibly inactive but still readable.

互動狀態

Selected

Selected

意思

The state of the currently chosen item in a list, tab group, or menu.

修改方向

Selected styles usually need stronger background or text color than normal items.

相關 CSS

aria-currentdata-statebackgroundcolor

請求範例

Make the selected category chip clearly different from the others.

互動狀態

Open / Closed

Open / Closed

意思

Whether a dropdown, menu, or accordion panel is currently visible.

修改方向

Open and closed states need clear indicators such as plus/minus icons or arrow rotation.

相關 CSS

aria-expandeddisplayheightvisibility

請求範例

Keep all menu categories closed by default.

UI 元件

Button

Button

意思

A control that performs an action when clicked or tapped.

修改方向

Button padding, border, color, and states determine how easy and important it feels.

相關 CSS

buttonpaddingborderbackgroundcursor

請求範例

Make the primary action button more prominent than the secondary button.

UI 元件

Icon button

Icon button

意思

A button represented mainly by an icon instead of text.

修改方向

Stable width and height prevent icon buttons from shifting as states change.

相關 CSS

buttonwidthheightaria-labeldisplay: grid

請求範例

Keep the menu icon button square and aligned with the language button.

UI 元件

Dropdown

Dropdown

意思

A floating list that appears after pressing a button or select control.

修改方向

Dropdown position, width, max-height, and z-index control placement and layering.

相關 CSS

positiontoprightz-indexbox-shadow

請求範例

When the language dropdown opens, close the site menu.

UI 元件

Accordion

Accordion

意思

A section that can be opened or closed to show or hide its content.

修改方向

Accordions make long menus shorter by keeping categories closed until needed.

相關 CSS

aria-expandedheightdisplayoverflow

請求範例

Add open and close behavior to each menu category.

UI 元件

Tabs

Tabs

意思

A control for switching between related views without leaving the page.

修改方向

Selected tab styling must clearly show which view is active.

相關 CSS

role=tablistdisplayborderbackground

請求範例

Make the active tab background darker than inactive tabs.

UI 元件

Modal

Modal

意思

A focused overlay panel that appears above the page.

修改方向

Modal width, backdrop, and z-index control how strongly it interrupts the page.

相關 CSS

dialogposition: fixedinsetz-indexbackdrop

請求範例

Center the modal and keep it narrower than the viewport.

UI 元件

Tooltip

Tooltip

意思

A small hint shown near a control, often on hover or focus.

修改方向

Tooltips help explain icon-only buttons without adding permanent text.

相關 CSS

positiontitlearia-describedbyz-index

請求範例

Add a tooltip that labels the menu icon button.

UI 元件

Input

Input

意思

A field where the user types text or values.

修改方向

Input padding, border, placeholder color, and focus style affect comfort and clarity.

相關 CSS

inputborderpaddingplaceholder:focus

請求範例

Make the search input full width and easier to tap on mobile.

UI 元件

Badge / Chip

Badge / Chip

意思

A small rounded label or filter control.

修改方向

Chip size, radius, and active color affect how scannable filters feel.

相關 CSS

border-radiuspaddingbackgroundfont-size

請求範例

Make active category chips visually stronger.