Posted by Toby Inkster on 01/19/07 03:21
boclair wrote:
> A further method that can be useful is to use conditionals on the css
> display property. e.g
>
> <?php if(conditionA){$display="block;"}
> elseif (conditionB) {$display="none;"}
> ?>
> <div style="<php echo $display;?>">
> BLOCK OF MARKUP
> </div>
Doesn't work in non-CSS aware browsers. e.g. older browsers, text
browsers, search engine spiders, many mobile phones. And you waste
bandwidth.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|