nathj 938
Recognized Expert Contributor
Hi,
I am working on new version of a site that requires an application form for membership, this is so that certain features of the site are only available to members. The site is aimed at Church Leaders and requires a lot of information from them. I have two questions relating to form layout and formatting.
1) How do you remove the border from a text area?
2) How do you format an input text field to display a date format of dd/mm/ccyy?
Being able to do this would improve the display of the form and the usability of the form.
Unfortunately all of the development is local and so I am not able to the show an example. Howver, the code of note at this point is:
HTML: -
<form action="application.php" method="post">
-
<div class="row">
-
<h4 class="eventListItem">Personal Details </h4>
-
</div>
-
-
<div class="row">
-
<span class="label">
-
Forename(s):
-
</span>
-
<span class="formw">
-
<input type="text" size="30" />
-
</span>
-
</div>
-
-
<div class="row">
-
<span class="label">
-
Surname:
-
</span>
-
<span class="formw">
-
<input type="text" size="30" />
-
</span>
-
</div>
-
-
<div class="row">
-
<span class="label">
-
Date of Birth:
-
</span>
-
<span class="formw">
-
<input type="text" size="30" />
-
</span>
-
</div>
-
-
<div class="row">
-
<span class="label">
-
Note:
-
</span>
-
<span class="formw">
-
<textarea cols="30" rows="8">
-
</textarea>
-
</span>
-
</div>
-
-
<div class="row">
-
<span class="label">
-
Gifting:
-
</span>
-
<span class="formw">
-
<textarea cols="30" rows="8">
-
</textarea>
-
</span>
-
</div>
-
-
<div class="row">
-
<span class="label">
-
Specialist subject:
-
</span>
-
<span class="formw">
-
<textarea cols="30" rows="8">
-
</textarea>
-
</span>
-
</div>
-
-
<div class="row">
-
<h4 class="eventListItem">Contact Details</h4>
-
</div>
-
-
</form>
-
CSS -
/* Form Design */
-
-
div.row
-
{
-
clear: both;
-
padding-top: 3px;
-
padding-bottom: 5px;
-
}
-
-
div.row span.label
-
{
-
padding-left: 10px;
-
padding-right: 0px;
-
float: left;
-
width: 100px;
-
text-align: right;
-
}
-
-
div.row span.formw
-
{
-
float: right;
-
width: 455px;
-
text-align: left;
-
}
-
Any help with this greatly appreciated.
Nathan
11 2432 nathj 938
Recognized Expert Contributor
I sorted the textarea border with the following in CSS: -
span.formw textarea
-
{
-
border:0px;
-
}
-
I still haven't figured out the date thing though, so if anyone knows please let me know.
Cheers
Nathan
Neither html nor css will format for you.
gits 5,390
Recognized Expert Moderator Expert
hi ...
you may format the value that has to be shown in the textbox with javascript ... do you get the data from the users input or is it a readonly-field that is filled with data from the server?
kind regards ...
nathj 938
Recognized Expert Contributor
hi ...
you may format the value that has to be shown in the textbox with javascript ... do you get the data from the users input or is it a readonly-field that is filled with data from the server?
kind regards ...
Hi,
It would be both potentially. Though I have decided that we don't need that piece of information at this stage. However, I will at a later date be using a dates from the admin side of the system so if you have any tips or tricks they would be greatly appreciated.
nathj
ps sorry for the delay in replying
gits 5,390
Recognized Expert Moderator Expert
hi ...
using javascript you may do the following for example: -
// orig date-string
-
var date = '2006-11-01';
-
-
// we split it with an regEx
-
var splitted_date = date.match(/(\d{4})-(\d{2})-(\d{2})/);
-
-
// now we combine the result to our needs
-
var new_date = splitted_date[3] + '.' + splitted_date[2] + '.' + splitted_date[1];
-
-
// create an alert to show new date-format: '01.11.2006'
-
alert(new_date);
-
kind regards ...
nathj 938
Recognized Expert Contributor
hi ...
using javascript you may do the following for example: -
// orig date-string
-
var date = '2006-11-01';
-
-
// we split it with an regEx
-
var splitted_date = date.match(/(\d{4})-(\d{2})-(\d{2})/);
-
-
// now we combine the result to our needs
-
var new_date = splitted_date[3] + '.' + splitted_date[2] + '.' + splitted_date[1];
-
-
// create an alert to show new date-format: '01.11.2006'
-
alert(new_date);
-
kind regards ...
Hi,
Thanks for the tip, that's a great way to reformat a date, I'm sure it will be very useful.
nathj
gits 5,390
Recognized Expert Moderator Expert
... ;) it's a simple way ;) ... come back when you have more questions about that - may be an other format (either input our output) ... and note: you may reformat the date at the serverside already ... that's up to you ...
kind regards ...
nathj 938
Recognized Expert Contributor
... ;) it's a simple way ;) ... come back when you have more questions about that - may be an other format (either input our output) ... and note: you may reformat the date at the serverside already ... that's up to you ...
kind regards ...
One further question I have is that on my form I have 3 textareas and when control passes to them the cursor is not flush to the top left corner. -
<div class="row">
-
<span class="label">
-
Note:
-
</span>
-
<span class="formw">
-
<textarea id="note" cols="44" rows="8" title="Extra details, hobbies, a personal biog">
-
</textarea>
-
</span>
-
</div>
-
-
div.row
-
{
-
clear : both;
-
padding-top : 3px;
-
padding-bottom : 5px;
-
}
-
-
div.row span.label
-
{
-
padding-left : 10px;
-
padding-right : 0px;
-
float : left;
-
width : 100px;
-
text-align : right;
-
}
-
div.row span.formw
-
{
-
float : right;
-
width : 455px;
-
text-align : left;
-
}
-
-
input, textarea, select
-
{
-
font-family : verdana, "trebuchet MS", helvetica, sans-serif;
-
padding : 0px;
-
font-size : 10px;
-
background-color : #ffffff;
-
border : inset 1px #eff5f3;
-
}
-
any ideas what could be causing this? The textare in question comes after three input type="text" fields, all wrapped nicely in a form.
gits 5,390
Recognized Expert Moderator Expert
;) simply remove all the spaces between start & end-tag of your textarea ... then it will work as you expect:
[HTML]<textarea id="note" cols="44" rows="8" title="Extra details, hobbies, a personal biog"></textarea>[/HTML]
kind regards ...
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: dave |
last post by:
Hello,
I've got a site project that i've got to design a layout without
resorting to tables. I want to use a table for tabular data not any
formatting layout, primarily emphasis needs to be on using css to place form
elements. My method thus far has been to use a table, for several reasons i
don't want to resort to this, i'd rather place the elements with css and get
a standards compliant site. I am uncertain as to how to accomplish this....
|
by: JK |
last post by:
Hi All,
I am working a form which is tabular layout (continuous form) which
will display multiple records at a time. Each line of record needs to
be reflected on the color code to show their current status. In
Access 2000, you can only write the code on each control in a general
way and the code will apply on to the current record. For instance,
if you have 5 customers in display, each one of them has difference
balance, if you like to...
|
by: Richard |
last post by:
Hi,
I have a form that take some time to load due to many comboboxes and at
least 8 subforms.
When I filter or sort the main form I get an error message and then Access
shuts down. They ask if I want to send the error report to Microsoft. Has
anybody seen this type of error message and what can I do to prevent it from
happening. Am I doing something illegal in my code? It used to work but I
have added conditional formatting to a subform...
|
by: Terry |
last post by:
I have cerated a Form, ExamsFrm, which is used to input details of
exams taken at several Centres. It dosplays details from StudentTbl
and has a SubForm which displays details from ExamsTble.
I have incorporated some VB6 code as well as some Conditional
Formatting. The code automatically updates CheckBoxes in the SubForm,
depending on exam results, and the Conditional Formatting changes
background colours, depending on CheckBox datum.
...
|
by: Eric |
last post by:
Couple of general webform questions. Most are about html code
created/managed by the editor. I work in GridLayout Mode.
1. Is there a reference or guideline for how the html should appear
when viewing a web form in HTML format, after you've added elements in
design view? Can I change they way they are formatted for viewing?
2. What's the easist way to clone a webform while inside a project. I
don't want to inherit from it, I just want...
| |
by: darrel |
last post by:
I have a form that has validators for each field. When I submit the form, if
the field is invalid, it shows an error next to the field. Works perfectly.
I also have a label at the top of the form that, if page is NOT valid, will
display. This message says 'there is a problem with the form, please fix the
fields below'.
What I'd like to do is have that message also state which of the fields were
invalid.
|
by: Perry van Kuppeveld |
last post by:
Hi,
I have a problem with formatting a table including text fields wich can
contain up to 255 chars.
I need a table with 3 columns:
- First column 50 % over the with a rowspan of the total number of rows.
- Second column 25 %, no rowspan
- Third column 25 %, no rowspan
|
by: Sanders Kaufman |
last post by:
I'm converting my table-based layouts to css-positioned divs - but the
ONLY reason I'm doing it is because it's *considered* a best practice.
I don't really see where anything goes hinky when tables are used - but
I'm doing it anyway because the HTML and CSS specs says to reserve
tables for tabular data.
So as I convert my login widgit to a css thing, I'm saying to myself -
hey, this form is most certainly "tabular data" - even if it...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |