Forums / Setup & design / menu css issue

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>

eZ debug

Timing: Jan 18 2025 10:33:29
Script start
Timing: Jan 18 2025 10:33:29
Module start 'content'
Timing: Jan 18 2025 10:33:31
Module end 'content'
Timing: Jan 18 2025 10:33:31
Script end

Main resources:

Total runtime1.2969 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0109 589.0469180.8516
Module start 'content' 0.01091.1287 769.8984551.2188
Module end 'content' 1.13970.1572 1,321.1172336.7813
Script end 1.2968  1,657.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.3772210.0002
Check MTime0.00180.1371210.0001
Mysql Total
Database connection0.00140.105210.0014
Mysqli_queries1.213793.58231970.0062
Looping result0.00230.17881950.0000
Template Total1.242495.820.6212
Template load0.00190.143120.0009
Template processing1.240695.656620.6203
Template load and register function0.00020.016510.0002
states
state_id_array0.00310.235610.0031
state_identifier_array0.00210.164820.0011
Override
Cache load0.00150.1193230.0001
Sytem overhead
Fetch class attribute can translate value0.00170.134730.0006
Fetch class attribute name0.00110.084150.0002
XML
Image XML parsing0.00090.072930.0003
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00410.3123270.0002
String conversion0.00000.003630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs