Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2004, 12:49 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default using <TEXTAREA> with Opera 5, 6

this does not works with Opera 5, 6

TEXTAREA {
    margin: 10px 0px 0px 1%;
    width: 70%;
    background-color: #ccffcc;
    font-family: Small Fonts;
    font-size: 12px;
}

though Opera 5, 6 sets the font- values
Opera fails to set 'width' value! why ?
actually i don't want to use TEXTAREA of fixed size; hence i m
not using width: 500px; or some value for 'cols'
what is the conceptual measure of 'cols' !?
other wierd problem is Opera though sets margin-left: 1%; but
fails at margin-top:10px;
Opera also not responds to wrap="off"
At last background-color value is also not showing.
when i validated the HTML, Homesite ( 5.5 ) said tag "textarea" doesn't have an attribute: "wrap" in currently active versions.
( doctype is set to HTML4.01 transitional )

MSIE, Netscape and Mozilla are kind to all of these TEXTAREA formatting.

__________________
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
PHP, SEO | anshul shrivastava | mediasworks.org | FB
 
Old September 1st, 2004, 02:17 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

About 'cols':

http://www.w3.org/TR/html401/interac...-cols-TEXTAREA

Snib

<><
 
Old September 1st, 2004, 03:55 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

This happens on an outdated version of a third-party browser? I wouldn't lose any sleep over it. I'd be concerned with what Opera 7.5 is capable of. If someone is smart enough to use a third-party browser they are also more likely to keep that browser up to date.

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old September 2nd, 2004, 07:57 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Perhaps you ned to set the position to absolute or relative, a lot of elements won't accept sizing without that in IE, no experience of Opera though.

--

Joe
 
Old September 3rd, 2004, 01:30 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default


<TEXTAREA style="position:absolute;"> solved width:70%; for Opera but annoyed other more important browsers.
 
Old September 4th, 2004, 12:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

anshul, posting snips of code isn't really helpful when it comes to issues like this. Post a link to the full page, or even better a test case, instead, please. The textarea isn't the only thing you have there, I guess.

When it comes to colors, fonts and so on, forms are special. The amount of styling that's possible differs from browser to browser, partly because in some cases the form controls are borrowed from the OS and not browser widgets.

Opera 7.5 allows limited styling of forms. I don't remember but I *think* Opera 5 allowed very little, if any.

(o<
//\ =^..^=





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
Tab function + <textarea></textarea> Adam H-W HTML Code Clinic 0 April 24th, 2007 10:36 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 05:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.