Changeset 16302 for gsdl


Ignore:
Timestamp:
2008-07-04T13:15:45+12:00 (16 years ago)
Author:
davidb
Message:

spacer.gif height fixed to 1 to avoid an ugly navigation bar background twice the height of the text in it when there was only 1 or two items in the nav-bar. This was caused by scaling spacer.gif to the required width without contraining its height which also grew proportionally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/macros/nav_css.dm

    r15984 r16302  
    5353#######################################################################
    5454
    55 # the spacer image - the width of this is calculated and set from server
    56 _navbarspacer_ {<img src="_httpimg_/spacer.gif" width="_widthtspace_" />}
     55# the spacer image - the width of this is calculated and set from server.
     56#
     57# Its height is now explicity set to 1 to avoid width x height "scaling
     58# problem".  Given that spacer.gif's natural dimensions are 40x4 pixels,
     59# left uncontrolled, when the image is stretched through _widthtspace_ to
     60# a width of say 400 (as happens when there are only two items in the
     61# navigation bar) then its height becomes 40 pixels, making the navbar
     62# twice as high as the text in it, and quite ugly looking
     63
     64_navbarspacer_ {<img src="_httpimg_/spacer.gif" height="1" width="_widthtspace_" />}
    5765
    5866_navbarspacer_[v=1] {<br>
Note: See TracChangeset for help on using the changeset viewer.