Forums / Setup & design / search tool layout

search tool layout

Author Message

Lydie Soler

Friday 29 July 2005 8:36:35 am

Hi,

I have added the search box using the toolbar. It works fine. My problem is with its layout. I have on one line the label 'search' and on an other line underneath I have the input box and the search button.
I would like to have all the element on one line.
I know there is something to deal with CSS. But I haven't found what to changed (I search I lot although!!!! ;) )
THanks for your help

Luc Chase

Friday 29 July 2005 8:46:17 am

There are many possible solutions to the problem you're having and yes CSS is where to start. Remember that IE has it's share of bugs.
I don't recall the specific attribute which fixes this but here is some of the code I used.... hopefully it's the bit that did the trick. I would advise that you use Mozilla with the 'webdeveloper' addon to help you fix this...
Style Information - http://www.ccdirectory.org.uk/
http://www.ccdirectory.org.uk/design/base/stylesheets/core.css
http://www.ccdirectory.org.uk/design/base/stylesheets/site_lc.css

div#toolbar-top input.searchinput, div#toolbar-bottom input.searchinput (line 220)
{
width: 7em;
background-color: rgb(204, 255, 238);
position: relative;
top: 1px;
padding-right-value: 0px;
padding-right-ltr-source: physical;
padding-right-rtl-source: physical;
height: 1.26em;
}

label (line 208)
{
font-weight: bold;
padding-right-value: 0.5em;
padding-right-ltr-source: physical;
padding-right-rtl-source: physical;
display: block;
white-space: nowrap;
}

http://www.ccdirectory.org.uk/packages/styles/t20/files/default/file/design/base/stylesheets/t20/site-colors.css

div label (line 19)
{
width: auto;
text-align: right;
display: inline;
}

The Web Application Service Provider

Lydie Soler

Monday 01 August 2005 8:06:27 am

Hi,

after hours of search... I finally found it!
it was just a parameter in the pagelayout.tpl where the toolbar is included:
just needed to replace
{tool_bar name=top view=<b>full</b>} by {tool_bar name=top view=<b>line</b>}.....

Tricky
THanks again for your help!

eZ debug

Timing: Jan 21 2025 02:48:17
Script start
Timing: Jan 21 2025 02:48:17
Module start 'content'
Timing: Jan 21 2025 02:48:17
Module end 'content'
Timing: Jan 21 2025 02:48:18
Script end

Main resources:

Total runtime1.0064 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.6094180.8438
Module start 'content' 0.00790.8605 768.4531533.3047
Module end 'content' 0.86830.1380 1,301.7578333.5000
Script end 1.0063  1,635.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4232210.0002
Check MTime0.00160.1627210.0001
Mysql Total
Database connection0.00090.085510.0009
Mysqli_queries0.926192.01921940.0048
Looping result0.00200.20101920.0000
Template Total0.968296.220.4841
Template load0.00320.318420.0016
Template processing0.965095.890120.4825
Template load and register function0.00020.015110.0002
states
state_id_array0.00090.091410.0009
state_identifier_array0.00110.108520.0005
Override
Cache load0.00250.2491490.0001
Sytem overhead
Fetch class attribute can translate value0.00170.172730.0006
Fetch class attribute name0.00110.113530.0004
XML
Image XML parsing0.00050.054330.0002
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00190.1920210.0001
String conversion0.00000.000830.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs