Menu
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

Template Filter - rjust


Example

Write the name, justified to the right of a 20 characters field:

<h1>{{ name|rjust:20 }}.</h1>
Run Example »

Definition and Usage

The rjust filter places the value to the right in a field of the specified length.


Syntax

{{ value|rjust:length }}

Template filters are defined by using a pipe | character followed by the name of the filter.

Arguments are defined by using a colon : character followed by the argument value.


Arguments

Value Description
length Required. A number specifying the length of the field where the value will be right justified in.