Re: [Maypole] width of edit fields

From: Danijel Milicevic (Danijel.Milicevic at rawmode.org)
Date: Thu Oct 28 2004 - 15:42:56 BST


Hello Dave,

> The field boxes on the edit page are fairly narrow and don't make much
> sense with long text fields such as my sequences. I've tried to change
> them, but I'm a css ignoramus and can't make it work. I've found
> explicit width settings for text inputs and textareas:
>
> input[type=text] {
> height: 16px;
> width: 136px;
>
> and
>
> textarea {
> width: 136px;
>
> These settings seem to be shared between the search, addnew and edit
> boxes. I think what I want is for the boxes to be as wide as the space
> available, so I tried commenting out the width lines. This caused the
> boxes to get a little bit wider, but not full width (and not the same
> width as each other?).

You can specify the addnew, search or edit explicitly using their id's.
In CSS you address a id with #. So if the division is <div id="addnew">,
then you can address it via: #addnew textarea { ... }

This way you can specify each box. When you comment out the width, then
the width will fall back to a default width.

> I tried an explicit large value and that forced
> the boxes to become wide, but it isn't what I want to do.

I'd suggest using relative width, for example 100% (which will but 100%
width of the addnew box, which is just 45% of the window-width itself).

If you need further help you can email me directly of course.

Regards,
Danijel

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT