amdonovan / CDGD304-01

0 stars 0 forks source link

Background color on images #4

Open amdonovan opened 6 years ago

amdonovan commented 6 years ago

My images are mostly white, so they're getting lost in the background and the css is doing NOTHING. I'm not sure which part it would go into so here is my whole messy code

code:

.article #footer img.large { / float; left;/ / position: relative;/ margin-top: 10px; / background-color: #efefef;/ padding: 10px 10px 10px 10px }

.gallery{ / float: inherit;/ }

.article { / float; left;/ / position: relative;/ / height: 100%;/

}

img.large { / float: left;/ / overflow: auto;/ margin: 10px; / background-color: #efefef;/ width: 300px; }

img.landscape { width: 330px; height: 210px; }

img.tall{ width: 200; height: 300;
}

img.display{ display:block; float:inherit; margin: 10px; width:100%;

}

saulbaizman commented 5 years ago

Alyssa, I often add a 1px gray border around images whose background is the same as the page's background. Does that make sense?

Also, you don't have to copy and paste code in an issue. You can reference a file that lives in your repository and its line numbers.