Something wrong with my Searchbox.

About the template and stylesheet - and changing the menu
mvwd
Posts: 299
Joined: Tue Jun 17, 2008 10:35 pm
Location: Baden Württemberg / Germany
Contact:

Re: Something wrong with my Searchbox.

Post by mvwd » Sat Jan 02, 2010 12:27 pm

1. Because your template is using tables, you can use vertical-align:middle; for vertical positioning. Maybe you have also to delete valign="top" out of the template.htm. Best practice is to use the class, that's defined for this table-cell. So use in stylesheet.css:

Code: Select all

.searchbox {vertical-align:middle; }
2. The background-Image won't work, because the path to it isn't defined correctly. All the pathes are defined this way in your stylesheet.css: background-image: url(Designs/public_html/templates/default/images/xyz.gif);
Just use: background-image: url(./images/xyz.gif);

mvwd.

Torsten.Behrens
Posts: 522
Joined: Thu May 22, 2008 7:27 am
Location: Germany / Schleswig-Holstein
Contact:

Re: Something wrong with my Searchbox.

Post by Torsten.Behrens » Sat Jan 02, 2010 1:09 pm

Ok - i see a template from mikey - where is your template?

Torsten
Torsten Behrens
CMSimple Templates

Teun
Posts: 21
Joined: Wed Dec 30, 2009 4:09 pm
Location: Netherlands

Re: Something wrong with my Searchbox.

Post by Teun » Sat Jan 02, 2010 4:36 pm

mvwd wrote:1. Because your template is using tables, you can use vertical-align:middle; for vertical positioning. Maybe you have also to delete valign="top" out of the template.htm. Best practice is to use the class, that's defined for this table-cell. So use in stylesheet.css:

Code: Select all

.searchbox {vertical-align:middle; }
2. The background-Image won't work, because the path to it isn't defined correctly. All the pathes are defined this way in your stylesheet.css: background-image: url(Designs/public_html/templates/default/images/xyz.gif);
Just use: background-image: url(./images/xyz.gif);

mvwd.
Thnx going to fix it now.

Teun
Posts: 21
Joined: Wed Dec 30, 2009 4:09 pm
Location: Netherlands

Re: Something wrong with my Searchbox.

Post by Teun » Sat Jan 02, 2010 5:21 pm

I've got the searchbox working good now, there's online 1 problem, can't align it into the middle, already tried to change it in CSS but it doesnt even change.

Torsten.Behrens
Posts: 522
Joined: Thu May 22, 2008 7:27 am
Location: Germany / Schleswig-Holstein
Contact:

Re: Something wrong with my Searchbox.

Post by Torsten.Behrens » Sat Jan 02, 2010 6:16 pm

your template.htm is broken:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<br><table border='1' cellpadding='2' bgcolor='#FFFFDF' bordercolor='#E8B900' align='center'><tr><td><font face='Arial' size='1' color='#000000'><b>PHP Error Message</b></font></td></tr></table><br />
<b>Fatal error</b>:  Call to undefined function  head() in <b>/home/a1199847/public_html/templates/default/template.htm</b> on line <b>5</b><br />
<br><table border='1' cellpadding='2' bgcolor='#FFFFDF' bordercolor='#E8B900' align='center'><tr><td><div align='center'><a href='http://www.000webhost.com/'><font face='Arial' size='1' color='#000000'>Free Web Hosting</font></a></div></td></tr></table>
... work on a webspace without killing freehost-scripting including!

To everybody in the forum:
Do we need ours own free-webspace for such cases?
Then every user in the forum can test perfectly.
We save a lot of time and nerves.

Torsten
Torsten Behrens
CMSimple Templates

mvwd
Posts: 299
Joined: Tue Jun 17, 2008 10:35 pm
Location: Baden Württemberg / Germany
Contact:

Re: Something wrong with my Searchbox.

Post by mvwd » Sun Jan 03, 2010 1:19 am

Have you seen this:
Maybe you have also to delete valign="top" out of the template.htm.
? mvwd.

Teun
Posts: 21
Joined: Wed Dec 30, 2009 4:09 pm
Location: Netherlands

Re: Something wrong with my Searchbox.

Post by Teun » Sun Jan 03, 2010 10:43 am

Oh noes it killed my template. I'll try to remove valign top, thank you for helping.

EDIT: Deleted valign top but it didn't work.

Post Reply