Page 1 of 1

php newbie needs help

Posted: Wed Jun 10, 2009 10:18 am
by breeze76
I have a problem with my code that will not let my search form and my breadcrumb function on the same line or table or whatever the php term is. Here is the code:

Code: Select all

 
<div id="main-top">
  <div id="main-top-wrapper" class"clearfix">
<!-- /Moved breadcrumb so it would not interfere with main site -->
<div id="wrapper-breadcrumb">
<?php if ($breadcrumb): ?><div id="breadcrump_over">
         <div id="breadcrump_image"></div>
          <div id="breadcrumb">
            <?php print $breadcrumb; ?></div>
          </div><!-- /breadcrumb -->
          <?php endif; ?>
 
                <!-- /Moved search so it would opposite the breadcrumb  -->
   <?php if ($search_box): ?>
          <div id="search-box">
            <?php print $search_box; ?>
          </div><!-- /search-box -->
          <?php endif; ?>
</div> 
  </div><!-- /main-top-wrapper -->
</div><!-- /main-top -->
 
What happens is that on the home page no breadcrumb is visible, but on all the other pages when the breadcrumb shows, it moves the search form down to the next line. It is acting as though the breadcrumb expands to far and forces the <div> to expand.

I am sure I will also have to do some tweaking in the css to help with the layout and function. Thanks for any help anyone can give me...

breeze76

Re: php newbie needs help

Posted: Wed Jun 10, 2009 11:54 am
by omniuni
Can you post a live link for us to see?