[greenstone-users] Problem with the width of the navigation bar

From Oran of Greenstone Team
DateThu Apr 17 10:59:47 2008
Subject [greenstone-users] Problem with the width of the navigation bar
In-Reply-To (1696-192-245-136-56-1207860976-squirrel-mail-wrlc-org)
Hi Allison,

I have looked at your problem and have come up with a solution. I have
tested it on my machine and it looks good in Firefox and IE6/7. The
problem is that the each html element in the nav bar has a pixel width
hard coded in, and these widths add up to more than 780px. The solution
is, create a containing div whose width is 780px, and have all elements
inside use percentage widths instead of pixel widths.

It looks like your collection's nav bar uses images of text, rather than
text. The collection I used for testing just uses text, so this solution
may not work straight off and may need some tweaking - just let me know
if you get stuck. Here it is:

In macros/nav_css.dm, change the 'optnavigationbar' macro to this:
<div class="navbar" style="width:780px">

Change the 'navtab' macro to this:
_navtab_ {<div style="float:left; width:16%; background-image:
url('_httpimg_/tspace.gif'); text-align:center;"><a _If_("_4_" eq
"selected",class="navlink_sel">_2_,class="navlink" href="_1_"

And blank out the 'navbarspacer' macro:
_navbarspacer_ {}

Please write back if you have any more questions.


Allison Zhang wrote:
> I just realized that I put the wrong Subject line for this message I sent
> out. Please ignore my previous message and help me with this problem
> stated below. --Allison
> I??m experiencing a problem with the width of the navigation bar. I set
> up the page width macro as 780 px:
> _pagewidth_ {780}
> but the navigation bar is always longer than the page width. I created
> many collections using different page width and never had any problem. I
> don??t know what??s wrong with this one. I compared the collection macro
> file with the macro file for other collections and could not find anything
> wrong. Does anybody have any idea what could be wrong? Here is the URL
> for this trouble collection. The navigation bar is 817 px, 37 px longer
> than the page width 780 px.
> http://test.aladin.wrlc.org/gsdl/collect/mitchell/mitchell.shtml
> Many thanks
> Allison
> ------------------------------------------------------------------------
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20080417/53295e04/attachment-0001.html