-3

I am aware of css id and class but I have never seen this

.forumbg-table > .inner { margin: 0 -1px; }

Could you please let me know what does it stands for?

ginter
  • 47
  • 9

2 Answers2

1

Selects all inner class elements where the parent is a .forumbg-table class element

laaposto
  • 11,835
  • 15
  • 54
  • 71
1

This is the direct descendant selector. It selects immediate children of the first selector.

Here is the syntax:

parentSelector > immediateChildSelector
{
  //Properties here
}

ex.

<div id="parentDiv">
    <label class='lbl1'>Label</label>
 </div>

<label class='lbl1'>Label 2</label>

#parentDiv > .lbl1
{
  color: blue;
}

In the example above the second label wont get the color of blue because it's not a direct child of the parentDiv element.

Here is a live sample: http://jsbin.com/iWuSUde/1/edit

Here is a reference: https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_selectors

Allan Chua
  • 9,305
  • 9
  • 41
  • 61