Engineering Tools for AI

Lập trình

Thuật ngữ chỉnh CSS cho thay đổi trang

Tra cứu header, button, khoảng cách, hover, responsive và các thuật ngữ CSS/UI khi yêu cầu sửa trang.

63 mục

Cấu trúc trang

Header

Header

Ý nghĩa

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

Cách sửa

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

Lưu ý

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

CSS liên quan

headerpaddingheightpositionborder-bottom

Ví dụ yêu cầu

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

Cấu trúc trang

Footer

Footer

Ý nghĩa

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

Cách sửa

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

CSS liên quan

footerpaddingborder-topmargin-top

Ví dụ yêu cầu

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

Cấu trúc trang

Section

Section

Ý nghĩa

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

Cách sửa

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

CSS liên quan

sectionpadding-blockborder-topbackground

Ví dụ yêu cầu

Reduce the vertical padding of the tools section on mobile.

Cấu trúc trang

Container

Container

Ý nghĩa

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

Cách sửa

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

CSS liên quan

max-widthmargin-inlinepadding-inline

Ví dụ yêu cầu

Make the main container a little narrower on desktop.

Cấu trúc trang

Card

Card

Ý nghĩa

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

Cách sửa

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

CSS liên quan

borderborder-radiuspaddingbackgroundbox-shadow

Ví dụ yêu cầu

Make the reference cards more compact by reducing their padding.

Cấu trúc trang

Panel

Panel

Ý nghĩa

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

Cách sửa

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

CSS liên quan

borderbackgroundpaddingdisplay

Ví dụ yêu cầu

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

Cấu trúc trang

Navigation

Navigation

Ý nghĩa

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

Cách sửa

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

CSS liên quan

navdisplaygapalign-items

Ví dụ yêu cầu

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

Cấu trúc trang

Menu

Menu

Ý nghĩa

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

Cách sửa

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

Lưu ý

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

CSS liên quan

positionrighttopz-indexwidth

Ví dụ yêu cầu

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

Cấu trúc trang

Sidebar

Sidebar

Ý nghĩa

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

Cách sửa

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

CSS liên quan

asidewidthpositiongrid-template-columns

Ví dụ yêu cầu

Move the filter sidebar below the content on mobile.

Cấu trúc trang

Hero

Hero

Ý nghĩa

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

Cách sửa

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

CSS liên quan

paddingbackgroundmin-heightgrid

Ví dụ yêu cầu

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

Khoảng cách và kích thước

Padding

Padding

Ý nghĩa

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

Cách sửa

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

Lưu ý

More padding usually increases the visible size of the element.

CSS liên quan

paddingpadding-toppadding-rightpadding-bottompadding-left

Ví dụ yêu cầu

Increase the top padding of the header slightly.

Khoảng cách và kích thước

Margin

Margin

Ý nghĩa

Space outside an element, between it and neighboring elements.

Cách sửa

Increasing margin-bottom pushes the next element farther down.

CSS liên quan

marginmargin-topmargin-rightmargin-bottommargin-left

Ví dụ yêu cầu

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

Khoảng cách và kích thước

Gap

Gap

Ý nghĩa

The space between items inside a flex or grid layout.

Cách sửa

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

CSS liên quan

gaprow-gapcolumn-gap

Ví dụ yêu cầu

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

Khoảng cách và kích thước

Width

Width

Ý nghĩa

The horizontal size of an element.

Cách sửa

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

CSS liên quan

widthmin-widthmax-width

Ví dụ yêu cầu

Make the menu panel width match its longest item.

Khoảng cách và kích thước

Height

Height

Ý nghĩa

The vertical size of an element.

Cách sửa

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

CSS liên quan

heightmin-heightmax-height

Ví dụ yêu cầu

Keep the header height stable while making the title smaller.

Khoảng cách và kích thước

Max width

Max width

Ý nghĩa

The largest width an element is allowed to reach.

Cách sửa

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

CSS liên quan

max-widthwidth

Ví dụ yêu cầu

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

Khoảng cách và kích thước

Top / Right / Bottom / Left

Top / Right / Bottom / Left

Ý nghĩa

Position offsets used with positioned elements.

Cách sửa

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

CSS liên quan

toprightbottomleftinset

Ví dụ yêu cầu

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

Chữ

Font size

Font size

Ý nghĩa

The size of text.

Cách sửa

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

CSS liên quan

font-sizetext-smtext-lg

Ví dụ yêu cầu

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

Chữ

Font weight

Font weight

Ý nghĩa

How thick or bold the text appears.

Cách sửa

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

CSS liên quan

font-weightfont-boldfont-semibold

Ví dụ yêu cầu

Make the category labels a little bolder.

Chữ

Line height

Line height

Ý nghĩa

The vertical space each line of text occupies.

Cách sửa

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

CSS liên quan

line-heightleading

Ví dụ yêu cầu

Increase the paragraph line-height in the hero description.

Chữ

Letter spacing

Letter spacing

Ý nghĩa

The space between individual letters.

Cách sửa

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

CSS liên quan

letter-spacingtracking

Ví dụ yêu cầu

Remove negative letter spacing from compact buttons.

