Making a new class for images
-
Hi
I’m new to this and I’m just begining to grasp the basics in CSS and coding.I want to make a new “class” defining certain images that’s not to be ruled by the “main img” code in the style sheet. My main images has a border and I want some images to be clean without any borders. I’ve made a new class and called it img.clean defining no borders. The tag will then look like this <img src=”https://www…” alt=”name of picture” class=”clean” />. Now my problem is that this rules out the class=”centered” style and all “clean” images end up being aligned left as default.
If this makes any sence at all… How can I have a new class and still make the picture centered?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Making a new class for images’ is closed to new replies.