Solved

Question about this CSS

Posted on 2011-09-18
3
186 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
3 Comments
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 250 total points
Comment Utility
it only impacts the images with wrappedElement class
0
 
LVL 8

Accepted Solution

by:
Jen0910 earned 250 total points
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now