WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > [SOLVED] Tags in a line with no commas

Reply
  Thread Tools Display Modes
Old 20th October 10, 07:31 PM   #1
keress
WLC Member
 
Join Date: Oct 2006
Posts: 30
Default Tags in a line with no commas

I'm working on a shopping cart site with numerous, huge .css files. They are doing something I haven't encountered before. They are listing a string of tags on the first, selector line of many tags. For example,

Quote:
.product-details .image .image-box {
margin: 0px auto;
padding: 0px;
}
THERE ARE NO COMMAS between those selectors.

At first I thought these were just being grouped together and were each individually assigned the properties specified.

But, since there are no commas, this doesn't seem to be the case. It seems what it's saying is that the properties specified will only apply to an .image-box, that's within an .image, that's within a .product-details div.

Is that correct?

Thanks!
keress is offline   Reply With Quote
Old 20th October 10, 08:53 PM   #2
meesa
WLC Mod
 
meesa's Avatar
 
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,711
Default Re: Tags in a line with no commas

That is access all element with the class image-box that are inside of any elements with the class image that are inside an element with the class product-details.

Thus, this would be accessed:
Code:
<div class="product-details">
<div class="image">
<div class="image-box">
</div>
</div>
</div>
However, this would not be accessed:
Code:
<div class="product-details">
<div class="image-box">
</div>
</div>
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum.
meesa is offline   Reply With Quote
Old 20th October 10, 09:16 PM   #3
keress
WLC Member
 
Join Date: Oct 2006
Posts: 30
Default Re: Tags in a line with no commas

So that's as I thought?

Thanks.
keress is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyrightę 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.