Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2010
    Location
    Leamington Spa, UK
    Posts
    31
    Plugin Contributions
    0

    Default Custom searchbox issue

    Hi all,

    I've just styled my own searchbox in the sidebar, but I can't get the input border to disappear like the one I have in the header of my site (www.notoriousdesign.co.uk/d r . u m). < remove spaces

    Here's the PHP:

    $content = "";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    $content .= zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get');
    $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
    $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();

    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="30" style="width: 138px"' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
    $content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
    } else {
    $content .= '<div class="search-sidebox-input">'. zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 138px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '</div><input class="button-search-sidebox" type="image" src="' . $template->get_template_dir('', DIR_WS_TEMPLATE, $current_page_base,'images') . '/searchbutton.jpg' . '" value="Search" />' /*. zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON)*/;
    $content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
    }

    $content .= "</form>";
    $content .= '</div>';
    ?>


    and this is the CSS, which I basically copied from the header styling that came with the Pure Black Free template:

    .search-sidebox-input {
    background: url("../images/searchsidebox.gif") no-repeat left top;
    height: 27px;
    padding:4px 0 0 10px;
    float: left;
    z-index: 2;
    }
    .search-sidebox input {
    border: 0px;
    margin: 0px;
    color: #696969;
    background: none; }



    pleeeease help

    Thanks!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Custom searchbox issue

    If I understand the question,

    #search input {border:none;}

  3. #3
    Join Date
    Sep 2010
    Location
    Leamington Spa, UK
    Posts
    31
    Plugin Contributions
    0

    Default Re: Custom searchbox issue

    ahh perfect, thanks so much!

 

 

Similar Threads

  1. Searchbox Sidebox problem
    By autoace in forum Basic Configuration
    Replies: 1
    Last Post: 8 Oct 2009, 11:31 PM
  2. searchbox in centerpage
    By broeder in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Apr 2009, 03:13 PM
  3. Searchbox font size
    By razzzor in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Jul 2008, 01:17 AM
  4. Searchbox in Breadcrumb
    By soggychicken in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 22 Jul 2007, 06:03 AM
  5. custom searchbox help
    By zskiman in forum General Questions
    Replies: 0
    Last Post: 3 Oct 2006, 08:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg