0

PS: I don't want to use CSS. I put borders for my image and now I can't make it appear at the center of the page. No matter what I do it stays on the left side.This is my code:

<div align="center" style="padding:5px;border:thin solid black;width:500px;">
        <p align="center">``
  Les fraise des bois sont souvent de petite taille.<br>
  <i>source:<a href="https://upload.wikimedia.org/wikipedia/commons/1/1f/Fraise_des_boisFL16.jpg" 
   target="_blank"><u>Wikimedia</u></a>, licence CC BY-SA</i>
          </p>
         <img src="https://upload.wikimedia.org/wikipedia/commons/1/1f/Fraise_des_boisFL16.jpg" 
         alt="pic pour Fragaria Vesca" width="400px" height="350px">
            </div>

enter image description here

Temani Afif
  • 245,468
  • 26
  • 309
  • 415
RanH
  • 1
  • 1
  • Where is your CSS (inline CSS is still CSS)? There is no reason why `div` should be centered, try to find how to do it. – pavel Feb 07 '21 at 08:37
  • PS: don't re-add useless tag. Read the description of the tag before using them. The *web* tag is clearly labeled width *DO NOT USE* – Temani Afif Feb 07 '21 at 08:40
  • Hi, you are already using CSS in the style=.... so don't worry about using a bit more. The question linked to has masses of useful information in it about centering but you don't need to have a separate – A Haworth Feb 07 '21 at 12:46

0 Answers0