Chữ

Text align

Text align

Ý nghĩa

The horizontal alignment of text inside its container.

Cách sửa

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

CSS liên quan

text-align

Ví dụ yêu cầu

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

Chữ

Wrap / No wrap

Wrap / No wrap

Ý nghĩa

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

Cách sửa

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

CSS liên quan

white-spaceword-breakoverflow-wrap

Ví dụ yêu cầu

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

Chữ

Truncate / Ellipsis

Truncate / Ellipsis

Ý nghĩa

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

Cách sửa

Truncation prevents layout breakage when labels are longer than expected.

CSS liên quan

overflowtext-overflowwhite-space

Ví dụ yêu cầu

Truncate the site title on very small screens.

Màu và nền

Color

Color

Ý nghĩa

The color of text or icons.

Cách sửa

Changing color affects readability and visual priority.

CSS liên quan

color

Ví dụ yêu cầu

Make the selected language text visible in dark mode.

Màu và nền

Background

Background

Ý nghĩa

The color or image behind an element's content.

Cách sửa

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

CSS liên quan

backgroundbackground-color

Ví dụ yêu cầu

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

Màu và nền

Opacity

Opacity

Ý nghĩa

How transparent an element is.

Cách sửa

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

CSS liên quan

opacityrgbacolor-mix

Ví dụ yêu cầu

Make disabled controls look dimmer without making the text unreadable.

Màu và nền

Gradient

Gradient

Ý nghĩa

A smooth transition between two or more colors.

Cách sửa

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

CSS liên quan

linear-gradientradial-gradientbackground-image

Ví dụ yêu cầu

Keep the hero background subtle and avoid a strong gradient.

Màu và nền

Accent color

Accent color

Ý nghĩa

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

Cách sửa

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

CSS liên quan

colorbackgroundborder-coloraccent-color

Ví dụ yêu cầu

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

Màu và nền

Contrast

Contrast

Ý nghĩa

The difference between foreground and background colors.

Cách sửa

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

CSS liên quan

colorbackground-color

Ví dụ yêu cầu

Increase the contrast of dropdown items in dark mode.

Viền và hình dạng

Border

Border

Ý nghĩa

A line around an element.

Cách sửa

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

CSS liên quan

borderborder-colorborder-widthborder-style

Ví dụ yêu cầu

Make the menu panel border slightly darker in dark mode.

Viền và hình dạng

Border radius

Border radius

Ý nghĩa

How rounded the corners of a box or button are.

Cách sửa

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

CSS liên quan

border-radius

Ví dụ yêu cầu

Keep cards at an 8px border radius.

Viền và hình dạng

Box shadow

Box shadow

Ý nghĩa

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

Cách sửa

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

CSS liên quan

box-shadow

Ví dụ yêu cầu

Add a subtle shadow to the floating menu panel.

Viền và hình dạng

Outline

Outline

Ý nghĩa

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

Cách sửa

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

CSS liên quan

outlineoutline-offset:focus-visible

Ví dụ yêu cầu

Keep a visible focus outline on icon buttons.

Viền và hình dạng

Divider

Divider

Ý nghĩa

A line used to separate sections or groups.

Cách sửa

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

CSS liên quan

border-topborder-bottomhr

Ví dụ yêu cầu

Add subtle dividers between menu categories.

Bố cục và vị trí

Display

Display

Ý nghĩa

The basic layout mode of an element.

Cách sửa

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

CSS liên quan

displaydisplay: nonedisplay: flexdisplay: grid

Ví dụ yêu cầu

Hide the desktop navigation on mobile screens.

Bố cục và vị trí

Flex

Flex

Ý nghĩa

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

Cách sửa

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

CSS liên quan

display: flexflex-directionflex-wrapgap

Ví dụ yêu cầu

Keep the header controls in a flex row.

Bố cục và vị trí

Grid

Grid

Ý nghĩa

A layout method for arranging content in rows and columns.

Cách sửa

Changing grid columns controls how many cards appear per row.

CSS liên quan

display: gridgrid-template-columnsgrid-columngap

Ví dụ yêu cầu

Show four tool cards per row on wide desktop screens.

Bố cục và vị trí

Align items

Align items

Ý nghĩa

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

Cách sửa

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

CSS liên quan

align-itemsplace-items

Ví dụ yêu cầu

Vertically center the title and header buttons.

Bố cục và vị trí

Justify content

Justify content

Ý nghĩa

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

Cách sửa

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

CSS liên quan

justify-contentjustify-itemsmargin-left: auto

Ví dụ yêu cầu

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

Bố cục và vị trí

Position

Position

Ý nghĩa

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

Cách sửa

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

CSS liên quan

positionrelativeabsolutefixedsticky

Ví dụ yêu cầu

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

Bố cục và vị trí

Z-index

Z-index

Ý nghĩa

The stacking order of positioned elements.

Cách sửa

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

Lưu ý

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

CSS liên quan

z-indexposition

Ví dụ yêu cầu

Raise the language dropdown above the menu panel.

Bố cục và vị trí

Overflow

Overflow

Ý nghĩa

What happens when content is larger than its container.

Cách sửa

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

