I have searched all over but cant seem to fix my problem.
Somehow I am missing the solution to this problem.
I am new to Muse, but quite familiar with html and css.
I made this contact form in a text editor, it works perfect in DW and jsfiddle. Moment I insert it into Muse it crushes it.
I have tried external style sheet, internal with Object insert, inline with Object insert. All give me the same result (image below).
Someone even suggested putting a external style sheet in the assets folder, I did and even tried the css folder and normal folder, no luck.
Is this possible to fix or does Muse not allow this type of thing?
Thanx in advance for all helpful replies.
Samm
This is what the code looks like:
label {
float: left;
width: 6em;
text-align: right;
margin-right: 10px;
}
.submit {
margin-left: 6em;
}
fieldset {
width: 500px;
background-color: #FFDE00;
border: none;
}
p {
font-family: arial;
}
<fieldset>
<form action="mailto:xxx#hotmail.com"
method="post" enctype="text/plain">
<!-----Form heading----->
<p> Tell us who you are </p>
<!-----Inout customer details----->
<p>
<label class="username" for="first Name">
First Name: </label>
<input type="text" name="firstname" id="first Name"
size="35" maxlength="40" /> </p>
<p>
<label class="username" for="Email">
Email: </label>
<input type="text" name="email" id="Email"
size="35" maxlength="40" /> </p>
<!-----Dropdown make----->
<p> Please select your make: </p>
<p>
<select name="make">
<option value="3M">3M</option>
<option value="3M">Acer</option>
<option value="3M">Ask</option>
<option value="3M">BenQ</option>
<option value="3M">Epson</option>
<option value="3M">Hitachi</option>
<option value="3M">InFocus</option>
<option value="3M">LG</option>
<option value="3M">Mitsubishi</option>
<option value="3M">NEC</option>
<option value="3M">Optoma</option>
<option value="3M">Panasonic</option>
<option value="3M">Philips</option>
<option value="3M">Samsung</option>
<option value="3M">Sanyo</option>
<option value="3M">Sharp</option>
<option value="3M">Sony</option>
<option value="3M">Toshiba</option>
<option value="3M">Viewsonic</option>
<option value="3M">Vivitek</option>
<option value="3M">Other</option>
</select> </p>
<!-----Submit picture of sticker----->
<p> Use the Choose File button to submit a picture of your model sticker if unsure what number to use: </p>
<p>
<input type="file" size="30" /> </p>
<!-----Text Area----->
<p> For any other comments or if you selected Other please specify here: </p>
<p>
<textarea name="comments" rows="5" cols="40">
Enter more comments here...
</textarea> </p>
<!-----Submit & Reset buttons----->
<p class="submit">
<input type="submit" value="Submit" />
<input type="reset" value="Clear the form" /> </p>
</form>
</fieldset>
This is what the start and end result looks like:
Not Nice
You'll probably find that DW uses alot of browser initial CSS styling, where as Muse probably resets everything. So you have to state things from scratch, such as border, margins, paddings etc.
For example, each of your paragraph elements need to have some margin-bottom applied. This will immediately make it look much more like the first example.
label {
float: left;
width: 6em;
text-align: right;
margin-right: 10px;
}
.submit {
margin-left: 6em;
}
fieldset {
width: 500px;
background-color: #FFDE00;
border: none;
}
p {
font-family: arial;
margin-bottom:1em;
}
<fieldset>
<form action="mailto:xxx#hotmail.com"
method="post" enctype="text/plain">
<!-----Form heading----->
<p> Tell us who you are </p>
<!-----Inout customer details----->
<p>
<label class="username" for="first Name">
First Name: </label>
<input type="text" name="firstname" id="first Name"
size="35" maxlength="40" /> </p>
<p>
<label class="username" for="Email">
Email: </label>
<input type="text" name="email" id="Email"
size="35" maxlength="40" /> </p>
<!-----Dropdown make----->
<p> Please select your make: </p>
<p>
<select name="make">
<option value="3M">3M</option>
<option value="3M">Acer</option>
<option value="3M">Ask</option>
<option value="3M">BenQ</option>
<option value="3M">Epson</option>
<option value="3M">Hitachi</option>
<option value="3M">InFocus</option>
<option value="3M">LG</option>
<option value="3M">Mitsubishi</option>
<option value="3M">NEC</option>
<option value="3M">Optoma</option>
<option value="3M">Panasonic</option>
<option value="3M">Philips</option>
<option value="3M">Samsung</option>
<option value="3M">Sanyo</option>
<option value="3M">Sharp</option>
<option value="3M">Sony</option>
<option value="3M">Toshiba</option>
<option value="3M">Viewsonic</option>
<option value="3M">Vivitek</option>
<option value="3M">Other</option>
</select> </p>
<!-----Submit picture of sticker----->
<p> Use the Choose File button to submit a picture of your model sticker if unsure what number to use: </p>
<p>
<input type="file" size="30" /> </p>
<!-----Text Area----->
<p> For any other comments or if you selected Other please specify here: </p>
<p>
<textarea name="comments" rows="5" cols="40">
Enter more comments here...
</textarea> </p>
<!-----Submit & Reset buttons----->
<p class="submit">
<input type="submit" value="Submit" />
<input type="reset" value="Clear the form" /> </p>
</form>
</fieldset>
Related
i'm a french begginer (so excuse the fact that some part of it are in french, if it's a problem i can translate, also i know my code can be more clean so if you have any idea dont hesitate!).
I'm coding a form for a project and i would like to align all my text like this :
but my page look like this for the moment :
fieldset {
width: 900px;
}
em {
color: red;
}
#demande {
height: 200px;
width: 800px;
background-color: #EAEAEA;
}
placeholder {
text-align: top;
}
strong {
color: #C1D58D;
}
input {
margin-left: 100px;
}
<fieldset>
<legend><b>INFORMATIONS PERSONNELLES</b></legend>
<form method="get">
<label for "Nom">Nom<em>*</em> :</label>
<input type="text" name="Nom" id="text" required />
</form>
</br>
</br>
<form method="get">
<label for "Prénom">Prénom<em>*</em> :</label>
<input type="text" name="Prénom" id="text" required />
</form>
</br>
</br>
<form method="get">
<form method="get">
<label><strong> Votre sexe</strong><em>*</em> :</label> </br>
<input type="radio" name="Sexe" id="Fille" /> <label for="Fille">Fille</label>
<input type="radio" name="Sexe" id="Garçon" /> <label for="Garçon">Garçon</label>
<input type="radio" name="Sexe" id="Autre" /> <label for="Autre">Autre</label>
</form>
</br>
</br>
<label> Année<em>*</em> :</label>
<input type="number" name="Année" id="Année" placeholder="Exemple : 1987" />
</form>
</br>
</br>
<form method="get">
<label for "pays"> Pays<em>*</em> :</label>
<select name="pays" id="pays" required>
<optgroup label="Europe">
<option value="france">France</option>
<option value="espagne">Espagne</option>
<option value="royaume-uni">Royaume-Uni</option>
<option value="italie">Italie</option>
</optgroup>
<optgroup label="Amérique">
<option value="canada">Canada</option>
<option value="etats-unis">États-Unis</option>
</optgroup>
<optgroup label="Asie">
<option value="chine">Chine</option>
<option value="japon">Japon</option>
</optgroup>
</select>
</br>
</br>
</form>
<h3>Les champs marqués par <em>*</em> sont obligatoires</h3>
</fieldset>
</br>
<form method="get">
<input type="submit" name="Envoyer" value="Annuler" />
<input type="submit" name="Envoyer" value="Envoyer" />
</form>
```
i know i could creat an id for every then edit it with css but i was wondering if there was a best way to do it (a more efficient way)
One easy solution is the use of CSS-Grid. I removed the form tags so that all elements are direct children of the fieldset.
As such I can declared fieldset { display: grid; } to apply the grid.
Next I apply a 2 column layout where the first column takes as much space as needed and the second column the remaining space with: fieldset { grid-template-columns: min-content auto;.
To space the elements apart, you can use the grid-gap-property.
fieldset {
max-width: 900px;
display: grid;
grid-template-columns: min-content auto;
gap: 10px;
}
em {
color: red;
}
fieldset h3 {
grid-column: span 2;
}
<fieldset>
<legend><b>INFORMATIONS PERSONNELLES</b></legend>
<label for "Nom">Nom<em>*</em> :</label>
<input type="text" name="Nom" id="text" required />
<label for "Prénom">Prénom<em>*</em> :</label>
<input type="text" name="Prénom" id="text" required />
<label><strong> Votre sexe</strong><em>*</em> :</label>
<div class="radio-group">
<input type="radio" name="Sexe" id="Fille" /> <label for="Fille">Fille</label>
<input type="radio" name="Sexe" id="Garçon" /> <label for="Garçon">Garçon</label>
<input type="radio" name="Sexe" id="Autre" /> <label for="Autre">Autre</label>
</div>
<label> Année<em>*</em> :</label>
<input type="number" name="Année" id="Année" placeholder="Exemple : 1987" />
<label for "pays"> Pays<em>*</em> :</label>
<select name="pays" id="pays" required>
<optgroup label="Europe">
<option value="france">France</option>
<option value="espagne">Espagne</option>
<option value="royaume-uni">Royaume-Uni</option>
<option value="italie">Italie</option>
</optgroup>
<optgroup label="Amérique">
<option value="canada">Canada</option>
<option value="etats-unis">États-Unis</option>
</optgroup>
<optgroup label="Asie">
<option value="chine">Chine</option>
<option value="japon">Japon</option>
</optgroup>
</select>
<h3>Les champs marqués par <em>*</em> sont obligatoires</h3>
</fieldset>
<form method="get">
<input type="submit" name="Envoyer" value="Annuler" />
<input type="submit" name="Envoyer" value="Envoyer" />
</form>
I want to design a HTML 3 column form layout as shown in this image.
this is my sample html code for above template.I need to apply proper css to get the same look and feel.
<form method="post" name="Form1" action="" onSubmit="return validateForm();" onchange="showForm();" id="form3118" >
<div class="webform-component first-name" >
<label for="field0" >
First Name*
</label>
<input id="field0" name="firstName" type="text" value="" />
</p>
</div>
<div class="webform-component last-name" >
<label for="field1">
Last Name*
</label>
<input id="field1" name="lastName" type="text" value="" />
</p>
</div>
<div class="webform-component school" >
<label for="field2">
School*
</label>
<input id="field2" name="schoolName" type="text" value="" />
</div>
<div class="webform-component role" >
<label for="field3">
Role*
</label>
<select id="field3" name="role">
<option value="" selected="selected" >
Please select
</option>
<option value="Principal" >
Principal
</option>
<option value="Assistant/Vice Principal" >
Assistant/Vice Principal
</option>
<option value="Curriculum Coordinator" >
Curriculum Coordinator
</option>
<option value="eLearning Coordinator" >
eLearning Coordinator
</option>
<option value="Head of Department" >
Head of Department
</option>
<option value="Teacher" >
Teacher
</option>
<option value="Other school staff member" >
Other school staff member
</option>
<option value="None of the above" >
None of the above
</option>
</select>
</div>
<div class="webform-component email-address" >
<label for="field5" >
Email Address*
</label>
<input id="field5" name="emailAddress" type="text" value="" />
</div>
<div class="webform-component last-name" >
<label for="field15">
Mobile/Phone number*
</label>
<input id="field15" name="mobile" type="text" value="" />
</p>
</div>
<div class="webform-component--resource-format" >
<label for="field13" >
In what format do you prescribe resources?
</label>
<select id="field13" name="resourceFormat" >
<option value="" selected="selected" >
Please select...
</option>
<option value="Digital only" >
Digital only
</option>
<option value="Digital with some print" >
Digital with some print
</option>
<option value="Equal digital and print" >
Equal digital and print
</option>
<option value="Print with some digital" >
Print with some digital
</option>
<option value="Print only" >
Print only
</option>
</select>
</div>
<input type="submit" value="Submit" />
</form>
I can design this layout by using CSS flex/grid or bootstrap very easily.but i want to design this with pure CSS because this should be work in every browser and no browser compatibility issue occured.
While I think you'd be better off investigating flex or grid for this (both of which are pure CSS and are well supported now) I appreciate you have said you cannot use them.
One thing that is (even more) widely supported is inline-block.
The given code is simply structured, with the section having 7 parts, of which the first six are to have the same width as each other and the 7th having twice their width.
Using percentages we can divide up the width of the body (or container if one is to be used) to hold 3 such inline divs plus their left and right margins.
This snippet starts the process, but there are things that you will have to decide on further - like what the heights and paddings should be, putting more placeholders in the inputs, what exactly the drop down options should look like, formatting for the submit button, what you want it to do on narrow screens etc.
(Note: view the snippet in full screen - then try reducing the width. There comes a point at which you will have to be more careful about allowing for border and padding widths.)
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #522464;
}
[class^="webform-component"] {
display: inline-block;
margin: 1.5%;
}
.webform-component {
width: 30%;
}
.webform-component--resource-format {
width: 60%;
}
label {
color: white;
background-color: #522464;
font-variant: small-caps;
display: block;
padding-left: 1em;
}
input, select {
border: 1px white solid;
border-radius: 3vmin;
background: #522464;
width: 100%;
height: 3em;
color: rgba(255, 255, 255, 0.4);
}
<form method="post" name="Form1" action="" onSubmit="return validateForm();" onchange="showForm();" id="form3118" >
<div class="webform-component first-name" >
<label for="field0" >
First Name*
</label>
<input id="field0" name="firstName" type="text" value="" placeholder="First name"/>
</p>
</div>
<div class="webform-component last-name" >
<label for="field1">
Last Name*
</label>
<input id="field1" name="lastName" type="text" value="" />
</p>
</div>
<div class="webform-component school" >
<label for="field2">
School*
</label>
<input id="field2" name="schoolName" type="text" value="" />
</div>
<div class="webform-component role" >
<label for="field3">
Role*
</label>
<select id="field3" name="role">
<option value="" selected="selected" >
Please select
</option>
<option value="Principal" >
Principal
</option>
<option value="Assistant/Vice Principal" >
Assistant/Vice Principal
</option>
<option value="Curriculum Coordinator" >
Curriculum Coordinator
</option>
<option value="eLearning Coordinator" >
eLearning Coordinator
</option>
<option value="Head of Department" >
Head of Department
</option>
<option value="Teacher" >
Teacher
</option>
<option value="Other school staff member" >
Other school staff member
</option>
<option value="None of the above" >
None of the above
</option>
</select>
</div>
<div class="webform-component email-address" >
<label for="field5" >
Email Address*
</label>
<input id="field5" name="emailAddress" type="text" value="" />
</div>
<div class="webform-component last-name" >
<label for="field15">
Mobile/Phone number*
</label>
<input id="field15" name="mobile" type="text" value="" />
</p>
</div>
<div class="webform-component--resource-format" >
<label for="field13" >
In what format do you prescribe resources?
</label>
<select id="field13" name="resourceFormat" >
<option value="" selected="selected" >
Please select...
</option>
<option value="Digital only" >
Digital only
</option>
<option value="Digital with some print" >
Digital with some print
</option>
<option value="Equal digital and print" >
Equal digital and print
</option>
<option value="Print with some digital" >
Print with some digital
</option>
<option value="Print only" >
Print only
</option>
</select>
</div>
<input type="submit" value="Submit" />
</form>
I am making a Guestbook page right now and am having trouble aligning the input fields so it looks nice. Right now it looks very ugly and not organized. I just want everything (the inputs) to line up nicely. Thank you!
html:
<form>
Name <input type="text" name="guest" id="guest" input size="45" maxlength="40" required/> <br />
E-mail address <input type="text" name="email" id="email" input size="60" maxlength="60" required/> <br />
City <input type="text" name="city" id="city" input size="35" maxlength="30" required/> <br />
<select id="province" name="province" size="15" required>
<option value="Alberta">Alberta</option>
<option value="British Columbia">British Columbia</option>
<option value="Manitoba">Manitoba</option>
<option value="New Brunswick">New Brunswick</option>
<option value="Newfoundland and Labrador">Newfoundland and Labrador</option>
<option value="Nova Scotia">Nova Scotia</option>
<option value="Ontario" selected="selected">Ontario</option>
<option value="Prince Edward Island">Prince Edward Island</option>
<option value="Quebec">Quebec</option>
<option value="Saskatchewan">Saskatchewan</option>
<option value="Northwest Territories">Northwest Territories</option>
<option value="Nunavut">Nunavut</option>
<option value="Yukon">Yukon</option>
</select> <br />
Web Page URL <input type="text" name="web_url" id="web_url" input size="60" maxlength="60" /> <br />
Web Page Title <input type="text" name="web_title" id="web_title" input size="25" /> <br />
<textarea rows="4" cols="50" name="comments" id="comments" >
Enter comments here...</textarea>
</form>
CSS:
body {
max-width: 1000px;
font-size: 14px;
line-height: 1.4em;
font-family: Helvetica, Verdana, sans-serif;
}
Wrap labels with <label> tag:
<label>Name </label><input type="text" name="guest" id="guest" input size="45" maxlength="40" required/> <br />
Then add css:
label{width: 200px; float: left;}
Full code snippet
For horizontal align:
Put all your inputs in a <div> tag and add this css to it:
div {
float: left;
}
For vertical align:
Put all your inputs as a <div> and make each input a list:
<div>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
Use this CSS:
div li {
float: left;
}
The secret is DIVs.
Use an outer div to surround each grouping, and inner divs for each inline group (left = title, right = input field).
Note that the inner divs are floated left -- this places them side by side. But it also removes them from the HTML "flow" and the .outer divs will have zero height. So, we add overflow:______ (auto or hidden) to counter this. Try removing the overflow:hidden and watch everything go to pieces.
jsFiddle for experimenting
body {
max-width: 1000px;
font-size: 14px;
line-height: 1.4em;
font-family: Helvetica, Verdana, sans-serif;
}
.outer{overflow:hidden;margin-bottom:5px;}
.in_left {float:left;width:100px;padding-right:10px;text-align:right;}
.in_right{float:left;width:250px;}
.in_right input{width:250px;}
.outer:last-of-type{margin-bottom:25px;}
<form>
<div class="outer">
<div class="in_left">Name</div>
<div class="in_right"><input type="text" name="guest" id="guest" size="45" maxlength="40" required/></div>
</div><!-- .outer -->
<div class="outer">
<div class="in_left">E-mail address </div>
<div class="in_right"><input type="text" name="email" id="email" size="60" maxlength="60" required/> </div>
</div><!-- .outer -->
<div class="outer">
<div class="in_left">City</div>
<div class="in_right"><input type="text" name="city" id="city" size="35" maxlength="30" required/></div>
</div><!-- .outer -->
<select id="province" name="province" size="15" required>
<option value="Alberta">Alberta</option>
<option value="British Columbia">British Columbia</option>
<option value="Manitoba">Manitoba</option>
<option value="New Brunswick">New Brunswick</option>
<option value="Newfoundland and Labrador">Newfoundland and Labrador</option>
<option value="Nova Scotia">Nova Scotia</option>
<option value="Ontario" selected="selected">Ontario</option>
<option value="Prince Edward Island">Prince Edward Island</option>
<option value="Quebec">Quebec</option>
<option value="Saskatchewan">Saskatchewan</option>
<option value="Northwest Territories">Northwest Territories</option>
<option value="Nunavut">Nunavut</option>
<option value="Yukon">Yukon</option>
</select> <br />
Web Page URL <input type="text" name="web_url" id="web_url" size="60" maxlength="60" /> <br />
Web Page Title <input type="text" name="web_title" id="web_title" size="25" /> <br />
<textarea rows="4" cols="50" name="comments" id="comments" >
Enter comments here...</textarea>
</form>
I have a basic form, that I'm trying to get two inputs per line. Unless the 'province' select tag is floated right, it breaks the spacing. If it's 5th, like in the code I posted, there becomes a blank spot between Postal Code and Fax. The tab order even remains correct (phone -> fax -> email -> web).
Where if it's floated right (6th in this screenshot) everything spaces fine.
My form:
<form id="form" action="submit.php" method="post">
<fieldset>
<p>
<label for="first_name">* First Name:</label>
<input type="text" name="first_name" id="first_name" required />
</p>
<p>
<label for="last_name">* Last Name:</label>
<input type="text" name="last_name" id="last_name" required />
</p>
<p>
<label for="address">Company Address:</label>
<input type="text" name="address" id="address" />
</p>
<p>
<label for="city">City:</label>
<input type="text" name="city" id="city" />
</p>
<p>
<label for="province">Province:</label>
<select name="province" id="province">
<option value="">Select location</option>
<option value="AB">Alberta</option>
<option value="BC">British Columbia</option>
<option value="MB">Manitoba</option>
<option value="NB">New Brunswick</option>
<option value="NL">Newfoundland and Labrador</option>
<option value="NS">Nova Scotia</option>
<option value="NT">Northwest Territories</option>
<option value="NT">Nunavut</option>
<option value="ON">Ontario</option>
<option value="PE">Prince Edward Island</option>
<option value="QC">Quebec</option>
<option value="SK">Saskatchewan</option>
<option value="YT">Yukon</option>
<option value="US">(US State)</option>
</select>
</p>
<p>
<label for="postal_code">Postal Code:</label>
<input type="text" name="postal_code" id="postal_code" />
</p>
<p>
<label for="phone">* Phone:</label>
<input type="tel" name="phone" id="phone" required />
</p>
<p>
<label for="fax">Fax:</label>
<input type="tel" name="fax" id="fax" />
</p>
<p>
<label for="email">E-Mail Address:</label>
<input type="email" name="email" id="email" />
</p>
<p>
<label for="web_address">Website Address:</label>
<input type="text" name="web_address" id="web_address" />
</p>
</fieldset>
</form>
And my CSS:
fieldset p {
display: inline-block;
width: 49%;
}
fieldset p:nth-of-type(even){
float:right;
}
And if I remove the 'province' select tag everything spaces fine. With the province list, it always breaks the second 'float: right' after the select tag. Is there something wrong with my select tag? Or is it something with my CSS?
JSFiddles:
First screenshot: http://jsfiddle.net/sB2W7/
Second screenshot: http://jsfiddle.net/4CfQ5/
I would use display: inline-block instead of float
DEMO http://jsfiddle.net/LLJ6Z/2/
p {
display: inline-block;
width: 45%
}
label {
display: inline-block;
width: 130px;
display
}
input, select {
display: inline-block;
width: 100px;
}
I'm trying to get rid of the space between the period dates and the guets field, tried everything with border, padding, also tried floating the fields but didn't work.
here is the code
<html>
<head>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<form id="frmContact" action="/confirmacao.html" method="post">
<fieldset>
<legend>Consulta:</legend>
<p>
<label class="field" for="usr">Nome: </label>
<input id="usr" type="text" name="nome" title="Digite seu nome" class="textbox"/>
</p>
<p>
<label class="field" for="usr">Period: </label>
<input type="text" id="dataEntrada" name="dataEntrada" class="textbox-date"/>
a:
<input type="text" id="dataSaida" name="dataSaida" class="textbox-date"/>
</p>
<p>
<label class="field" for="hospedes">Guests: </label>
<select class="textbox-option" id="hospedes" name="hospedes">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</p>
<p>
<label class="field" for="usr">E-mail: </label>
<input id="email" class="textbox" name="email" title="Seu e-mail para que possamos entrar em contato"/>
</p>
<p>
<label class="field" for="usr">Detalhes: </label>
<textarea id="mensagem" name="msg" rows="6" cols="30" title="Detalhes adicionais"></textarea>
</p>
<p>
<input type="submit" value=" Enviar "/>
</p>
</fieldset>
</form>
</body>
and this is the css
label.field {
text-align: right;
width: 100px;
float: left;
}
.textbox, .textbox-option{
float: left;
}
.textbox {
width: 250px;
}
.textbox-date{
width: 75px;
}
fieldset p {
clear: both;
padding: 5px;
}
In Firefox Web Developer Tools, I see 16px of margin-bottom:
This is being added by the browser's default stylesheet:
Scenarios like this is why CSS Resets are used. Alternatively, to fix this specific problem, set the margin of your your p elements in your stylesheet.
I guess it because when paragraph has some text in paragraph and then it found new paragraph they will have space between them. Anyway I found one solution that not best solution is modify code below by remove text in paragraph to lable of text.
CSS - add new class for label, add float left to .textbox-date
<style type="text/css">
label.field {
text-align: right;
width: 100px;
float: left;
}
label.newfield
float: left;
}
.textbox, .textbox-option{
float: left;
}
.textbox {
width: 250px;
}
.textbox-date{
width: 75px;
float: left;
}
fieldset p {
clear: both;
padding: 5px;
}
</style>
html - add new lable
<label class="newfield" for="dataSaida"> a: </label>
for
<input type="text" id="dataSaida" name="dataSaida" class="textbox-date"/>
like this
<html>
<head>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<form id="frmContact" action="/confirmacao.html" method="post">
<fieldset>
<legend>Consulta:</legend>
<p>
<label class="field" for="usr">Nome: </label>
<input id="usr" type="text" name="nome" title="Digite seu nome" class="textbox"/>
</p>
<p>
<label class="field" for="dataEntrada">Period: </label>
<input type="text" id="dataEntrada" name="dataEntrada" class="textbox-date"/>
<label class="newfield" for="dataSaida"> a: </label>
<input type="text" id="dataSaida" name="dataSaida" class="textbox-date"/>
</p>
<p>
<label class="field" for="hospedes">Guests: </label>
<select class="textbox-option" id="hospedes" name="hospedes">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</p>
<p>
<label class="field" for="usr">E-mail: </label>
<input id="email" class="textbox" name="email" title="Seu e-mail para que possamos entrar em contato"/>
</p>
<p>
<label class="field" for="usr">Detalhes: </label>
<textarea id="mensagem" name="msg" rows="6" cols="30" title="Detalhes adicionais"></textarea>
</p>
<p>
<input type="submit" value=" Enviar "/>
</p>
</fieldset>
</form>
</body>