Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to center a list in html

/* Either center the list directly or center the parent element */

ul {
 text-align: center;
}

/* OR */

div .list {
 text-align: center;
}
Comment

PREVIOUS NEXT
Code Example
Css :: add notification in css 
Css :: line sharpness css 
Css :: css disable input 
Css :: border radius color 
Css :: auto margin in css 
Css :: ion-split-pane width 
Css :: make form scrollable 
Css :: media query for max width and height 
Css :: css transparent color 
Css :: how to center an overlay button using css transform and translate 
Css :: internal style 
Css :: change font size in textarea html 
Css :: after icon css 
Css :: css div take remaining screen height 
Css :: taille texte css 
Css :: overflow-x hidden not working 
Css :: make element glow 
Css :: center background image css 
Css :: css tricks stretch content full witdh 
Css :: box shadow all sides 
Css :: text background color css 
Css :: css hover 
Css :: css clip 
Css :: how to modify select icon csshow to modify select icon css 
Css :: css set text color 
Css :: Text that shows an underline on hover 
Css :: how to make width equal to height css 
Css :: Setting size for png icon in CSS 
Css :: how to centralize cards in css 
Css :: bootstrap database table cdn 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =