CSS & search button

Discuss the development and implementation of Joomla! 1.0.x templates here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Locked
sirhanhi
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Wed Sep 14, 2005 11:16 am

CSS & search button

Post by sirhanhi » Sun Sep 25, 2005 6:01 pm

Ok so i have a search button in my site. Its located in top right corner and only in frontpage. Problem is that i cannot alter its appereance, i have altered .inputbox (and im 99 % sure this is the right one) and my login boxes are right on mark, but search box doesnt change its form. Its still "default" = white background and black text.

I thought that maybe someone has changed its ID name, but i couldnt find the file to be edited anywhere.. And then again, i might be really wrong here but if someone has solution --> GIMME :).

User avatar
UncutDesign
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Mon Sep 19, 2005 12:59 am
Location: Fernandina Beach, Fl
Contact:

Re: CSS & search button

Post by UncutDesign » Sun Sep 25, 2005 6:11 pm

What template are you using?
Is it custom coded?

sirhanhi
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Wed Sep 14, 2005 11:16 am

Re: CSS & search button

Post by sirhanhi » Sun Sep 25, 2005 6:37 pm

ye custom made

User avatar
rcarver
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 204
Joined: Thu Aug 18, 2005 10:24 pm
Contact:

Re: CSS & search button

Post by rcarver » Mon Sep 26, 2005 6:27 pm

got a URL so we can take a look? 
Randy Carver - carver-family.com

There are 10 types of people in this world.  Those that understand binary and those that don't.

User avatar
sc00zy
Joomla! Exemplar
Joomla! Exemplar
Posts: 9532
Joined: Thu Aug 18, 2005 9:07 am
Location: Assen, Netherlands
Contact:

Re: CSS & search button

Post by sc00zy » Mon Sep 26, 2005 6:37 pm

The default class for a button is.... button :laugh:
Arjan Menger
https://welldotcom.nl - Puntgaaf Internetbureau

User avatar
Casey Lee
Joomla! Explorer
Joomla! Explorer
Posts: 312
Joined: Sat Sep 03, 2005 10:22 pm
Location: AL
Contact:

Re: CSS & search button

Post by Casey Lee » Mon Sep 26, 2005 6:43 pm

here's a sample class that by default effects all buttons in your site like "Login" "Search" etc..

Code: Select all

.button {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 11px;
	padding-top: 2px;
	padding-right: 4px;
	color: #CCCCCC;
	background-image: url(../images/butbg.gif);
	background-repeat: repeat-x;
	background-position: left center;
	text-align: center;
	padding-bottom: 2px;
	padding-left: 4px;
	border: 2px solid #999999;
}
The ".inputbox" class will effect the form field itself.

If you're wanting to position the button or module itself more accurately, just assign it a div class in your template file and select it from your css file and position/style it accordingly.
Last edited by Anonymous on Mon Sep 26, 2005 6:45 pm, edited 1 time in total.

jondiego
Joomla! Guru
Joomla! Guru
Posts: 629
Joined: Fri Jun 12, 2009 4:25 am
Location: San Diego, CA
Contact:

Re: CSS & search button

Post by jondiego » Sat Jun 13, 2009 5:10 am

I think i found a big part of the problem. If you upload the image file through the media manager to the /images/M_images/ folder it will automatically change the file name to all lower case. You have to go into your cpanel or directly to your server and change the image file name to searchButton.gif

I am still working on the enlarged image problem

Jon
www.CareyWebDesigns.com
SEO that gets you noticed!
http://www.CareyWebDesigns.com
Real Estate Advertising
http://www.RealEstateActive.com

jondiego
Joomla! Guru
Joomla! Guru
Posts: 629
Joined: Fri Jun 12, 2009 4:25 am
Location: San Diego, CA
Contact:

Re: CSS & search button

Post by jondiego » Sat Jun 13, 2009 5:14 am

I figured out how to solve the search button problem.

Go into your css file. Usually template.css and add this code

.search .button{
position:absolute;
background-image: url('/images/M_images/searchButton.gif');
background-repeat:no-repeat;
width:20px;
height:20px;
}

Go directly to your server or cpanel and upload your image file MAKE SURE TO NAME IT searchButton.gif It's case sensitive. Make sure you upload the image file you want to use to the " /images/M_images/ " folder

Once you have the file uploaded and the css coded, make sure to go into your search module through the admin panel and select "Search Button as image -Yes", "Search Button -Yes"

Hope this helps. It worked for me.

Jon
http://www.CareyWebDesigns.com
SEO that gets you noticed!
http://www.CareyWebDesigns.com
Real Estate Advertising
http://www.RealEstateActive.com

dannygsam
Joomla! Intern
Joomla! Intern
Posts: 69
Joined: Wed Sep 17, 2008 4:37 am

Re: CSS & search button

Post by dannygsam » Thu Jun 18, 2009 9:37 am

I have the same problem. But there is no searchButton.gif image present and I rechecked in my custom template it does not have. What should I do? Its fine in IE8 and Mozilla. But in IE 7 it looks horrible with a big box showing that image not present

Tameran
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Fri Jul 31, 2009 2:23 pm

Re: CSS & search button

Post by Tameran » Mon Aug 10, 2009 2:59 pm

I also have this problem. I uploaded a gif to the image manager and put it in the correct folder. I named the file searchButton.gif, but when I try to upload the image it is automatically changed to searchbutton.gif and therefore will not show up. Any ideas why this is happening and is there some manipulation to the CSS that also needs to be done to have a custom button appear? I am new at this!!

User avatar
webpetrol
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Jan 23, 2010 8:58 am

Re: CSS & search button

Post by webpetrol » Sat Jan 23, 2010 9:25 am

This is good idea.It works fine.
.search .button{
background-position: left center;
background-image: url('/images/M_images/searchButton.gif');
background-repeat:no-repeat;
width:20px;
height:20px;
}

whyknott
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Tue Nov 29, 2011 8:22 pm

Re: CSS & search button

Post by whyknott » Wed Dec 21, 2011 5:59 pm

Where can I find the CSS for the actual Search Results Page? I'm using the default search module in Joomla 1.7 and want to stylize what the text looks like on my search results page. I'm using firebug to sort thru the search results page but still cannot find the CSS for it.

Thanks!


Locked

Return to “Templates & CSS - 1.0.x”