Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-03-30 11:07:17
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Style seach button in IE
If this has been asked, please point me to right thread, didn´t find with forum search… how do I style search button (and field) with IE? Is there a class for it or can I add the class manually to the source code and where can I find it?
This is what I want to do, works with Gekko browsers and Opera:
With IE it looks now like this:
Offline
Re: Style seach button in IE
Instead of using the TXP tag you can create your own form like so:-
<code>
<form id=“searchform” action=”<txp:site_url />search/” method=“get”>
<div>
<input type=“text” name=“q” value=”“ size=“15” /><button type=“submit” value=“Go” id=“submit”>Search</button>
</div>
</form></code>
<br />
Ingnore my formatting requirements. I use a “button element” intead of an “input element” but you can change that if you wish – <code><input type=“submit” value=“Go” id=“submit” /></code> – and you can add ids and classes to your heart’s content.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-03-30 19:41:51
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Style seach button in IE
Thank you! Again. And as always, problem solved :)
<code><form id=“searchform” action=”<txp:site_url />search/” method=“get”>
<input type=“text” name=“q” value=”“ size=“16” /><input type=“submit” value=“Ok” id=“submit” class=“button” />
</form></code>
I hope that is correct but at least it works. Amazing how much lifetime one can spend only to trying to figure how to get one button styled correctly for all browsers….
Here is the site in question
Okay, bit off topic but I wonder if you have also solution to the navigation tabs, how to lose the 1px border underneath them when viewed with damned IE…
Offline
#4 2006-03-30 20:52:22
- whatbrick
- Member

- From: Texas
- Registered: 2006-03-13
- Posts: 100
Re: Style seach button in IE
Here’s one way I found to remove the border in IE. Add the following to the #navlist entry in the IE conditionals:
margin-bottom: -1px;
position: relative;
Worked for me.
Do not taunt the Markup Monkey!
Offline
#5 2006-03-31 07:26:35
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Style seach button in IE
Thank you whatbrick!! That did the trick!! Yipee. I tryied earlier just the plain negative 1px bottom margin but that did not help. Didn´t realize that I should add also position:relative.
Hopefully this stuff can be usefull to other non css gurus here too, took me several days trying to fix these to problems with no success. And yes, I assume that it is a bit sorry workaround to add IE conditionals but……….
Offline
#6 2006-03-31 08:20:17
- whatbrick
- Member

- From: Texas
- Registered: 2006-03-13
- Posts: 100
Re: Style seach button in IE
I didn’t realize it needed position: relative; either until I fiddled with it enough. I’m glad it worked.
Don’t feel bad for using what works. Until the browser manufacturers can start coding their products to follow web-standards completely, then we have to use every available trick in the book to get what we (or or clients) need. So, using conditionals isn’t a sorry workaround, it’s actually a rather nice blessing considering the circumstances. When/if the time comes that those rules are no longer needed, it will be a lot easier to just delete what is in-between the comments than to hunt down any CSS hacks in a stylesheet.
Do not taunt the Markup Monkey!
Offline
#7 2006-03-31 10:36:04
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Style seach button in IE
@-P-
could you let me know how you got this nice calendar feature on your site working? Is it a plugin?
(btw. you subscibed with TXP Blogmap, did´nt you? but the url to your pic is not correct. Can you update the url please. The Blogmap does not stop loading as long as pics are missing. thx :)
Offline
#8 2006-03-31 11:33:36
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Style seach button in IE
That calendar is a plugin, mdp_calendar
About the blogmap url, sorry for this extra trouble I´m causing… but can´t actually understand what´s causing it. Image is linked from a domain that has no hotlinkin prevention set. I did ping the blogmap now again, hope that helps. Image url is http://www.virtual.fi/images/pdom.gif, could it be the problem that image is served from different domain than the actual blog?
Offline
#9 2006-03-31 13:49:38
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Style seach button in IE
@P i fixed the image blogmap issue and it works now. thx.
Offline
Re: Style seach button in IE
The real test is disabling the default aqua interface for forms in Safari. After much research, it appears that flash forms (eek!) are the only way to override the default border appearance. Apparently this is going to be changed in the next release.
Offline
#11 2006-03-31 20:24:02
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Style seach button in IE
Luckily and afaik the default buttons in Safari look quite good… ……. :D
At lest Safari does not pick up the button style just “half way” like IE does.
Offline
Pages: 1