php newbie needs help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
breeze76
Forum Newbie
Posts: 1
Joined: Wed Jun 10, 2009 10:10 am

php newbie needs help

Post 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
Last edited by Benjamin on Wed Jun 10, 2009 11:52 am, edited 1 time in total.
Reason: Changed code type from text to php.
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: php newbie needs help

Post by omniuni »

Can you post a live link for us to see?
Post Reply