I'm trying to rebuild my pages with css and I have one thing left to make it 100% valid-using a bg image in a layer is htrowing an error:
Property layer-background-image doesn't exist : url(img/cata-bg-g.jpg)
Do you mean in a div? I can't see that bit of code anywhere.
background-image:url(img/cata-bg-g.jpg);
should be fine

Does anyone know of a way to do this that is valid css? I know I can just put the img in a layer (vs using it as a bg) and throw another layer ober top of it, but I don't think it is very efficient.
yeah, what I said above
and you are right it's not efficient.
Another thing I want to try to do is let users change text size like in http://www.inc.com (buttons to do that are near the top right corner). Anyone know how this works?
This would be done using javascript But, the best way to let someone change your font - sizes is to change:
p.one {font: 9pt Arial, Helvetica, sans-serif;
}
- p.one {font: 9pt Arial, Helvetica, sans-serif;
- }
to
p.one {font: 80% Arial, Helvetica, sans-serif;
}
- p.one {font: 80% Arial, Helvetica, sans-serif;
- }
I like 80% but change it to whatever. that way, someone with bad eyesight can just change it themselves (which they will prabably have changed in their default preferences. Also, handy shortcut is ctrl-mousewheel to test variable text sizes.
Never use px to specify font sizes. Use pt only for print styles, pt's don't go to well on the screen.
The javascript version would probably use a percentage size on the body, then other percentages on the inner elements. Then alter the body only in javascript. The other elements will then inherit accordingly.
Bear in mind that if you have nested elements, the percentages will be cumulative. eg:
div{font-size:80%}
....................
<div>
Hello
<div>
this is
<div>
a demonstration
</div>
</div>
</div>
- div{font-size:80%}
- ....................
- <div>
- Hello
- <div>
- this is
- <div>
- a demonstration
- </div>
- </div>
- </div>
the word "hello" would be at 80%, "this is" at 64% and "a demonstration" would be at *thinks* 51.2%
BTW, the PM you sent me - I wil get round to it properly after my exam. TBH you will learn more by soldiering on

but yeah I will get round to giving you some pointers next week.