Desmoto's Arts & Crafts Project

Hi Everyone,

I’m working on the Desmoto’s Arts & Crafts Project in HTML and CSS. I had no trouble coding it with the tags, but I cannot get the images to go all the way over to the left, in line with the text. They are offset just a little to the right. I tried setting the padding, border and margins all to 0px, but that did not fix the problem. Here is the img selector in the css file:

img {
margin-left: 0px;
border-left: none;
padding-left: 0px;
display: inline;
}

Any ideas?

Hi @marielim2
just the styles for your image isn’t enough to tell. What’s the parent element of your image? Does it have a padding? (Bare in mind, that some browsers add margins and paddings to elements as default if you don’t reset that.
Add a border with different colors to each element in your html. Then you can more easily see, which element has the padding.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.