>
> On Oct 23, 2010, at 8:07 PM, MEM wrote:
> Height: 100% only works if the height of the parent element is known, as in
> your code snippet:
Ok. It's 100% of a given height. 100% is a relative measure, hence, we
need to have a reference. Slowly... I'm getting somewhere. :s
>
> Philippe
Thank
On Oct 23, 2010, at 8:07 PM, MEM wrote:
> I would love to have a cheat-sheet so that I can see what is the
> default position and display values of elements... :D :D
>
> :D ?
Have you tried the CSS 2.1 spec ? it has a helpful index.
http://www.w3.org/TR/CSS21/indexlist.html
- :D -
>> And heig
Context:
> #menu li a {
> background:url('image/menu.png') no-repeat;
> width:100%;
> height:100%;
> display:block;
> }
Add on:
#menu li {
height: 100px;
width: 200px;
}
> s are inline-level elements so width and height do not apply unless you
> style them as block-elements.
> On a sprite technique we often see something like this:
>
> #menu li a {
> background:url('image/menu.png') no-repeat;
> width:100%;
> height:100%;
> display:block;
> }
>
> Why, when we set the display to block, the width and height properties
> seem to realise the background im
Hello all,
On a sprite technique we often see something like this:
#menu li a {
background:url('image/menu.png') no-repeat;
width:100%;
height:100%;
display:block;
}
Why, when we set the display to block, the width and height properties
seem to realise the background image presen