Jump to content

CSS+ Wordpress


MuRRe

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/136005-css-wordpress/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/136005-css-wordpress/#findComment-709152
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.