| | |
textbox background problem (WIERD)
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I have applied an image background to the search box using its ID.
Its funny but when i type inside the search box as the text reaches the end of the box it start moving the background image to the left but only in IE6 (which i can ignore) and IE7 (which i cannot), in all the other browsers it works perfectly.
Please run this code and see what happens. If nothing else its funny.
and if u know how to rectify this then plz lemme know.
Thanks!
HTML CODE
CSS CODE
Its funny but when i type inside the search box as the text reaches the end of the box it start moving the background image to the left but only in IE6 (which i can ignore) and IE7 (which i cannot), in all the other browsers it works perfectly.
Please run this code and see what happens. If nothing else its funny.
and if u know how to rectify this then plz lemme know.
Thanks!
HTML CODE
HTML and CSS Syntax (Toggle Plain Text)
<form id="searchform"> <fieldset class="search"> <input type="text" id="box" /> <button id="btn" title="Submit Search">Search</button> </fieldset> </form>
CSS CODE
fieldset.search
{border: none; width: auto;}
.search input, .search button
{border: none; float: left;}
.search input#box
{position:relative; color: #fff; font-size: 1.2em; width: 190px; height: 33px; padding: 6px 0 0 4px; background: url('../images/search-bg.png') no-repeat; }
.search button#btn
{width: 73px; height: 33px; cursor: pointer; text-indent: -9999px; background: url('../images/search-btn-bg.png') no-repeat;}•
•
Join Date: Oct 2008
Posts: 76
Reputation:
Solved Threads: 6
Midi, if you want to preach about how everybody builds their websites wrong, get a website of your own (add the link to your sig
) and preach there. Here (I'd like to at least think) we answer people's questions, so long as they are reasonable, at least.
Web designers make suggestions to their clients, it looks like this man works for someone (the only thinkable reason I have for him ignoring IE6) and, unfortunately, you cant tell your client what to do.
) and preach there. Here (I'd like to at least think) we answer people's questions, so long as they are reasonable, at least.
Web designers make suggestions to their clients, it looks like this man works for someone (the only thinkable reason I have for him ignoring IE6) and, unfortunately, you cant tell your client what to do.
Last edited by ccube921; Jan 21st, 2009 at 8:36 pm.
If I have been helpful add to my reputation!
It;s not so much building a website "wrong" as it is building a website that a portion of the population can't use.
You can certainly tell you client that what he wants to do can't be done, if it is beyond the capabilities of the system. Making a footer at the bottom of any browser's window is one of those things that is impossible.
You can tell the client how what he wants to do is illegible to many people. That's what text on top of graphics becomes for many people. Given the facts, I don't think he would want to do that.
You can certainly tell you client that what he wants to do can't be done, if it is beyond the capabilities of the system. Making a footer at the bottom of any browser's window is one of those things that is impossible.
You can tell the client how what he wants to do is illegible to many people. That's what text on top of graphics becomes for many people. Given the facts, I don't think he would want to do that.
Last edited by MidiMagic; Jan 23rd, 2009 at 11:02 pm.
Daylight-saving time uses more gasoline
•
•
Join Date: Oct 2008
Posts: 76
Reputation:
Solved Threads: 6
Well, I do believe that the only browser it doesn't work on is IE 6. Due to that I feel that you should not make declarations on what the internet was made for, because the internet can do practically anything, and IMHO it is extremely small-minded to limit the internet to your views.
Last edited by ccube921; Jan 24th, 2009 at 8:00 pm.
If I have been helpful add to my reputation!
The only browser what doesn't work on? Text on top of graphics, or a footer at the bottom of the browser window?
If it's making a footer, the W3C says that they made no way to size a page to the browser window on purpose. THEY are the ones who determine what the Internet is designed for.
Making a page that exactly fills a screen has the following factors working against it:
- Browsers don't agree on providing information about the window.
- The window belongs to the user, not the web programmer.
- There are too many different screen resolutions.
- A user can restore down the browser window, making it smaller.
- Resizing the user's preset browser window with a script makes users mad.
- Many users do not allow scripts.
- Programming necessary to make it work is a kludge, relies on browser quirks, or violates W3C standards.
If it's making a footer, the W3C says that they made no way to size a page to the browser window on purpose. THEY are the ones who determine what the Internet is designed for.
Making a page that exactly fills a screen has the following factors working against it:
- Browsers don't agree on providing information about the window.
- The window belongs to the user, not the web programmer.
- There are too many different screen resolutions.
- A user can restore down the browser window, making it smaller.
- Resizing the user's preset browser window with a script makes users mad.
- Many users do not allow scripts.
- Programming necessary to make it work is a kludge, relies on browser quirks, or violates W3C standards.
Last edited by MidiMagic; Jan 25th, 2009 at 11:54 pm.
Daylight-saving time uses more gasoline
•
•
Join Date: Oct 2008
Posts: 76
Reputation:
Solved Threads: 6
Ouch this one is bad, I was surfing for your aforementioned quote, that they said:
Well, I came across this page, Nice footer, ah?
Somehow I'm pretty sure that floating headers and footers was the purpose of: position:fixed;
•
•
•
•
that they made no way to size a page to the browser window on purpose.
Somehow I'm pretty sure that floating headers and footers was the purpose of: position:fixed;
If I have been helpful add to my reputation!
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: Iframe
- Next Thread: CSS and Forms
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






