• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do i make the footer images centered?

Explorer ,
Mar 11, 2020 Mar 11, 2020

Copy link to clipboard

Copied

HTML codeHTML codeCSS codeCSS codeCSS codeCSS codewhat it looks likewhat it looks like

TOPICS
Code , How to

Views

422

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 11, 2020 Mar 11, 2020

Restricted to the code you are currently using, adding margin:0 auto and a set width to the .row class will center its content, but honestly, using floats, margin and padding to center things is now "the hard (old) way".

Look into CSS Flexbox, this type of thing is very simple using that method. This site has some decent basic information on how to use flex in your page...

https://www.w3schools.com/css/css3_flexbox.asp

Votes

Translate

Translate
Community Expert ,
Mar 11, 2020 Mar 11, 2020

Copy link to clipboard

Copied

LATEST

Restricted to the code you are currently using, adding margin:0 auto and a set width to the .row class will center its content, but honestly, using floats, margin and padding to center things is now "the hard (old) way".

Look into CSS Flexbox, this type of thing is very simple using that method. This site has some decent basic information on how to use flex in your page...

https://www.w3schools.com/css/css3_flexbox.asp

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines