I want to change the width of certain input fields for the type 'text' in a
form.
I have tried this but it did not have any effect:
textarea {
width: 100px;
}
The defined width in base.css is 400px.
So how do I do it
Become to me too.
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/3/11 Johann Spies
> I want to change the width of certain input fields for the type 'text' in
> a form.
>
> I have tried this but it did not have any effect:
>
>
>
Sorry, Happens to me too
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
Fijate que no tengas en layout.html esta linea o algo por el estilo alguna
vez la vi.
jQuery(document).ready(function(){jQuery('textarea').css('width','600px').css('height','400px')});
también fijate en base.css
por esto:
input[type=text], input[type=password], textarea, select {
2011/3/11 co
On 11 March 2011 15:32, Martín Mulone wrote:
> Fijate que no tengas en layout.html esta linea o algo por el estilo alguna
> vez la vi.
>
>
> jQuery(document).ready(function(){jQuery('textarea').css('width','600px').css('height','400px')});
>
>
You are a star! Thanks. Now I also learning how to
Use the !important[0]
textarea {
width: 100px *!important; *
}
[0]
http://www.webcredible.co.uk/user-friendly-resources/web-dev/css-important.shtml
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
2011/3/11 Johann Spies
>
> textarea {
>
On Mar 11, 2011, at 6:24 AM, Bruno Rocha wrote:
> Use the !important[0]
>
>
>
> textarea {
> width: 100px !important;
> }
>
>
> [0]
> http://www.webcredible.co.uk/user-friendly-resources/web-dev/css-important.shtml
>
Generally speaking, you should be able to do this
I'm bumping up against this on a form as well, and puzzled why using a
custom/clean css sheet loaded last in the page header for precedence, with
unique divs/classes aren't working on the textareas... not for size,
background-color, text color, nothing. I can target the row, the parent
divs, e
Don't know if this applies in your situation, but one problem I've encountered
is I always assumed that simply adding a response.files. append (page.css) to
the top of a view before extending the default layout.html template would put
the page.css file last in the hierarchy. If you look at the c
Lol, yeah I had problems too and ended up hard-coding my css link into the
layout right before the head closed. But something else is going on with
those inputs to prevent styling them...
On Aug 3, 2013 4:51 AM, "Jim Gregory" wrote:
> Don't know if this applies in your situation, but one problem
Is this in the basic scaffolding app, or are you using custom CSS/JS? If
that latter, it's hard to say without seeing any code. In the scaffolding
app, the textarea width is set in bootstrap-responsive.min.css and should
be overrideable.
Anthony
On Saturday, August 3, 2013 12:59:31 AM UTC-4, d
Yes basic scaffolding, it's been left intact. Agreed it *should* be
overrideable. I tested on another page where I was not using jquery and
same, could not change the color of a textarea or text input box.
After much experimentation (and vaguely remembered reading somewhere but
couldn't tell
@davedigearati
Could you post css rules that you are trying to apply as well as the html
skeleton of the form and give more details about your SO, browser(s) and
web2py version?
I wasn't able to replicate the issue on windows8, IE10, CH27, web2py last
trunk.
Il giorno sabato 3 agosto 2013 16:
Actually, it is also set in the web2py_bootstrap.css line 105, which is
interesting, but not nearly as interesting as the comment in the css file!
;)
/* because web2py handles this via js */
textarea { width:90%}
soo, who knows the javascript well enough to say what is happening
here, and
I think that the comment is wrong. Actually, the textarea width is not
handled by web2py via js. Modern browsers, except IE, have a textarea
resizable and so its width is calculated by browser itself. In this case in
order to set a fixed width on all textareas you should set in your custom
css
Can you use the browser developer tools to inspect the element and see
which CSS rule is active and where it comes from? Also, try disabling
Javascript and see if that affects the display. If all else fails, pack a
basic app that demonstrates the problem and attach it here.
Anthony
On Sunday,
This has now been changed:
https://code.google.com/p/web2py/source/detail?r=fb06ea622be62acbcd9218457d3b3863b93787d7.
Custom CSS and JS files are now included *after* the standard scaffolding
files, so you can easily override default CSS rules.
Anthony
On Saturday, August 3, 2013 4:51:01 AM U
17 matches
Mail list logo