Solved

Question about this CSS

Posted on 2011-09-18
3
193 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:gurvinder372
gurvinder372 earned 250 total points
ID: 36558152
it only impacts the images with wrappedElement class
0
 
LVL 8

Accepted Solution

by:
Jen0910 earned 250 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

759 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