enable image centering or adding divs around images when using the Code Editor
-
trying to get images centered (not in a gallery), i found no option in the block editor (why not?!), so tried the Code Editor, adding <div id=”center”> above the images and </div> below the images. I was going to then add to Additional CSS:
#center {margin:0 auto;}
but when I clicked update, the </div> was moved to the same line as <div id=”center”>, so nothing was inside that div.Why is such a basic task so difficult now?
Without waiting for a future update to WordPress, what can I do now?
I know HTML5 offers alternatives to the div tag. If I used “section” in the code editor, would that work? (The combination of my old full laptop + slow internet + slow website makes me very reluctant to just try that.)
danceorangeville.com/gift-cards
- The topic ‘enable image centering or adding divs around images when using the Code Editor’ is closed to new replies.