Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Centering Content of Code Block


TTaylor

Question

Site URL: https://www.travelsandtreasures.com

I've searched the forum and have been playing with this for hours.  Any suggestions on how to center the content of a code block (it's on my home page).  

 

I've tried

  • adding align="center" to the DIV tag
  • adding class="center" to the IMG tag with 

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;

}

 

Nothing works.  I'm stumped. 

BDC Centering.JPG

Link to comment
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

3 answers to this question

Recommended Posts

  • 0
55 minutes ago, jsanzloz said:

Hiya 👋

Try replacing those CSS lines with these ones:

display:flex;

justify-content: center;

Hi there, 

I tried both in the DIV tag, IMG tag, and SCRIPT tag ....didn't work and I'm not sure that I really know what I'm doing 🤪😂

Link to comment
  • 0
On 6/9/2021 at 1:50 AM, TTaylor said:

Hi there, 

I tried both in the DIV tag, IMG tag, and SCRIPT tag ....didn't work and I'm not sure that I really know what I'm doing 🤪😂

Can you share link to page where you added Code Block? Wee don't see it on homepage

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...