MuRRe Posted December 8, 2008 Share Posted December 8, 2008 Hi! First off, I don't know CSS at all. I started my own blog, its located at: http://murre.x10hosting.com/ (sorry, in swedish). The problem is, the search bar, I want to be able to get the search bar either just right to "Om bloggen, om oss...", or at all the way at the right, but at the navbar. This is code of the navbar: <div id="navbar"> <ul> <li><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages('title_li=&depth=1'); ?> <form method="get" id="search_form" action="<?php bloginfo('home'); ?>/"> <input type="text" class="search_input" value="To search, type and hit enter" name="s" id="s" onfocus="if (this.value == 'To search, type and hit enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'To search, type and hit enter';}" /> <input type="hidden" id="searchsubmit" value="Search" /> </ul> </div> I just took the form for the search from another file (i just downloaded a theme) and ctrl-v. I have tried to make it work, but i just can't do it. It comes underneath insted of next to the navigation. Thanks in advance MuRRe Quote Link to comment Share on other sites More sharing options...
MuRRe Posted December 8, 2008 Author Share Posted December 8, 2008 Hi! First off, I don't know CSS at all. I started my own blog, its located at: http://murre.x10hosting.com/ (sorry, in swedish). The problem is, the search bar, I want to be able to get the search bar either just right to "Om bloggen, om oss...", or at all the way at the right, but at the navbar. This is code of the navbar: <div id="navbar"> <ul> <li><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages('title_li=&depth=1'); ?> <form method="get" id="search_form" action="<?php bloginfo('home'); ?>/"> <input type="text" class="search_input" value="To search, type and hit enter" name="s" id="s" onfocus="if (this.value == 'To search, type and hit enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'To search, type and hit enter';}" /> <input type="hidden" id="searchsubmit" value="Search" /> </ul> </div> I just took the form for the search from another file (i just downloaded a theme) and ctrl-v. I have tried to make it work, but i just can't do it. It comes underneath insted of next to the navigation. Thanks in advance MuRRe SOLVED Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.