L
LLLOS.ai
Career
L
◆ AI Learning · Hard rule

How can a developer ensure content is visible above a fixed bar at the bottom of a web page?

A web page's main content area needs extra space at the bottom. This space prevents content from being hidden by a fixed bar at the bottom of the screen. The fixed bar might show costs or other controls.

By Pawan Nayar · from the LLOS AI Learning record

The rule

A web page's main content area needs extra space at the bottom.

This space prevents content from being hidden by a fixed bar at the bottom of the screen. The fixed bar might show costs or other controls.

A developer must add extra space to the bottom of the main content area. This space is called padding. The padding should be at least 28 pixels. This ensures all content is visible above any fixed elements. Fixed elements are often at the bottom of the screen.

A developer creates a shopping cart page. The page has a fixed bar at the bottom showing the total cost. Without `padding-bottom: 28px` on the main content, the last item in the cart is hidden behind the cost bar. The user cannot see the full list of items.

Words you'll need

Resolved from this lesson's own record — real definitions, not invented for this page.

Human-Computer Interaction

How people and computers communicate and work together

Information Architecture

How information is organized and labeled so people find it

Questions people ask

More from the same record, pulled by shared topic — not written new for this page.

How can a developer make sure a floating element, like a dropdown, appears above other page elements?

Floating elements need a special stacking order. This order is called a stacking context.

How should buttons be sized and arranged on a screen?

Buttons should only be as wide as the text they contain. Do not make buttons stretch to fill a space.

How can a developer make a website look good on both mobile phones and desktop computers?

A developer can hide the hamburger menu icon on large screens. The developer can hide the regular navigation menu on small screens.

How should an AI model display content while it is loading?

An AI model should never show a blank screen during loading. A blank screen makes the product seem broken.

What to remember

A web page's main content area needs extra space at the bottom. This space prevents content from being hidden by a fixed bar at the bottom of the screen. The fixed bar might show costs or other controls.