HTML / CSS Question
-
I have an image that has been wrapped by text. I would like a border around the image and a little spacing between the border and the text. The problem I’m running into is that the space is happening between the image and the border rather than between the border of the image and the text.
Here’s the HTML I’m using for the image:
>img src=”https://shaunas.sg-host.com/wp-content/uploads/2019/12/Peg-OMeara-Werner-OMeara.jpg” alt=”Peg O’Meara – Werner O’Meara” width=”275″ /<
FYI, I reversed the < so you can see the code rather than the actual image.Here’s the CSS:
.border { border-width: 3px; border-color: #cccccc; border-style: solid;
float: left;
padding-right: 10px;
}- This topic was modified 5 years, 3 months ago by .
- This topic was modified 5 years, 3 months ago by .
- This topic was modified 5 years, 3 months ago by .
- This topic was modified 5 years, 3 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘HTML / CSS Question’ is closed to new replies.