CSS liên quan

overflowoverflow-xoverflow-ymax-height

Ví dụ yêu cầu

Make long dropdown menus scroll inside a max-height.

Responsive

Breakpoint

Breakpoint

Ý nghĩa

A screen width where the layout changes.

Cách sửa

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

CSS liên quan

@mediasmmdlgxl

Ví dụ yêu cầu

Treat tablets as desktop for the top navigation.

Responsive

Mobile

Mobile

Ý nghĩa

Styles intended for small phone-sized screens.

Cách sửa

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

CSS liên quan

@mediamax-widthsm

Ví dụ yêu cầu

On mobile, stack the cards in one column.

Responsive

Desktop

Desktop

Ý nghĩa

Styles intended for wider laptop or desktop screens.

Cách sửa

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

CSS liên quan

@mediamin-widthlgxl

Ví dụ yêu cầu

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

Responsive

Viewport

Viewport

Ý nghĩa

The visible area of the browser or device screen.

Cách sửa

Viewport units make sizes relative to the visible screen.

CSS liên quan

vwvh100vw100vh

Ví dụ yêu cầu

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

Responsive

Responsive

Responsive

Ý nghĩa

A design that adjusts to different screen sizes.

Cách sửa

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

CSS liên quan

@mediaclampmin()max()

Ví dụ yêu cầu

Make the controls responsive without changing their order.

Trạng thái tương tác

Hover

Hover

Ý nghĩa

The state when a mouse pointer is over an element.

Cách sửa

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

Lưu ý

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

CSS liên quan

:hoverbackgroundcolortransition

Ví dụ yêu cầu

Add a background color change when hovering over menu items.

Trạng thái tương tác

Active

Active

Ý nghĩa

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

Cách sửa

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

CSS liên quan

:activetransformbackground

Ví dụ yêu cầu

Add a slight pressed effect to toolbar buttons.

Trạng thái tương tác

Focus

Focus

Ý nghĩa

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

Cách sửa

Focus styles make keyboard navigation visible and accessible.

CSS liên quan

:focus:focus-visibleoutline

Ví dụ yêu cầu

Make the search input focus ring match the accent color.

Trạng thái tương tác

Disabled

Disabled

Ý nghĩa

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

Cách sửa

Disabled styles often reduce contrast and remove pointer interaction.

CSS liên quan

:disabledopacitycursorpointer-events

Ví dụ yêu cầu

Make disabled buttons visibly inactive but still readable.

Trạng thái tương tác

Selected

Selected

Ý nghĩa

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

Cách sửa

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

CSS liên quan

aria-currentdata-statebackgroundcolor

Ví dụ yêu cầu

Make the selected category chip clearly different from the others.

Trạng thái tương tác

Open / Closed

Open / Closed

Ý nghĩa

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

Cách sửa

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

CSS liên quan

aria-expandeddisplayheightvisibility

Ví dụ yêu cầu

Keep all menu categories closed by default.

Thành phần UI

Button

Button

Ý nghĩa

A control that performs an action when clicked or tapped.

Cách sửa

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

CSS liên quan

buttonpaddingborderbackgroundcursor

Ví dụ yêu cầu

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

Thành phần UI

Icon button

Icon button

Ý nghĩa

A button represented mainly by an icon instead of text.

Cách sửa

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

CSS liên quan

buttonwidthheightaria-labeldisplay: grid

Ví dụ yêu cầu

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

Thành phần UI

Dropdown

Dropdown

Ý nghĩa

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

Cách sửa

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

CSS liên quan

positiontoprightz-indexbox-shadow

Ví dụ yêu cầu

When the language dropdown opens, close the site menu.

Thành phần UI

Accordion

Accordion

Ý nghĩa

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

Cách sửa

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

CSS liên quan

aria-expandedheightdisplayoverflow

Ví dụ yêu cầu

Add open and close behavior to each menu category.

Thành phần UI

Tabs

Tabs

Ý nghĩa

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

Cách sửa

Selected tab styling must clearly show which view is active.

CSS liên quan

role=tablistdisplayborderbackground

Ví dụ yêu cầu

Make the active tab background darker than inactive tabs.

Thành phần UI

Modal

Modal

Ý nghĩa

A focused overlay panel that appears above the page.

Cách sửa

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

CSS liên quan

dialogposition: fixedinsetz-indexbackdrop

Ví dụ yêu cầu

Center the modal and keep it narrower than the viewport.

Thành phần UI

Tooltip

Tooltip

Ý nghĩa

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

Cách sửa

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

CSS liên quan

positiontitlearia-describedbyz-index

Ví dụ yêu cầu

Add a tooltip that labels the menu icon button.

Thành phần UI

Input

Input

Ý nghĩa

A field where the user types text or values.

Cách sửa

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

CSS liên quan

inputborderpaddingplaceholder:focus

Ví dụ yêu cầu

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

Thành phần UI

Badge / Chip

Badge / Chip

Ý nghĩa

A small rounded label or filter control.

Cách sửa

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

CSS liên quan

border-radiuspaddingbackgroundfont-size

Ví dụ yêu cầu

Make active category chips visually stronger.