conditional inline div styling (help!)
        Posted  
        
            by 
                AMC
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by AMC
        
        
        
        Published on 2012-10-11T03:33:21Z
        Indexed on 
            2012/10/11
            3:37 UTC
        
        
        Read the original article
        Hit count: 250
        
I have div that I need to be present on every page, yet at a different length depending on the exact page.
So far, I have this:
<div class="above <?php if (is_page(12)) echo 'short'; ?>"> //content </div><!-- end above -->
How do I go about adding something to the avail of <?php if (is_page(24, 26, 28)) echo 'med'; ?>
(on page 12 I need the "short" length, and on pages 24, 26, 28 I need the "med" length of the div)
Any help is appreciated. I'm just now diving into php and while I do love the options it makes available, I'm not sure yet how to put it all together.
© Stack Overflow or respective owner