[cgiirc-general] (no subject)
Brought to you by:
dgl
From: Shawn P. <spo...@ya...> - 2004-08-25 01:43:23
|
Looks like in the interfaces/mozilla.pm, in sub fform, it generates the HTML for the input form: <input type="text" class="form-say" name="say" autocomplete="off" onpaste="return pastedata(window.clipboardData.getData('Text',''));" > Accoring to the stylesheet: .form-say { border: 0; width: 90%; padding-left: 4px; } So to test this, I made a quick HTML: <html><body> <div style="width:90%;border:1px solid black"> This div should be 90% </div> <input type="text" style="width:90%;border:1px solid black" value="This field should be 90%"> </body></html> This seemed to work normal in Firefox. So I copy/pasted the source text into an HTML file. It appears that the width:90% doesn't work when the tag is inside a <div class="form-form"> block. .form-form { float: left; } So I use the EditCSS extension to Firefox and realtime edit the CSS sheet. If I comment out float: left, the width:90% works! But as expected, the expanding colors bar appears on the next line, rather than beside the input field. I toyed around with the HTML and finally got this segment of HTML to work: <form name="myform" onSubmit="return cmd();" style="margin:0;padding:0"> <span id="nickname" class="form-nickname" style="float:left">nickname</span> <input type="text" class="form-say" name="say" autocomplete="off" style="float:left" onpaste="return pastedata(window.clipboardData.getData('Text',''));" > </form> Note I had to update the <form>, <span> and <input> tags consecutively. Unfortunately, the current setup of the stylesheet is not browser independant, so this code does not follow the stylesheet the same way as other browsers should. Rather than making a surroudning block (<form>) float:left, I made each tag float:left. Unfortunately, this isn't perfect. When I expand the colors bar, the input width is too wide, causing poor formatting. Oh well. It seems like a Firefox issue, though. Hope this helps the authors. --- Jeff Taylor <shd...@so...> wrote: > I've been noticing that since the 0.9 version of firefox. It was > working correctly under the 0.8 series. Not sure if anyone has found > a > reason why it broke, however. > > > Shawn Poulson wrote: > > > Hi all, > > > > I've been a fan of CGI:IRC since I found it. I set it up on my own > > site so I can chat from work through the proxy. > > > > I'm also a big fan of the Firefox browser, so I use it as much as I > can > > and not IE. I have noticed one problem with CGI:IRC that you are > > probably aware of. The line entry is only a few hundred pixels > wide, > > eventhough the window is much wider. It's as if the input field is > not > > resizing with the window. > > > > Is there a fix for this? > > > > Thanks. > > > > ===== > > --- > > Shawn Poulson > > spo...@ex... > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > cgiirc-general mailing list > > cgi...@li... > > https://lists.sourceforge.net/lists/listinfo/cgiirc-general > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > cgiirc-general mailing list > cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgiirc-general > > > > ===== --- Shawn Poulson spo...@ex... |