Search
 
SCRIPT & CODE EXAMPLE
 

CSS

align text in center css

#para1 {                                                              
text-align: center;
color: red;
}
Comment

css center text

/* To center text, you need to use text-align. */

.centerText {
  text-align: center; /* This puts the text into the center of the 
  screen. */
}

/* There are also other things that you can use in text-align:
left, right, and justify. Left and right make the test align to the
right or left of the screen, while justify makes the text align both
sides by spreading out spaces between some words and squishing others. */
Comment

how to center text in css

.class {
	text-align: center;
}
Comment

css text align center

/* Character-based alignment in a table column */

text-align: center;

/* The inline contents are centered within the line box. */
Comment

css text align center

body {
  text-align: center;
}
Comment

css center text

.center-text {text-align: center}
Comment

PREVIOUS NEXT
Code Example
Css :: fixe a navbar at the top 
Css :: css img scale-down 
Css :: vertical text css 
Css :: html scrollable without scroll bar 
Css :: jquery add css 
Css :: css change text 
Css :: css animation scale image 
Css :: css line break width 
Css :: blur edges css 
Css :: watch scss to css 
Css :: make text not selectable html js css 
Css :: how to make a glow effect in html 
Css :: how to center items in css 
Css :: gradient border with border radius 
Css :: box shadow to make border bottom 
Css :: add background image and color css 
Css :: flex one whole width 
Css :: how to make borders rounded in css 
Css :: sass calculate and concat pixels 
Css :: css animation animated element goes back to previous state 
Css :: css disable mouse events 
Css :: css noselect 
Css :: box shadow 
Css :: change font with calc function 
Css :: sm size website 
Css :: Responsive font size with clamp 
Css :: bash access array indirectly 
Css :: detect if an element has a class jQurey 
Css :: screen orientation css 
Css :: break word css 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =