Table of Contents
Reply to discussion (solution)
Home Web Front-end HTML Tutorial Text alignment problem_html/css_WEB-ITnose

Text alignment problem_html/css_WEB-ITnose

Jun 24, 2016 pm 12:02 PM
Alignment letter


The text is in

under
, text-align is set to justify, and the left and right margins of
are 0, but in fact there is a gap on the right side of the text, left and right The distance between the two sides is not equal to the browser boundary. How to solve this problem? Moreover, the display of Chinese and English text is not ideal.


Reply to discussion (solution)

You can try margin-left or padding-left. Whichever works, try it yourself.

It is best to paste the code at the same time as the picture. Who knows how to write your code?

text-align:justify;text-justify:inter-ideograph;
That’s it

It is best to paste the code at the same time as the picture. Who knows how to write your code?

text-align:justify;text-justify:inter-ideograph;
That is Available






css:
section {
margin: 0;
}
#banner2 {
padding: 6em 0;
text-align: center;
}
#banner2 .inner {
background: none;
display : block;
padding: 0 1.5em;
text-align: center;
}

#banner2 .inner footer {
margin-top: 2em;
margin -right: auto;
margin-left: auto;
text-align: center;
}

#banner2 .inner p {
text-align: justify;
margin: 0;
}

Alignment is based on the situation of the words, because you can’t put a word on the right side, (use the first line as an example), so the “no” is there The second line, this is normal. I can only say that your setting is not good enough. You should set the width of the div to an integer multiple of the width of the word, so that the two ends are aligned without gaps. As for the English, it is the same Reason

Alignment is based on the situation of the words, because you can’t put a word on the right side, (use the first line as an example), so the “no” goes to the second line, This is normal. It can only be said that your setting is not good enough. You should set the width of the div to an integer multiple of the width of the word, so that the two ends are aligned without gaps. As for the English, the same reason





Text size 1em, width 12em, still not working

Set letter-spacing to 0

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to make round pictures and text in ppt How to make round pictures and text in ppt Mar 26, 2024 am 10:23 AM

First, draw a circle in PPT, then insert a text box and enter text content. Finally, set the fill and outline of the text box to None to complete the production of circular pictures and text.

How to add dots to text in word? How to add dots to text in word? Mar 19, 2024 pm 08:04 PM

When we create Word documents on a daily basis, we sometimes need to add dots under certain words in the document, especially when there are test questions. To highlight this part of the content, the editor will share with you the tips on how to add dots to text in Word. I hope it can help you. 1. Open a blank word document. 2. For example, add dots under the words "How to add dots to text". 3. We first select the words "How to add dots to text" with the left mouse button. Note that if you want to add dots to that word in the future, you must first use the left button of the mouse to select which word. Today we are adding dots to these words, so we have chosen several words. Select these words, right-click, and click Font in the pop-up function box. 4. Then something like this will appear

How to modify text on pictures How to modify text on pictures Aug 29, 2023 am 10:29 AM

Modifying the text on the image can be done by using image editing software, online tools or screenshot tools. The specific steps are: 1. Open the picture editing software and import the picture that needs to be modified; 2. Select the text tool; 3. Click the text area on the picture to create a text box; 4. Enter the text you want in the text box. 5. If you just want to delete the text on the picture, you can use the eraser tool or the selection tool to select and delete the text area.

Golang Image Processing: Learn How to Add Watermarks and Text Golang Image Processing: Learn How to Add Watermarks and Text Aug 17, 2023 am 08:41 AM

Golang Image Processing: Learn How to Add Watermarks and Text Quotes: In the modern era of digitalization and social media, image processing has become an important skill. Whether for personal use or business operations, adding watermarks and text are common needs. In this article, we will explore how to use Golang for image processing and learn how to add watermarks and text. Background: Golang is an open source programming language known for its concise syntax, efficient performance and powerful concurrency capabilities. it has become the subject of many developments

C++ object layout is aligned with memory to optimize memory usage efficiency C++ object layout is aligned with memory to optimize memory usage efficiency Jun 05, 2024 pm 01:02 PM

C++ object layout and memory alignment optimize memory usage efficiency: Object layout: data members are stored in the order of declaration, optimizing space utilization. Memory alignment: Data is aligned in memory to improve access speed. The alignas keyword specifies custom alignment, such as a 64-byte aligned CacheLine structure, to improve cache line access efficiency.

Semantic role annotation issues in text semantic understanding technology Semantic role annotation issues in text semantic understanding technology Oct 08, 2023 am 09:53 AM

The problem of semantic role annotation in text semantic understanding technology requires specific code examples. Introduction In the field of natural language processing, text semantic understanding technology is a core task. Among them, semantic role annotation is an important technology, which is used to identify the semantic role of each word in the sentence in the context. This article will introduce the concepts and challenges of semantic role annotation and provide a concrete code example to solve the problem. 1. What is semantic role labeling? Semantic role labeling (SemanticRoleLabeling) refers to sentences

Detailed method for setting up PPT slides by moving the mouse to text to display pictures Detailed method for setting up PPT slides by moving the mouse to text to display pictures Mar 26, 2024 pm 03:40 PM

1. First set a custom animation for the picture object. 2. If you want to make the effect more realistic, please use the animation effect [Appear] as shown above. After setting the custom effect for the picture object, we will see the name of the custom animation on the right side of the window, such as [1good] in the picture. Now use the left button of the mouse to click on the small triangle facing downwards in the direction of the picture, and a pop-up will appear as follows Figure menu list. 3. In the menu shown above, select [Effect Options], and a pop-up will appear as shown in the picture. 4. In the picture above, switch to the [Timing] tab, click [Trigger], then select [Start the effect when the following objects are clicked] below, and select [Title 1: Picture 1] on the right. This setting means that when playing the slideshow, click on the text in [Picture 1], and it will

How to read text on Tomato Listen How to read text on Tomato Listen Feb 27, 2024 pm 03:58 PM

In a busy life, you can easily listen to wonderful stories with your ears, and at the same time, you can easily switch to text reading and listen on Tomato when needed. This unique novel software brings you an unprecedented dual experience. However, many users, during the use process, encounter text that they want to read carefully or do not understand clearly, but they do not know how to view the text. So users who want to know, please come and follow this article for details. Find out. How to read text on Tomato Listening? Answer: [Tomato Listening]-[Novel]-[Read e-books]. Specific steps: First, start the Tomato Listening software. After entering the homepage, you will find many popular novels to choose from. Here, choose a novel and click to read. 2. Then in the details page of the novel, I

See all articles