menu css issue

Author Message

Kevin Myles

Thursday 20 January 2005 8:58:37 pm

I think this is a css issue. I'm sorry for not being more competent, but i'm not a professional and I'm just trying to help out a non profit with some pro bono work.

here's the issue: the size of the menu is dependent on the amount of text, so if there's not enough text, the menu (which is a different color than its background, just stops, and then there's white space. Conversely, if there is too much space, it extends to a second line.

I would like to change it so that it either a) looks like ez.no, whereby the "partner" menu link tab extends to all the way to the right , or b) make it so that the menu tabs auto space. any ideas as to how this can be accomplished? Thanks for your help!

Alex Jones

Friday 21 January 2005 11:50:39 am

Hi Kevin, can you post a URL so we can see this, as well as the affected browser(s)?

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Kevin Myles

Friday 21 January 2005 12:10:04 pm

Hey Alex, hope all is well and thanks for your reply.

http://216.218.247.118/
in Firefox and Safari (mac os x.3)

Alex Jones

Saturday 22 January 2005 7:44:48 am

Alrighty, hopefully I can help a bit.

Concerning the wrapping of tabs to a second line. You can't really force this without using images as Firefox allows the user to override any font size, which is a good usability practice, but can be problematic from a designer's perspective.

To make it look like the Partner link above, you should make sure that you have assigned a background image to div#topmenu li div.spacing (copied from ezmain.css):

div#topmenu li div.spacing
{
    background-image: url(../images/tab-regular-right.gif);
    background-repeat: no-repeat;
    background-position: top right;
}

Then add this to your CSS (copied from ezmain.css):

div#topmenu li.last div.spacing
{
    background-image: none;
}

You have a lot of CSS files, so if you already have this, I apologize. A quick scan didn't present it though.

Does this help?

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:25:06
Script start
Timing: Jan 18 2025 11:25:06
Module start 'layout'
Timing: Jan 18 2025 11:25:06
Module start 'content'
Timing: Jan 18 2025 11:25:07
Module end 'content'
Timing: Jan 18 2025 11:25:07
Script end

Main resources:

Total runtime1.0465 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.4688154.1563
Module start 'layout' 0.00680.0057 743.625039.3750
Module start 'content' 0.01241.0324 783.0000546.3125
Module end 'content' 1.04480.0016 1,329.312512.1953
Script end 1.0464  1,341.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3944160.0003
Check MTime0.00130.1256160.0001
Mysql Total
Database connection0.00100.100110.0010
Mysqli_queries0.987094.3131600.0164
Looping result0.00060.0541580.0000
Template Total1.001595.720.5008
Template load0.00210.204920.0011
Template processing0.999495.500220.4997
Template load and register function0.00020.020810.0002
states
state_id_array0.00110.105610.0011
state_identifier_array0.00170.157920.0008
Override
Cache load0.00180.1702230.0001
Sytem overhead
Fetch class attribute can translate value0.00110.100420.0005
Fetch class attribute name0.00130.121550.0003
XML
Image XML parsing0.00090.085720.0004
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00440.4206160.0003
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs