Page 1 of 1
Need help with css.
Posted: Sun Jan 22, 2012 3:23 pm
by hys
Hi there,
Ón my page dev.onslowdemolering.dk
How dó i get my text in a Line down and so ón with the boxes.
Regards
Mike aka hys
Re: Need help with css.
Posted: Sun Jan 22, 2012 3:33 pm
by bowersbros
which page?
Re: Need help with css.
Posted: Sun Jan 22, 2012 3:40 pm
by hys
Re: Need help with css.
Posted: Sun Jan 22, 2012 3:49 pm
by hys
I'm using this css.
body { padding:10px 10px; font:13px/150% Verdana, Tahoma, sans-serif; }
input, textarea {
padding: 9px;
border: solid 1px #E5E5E5;
outline: 0;
font: normal 13px/100% Verdana, Tahoma, sans-serif;
width: 200px;
background: #FFFFFF url('bg_form.png') left top repeat-x;
background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
-moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
-webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
}
textarea {
width: 400px;
max-width: 400px;
height: 150px;
line-height: 150%;
}
input:hover, textarea:hover,
input:focus, textarea:focus {
border-color: #C9C9C9;
-webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px;
}
.form label {
margin-left: 10px;
color: #999999;
}
.submit input {
width: auto;
padding: 9px 15px;
background: #617798;
border: 0;
font-size: 14px;
color: #FFFFFF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
Re: Need help with css.
Posted: Sun Jan 22, 2012 5:51 pm
by bowersbros
if you create the lable area to have a min-width and float right,
and the input bit to have float left, then it should work
THen you use <form>
<input type="text" name="hello" id="hello" /> <label for="hello">Hello Text</label>
</form>
Re: Need help with css.
Posted: Sun Jan 22, 2012 6:08 pm
by hys
i dont understand sorry :s can u help me write the code ?
Regards
Mike aka hys
Re: Need help with css.
Posted: Sun Jan 22, 2012 6:21 pm
by bowersbros
<!doctype html>
<html>
<head>
<title>Test</title>
<style type="text/css">
form {
width: 500px;
float: left;
}
input {
float: left;
}
div.right {
float: right;
width: 250px;
}
label {
text-align: right;
float: left;
width: 250px;
}
</style>
</head>
<body>
<form>
<div class="right">
<input type="text" name="field1" id="field1" />
</div>
<label for="field1">Field Input 1</label>
</form>
</body>
</html>
Thats the basic idea, modify that for your code.
Re: Need help with css.
Posted: Mon Feb 06, 2012 11:20 pm
by DrMax
Are you asking about a Footer.?