I want to implement a picture and a list of titles below. I don’t know how to position the title dt under the picture dd? The code is as follows
- 1
- 2
- 3
Reply to discussion (solution)
Model Game News
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档 </title> <style type="text/css"> .list{ width:400px; height:70px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto;text-align:center; } .list dl{ float:left; margin-left:10px;} .list dd{ width:auto; margin:0px;} .list dt{ margin:0px;} </style> </head> <body> <div class="list"> <dl> <dd> <img src="/static/imghwm/default1.png" data-src="http://avatar.profile.csdn.net/D/B/D/2_zh050317.jpg" class="lazy" / alt="How to locate dl dt dd? _html/css_WEB-ITnose" > </dd> <dt>1 </dt> </dl> <dl> <dd> <img src="/static/imghwm/default1.png" data-src="http://avatar.profile.csdn.net/D/B/D/2_zh050317.jpg" class="lazy" / alt="How to locate dl dt dd? _html/css_WEB-ITnose" > </dd> <dt>2 </dt> </dl> <dl> <dd> <img src="/static/imghwm/default1.png" data-src="http://avatar.profile.csdn.net/D/B/D/2_zh050317.jpg" class="lazy" / alt="How to locate dl dt dd? _html/css_WEB-ITnose" > </dd> <dt>3 </dt> </dl> </div> </body> </html>
Why use such a strange method?
I always thought that dl dt dd is sequential and cannot be changed. I have learned a lot
Simplify the code on the second floor:
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
Just write: margin:0px auto; That’s it
That’s okay too
That’s okay But don’t you think it’s a waste of time? Make it easier and faster.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.