?
Solved

Question about this CSS

Posted on 2011-09-18
3
Medium Priority
?
199 Views
Last Modified: 2012-05-12
     Does the int.wrappedElement class just impact an image? Does it extend wrappedElement ?

    .wrappedElement {
        border: 1px solid red;
        background-color: pink;
      }

      img.wrappedElement {
        border-width: 2px;
      }
0
Comment
Question by:newbieweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Assisted Solution

by:Gurvinder Pal Singh
Gurvinder Pal Singh earned 1000 total points
ID: 36558152
it only impacts the images with wrappedElement class
0
 
LVL 8

Accepted Solution

by:
Jen0910 earned 1000 total points
ID: 36561173
To get the 2px boder to apply to all images within a container with ".wrappedElement" class without having to manually add the 2px boder class to every image in HMTL, you would need the 2nd rule to be .wrappedElement img {border-width: 2px;}

img.wrappedElement {border-width: 2px;} would only apply to an image with the class manually added to it in HTML.
0
 

Author Closing Comment

by:newbieweb
ID: 36564198
Thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question