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
Need help with css.
-
- Posts: 534
- Joined: Thu May 05, 2011 8:19 pm
Re: Need help with css.
which page?
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ![Wink ;)](./images/smilies/icon_e_wink.gif)
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
![Wink ;)](./images/smilies/icon_e_wink.gif)
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
Re: Need help with css.
I'm using this css.
[syntax=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;
}
[/syntax]
-
- Posts: 534
- Joined: Thu May 05, 2011 8:19 pm
Re: Need help with css.
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![Smile :)](./images/smilies/icon_e_smile.gif)
THen you use <form>
<input type="text" name="hello" id="hello" /> <label for="hello">Hello Text</label>
</form>
and the input bit to have float left, then it should work
![Smile :)](./images/smilies/icon_e_smile.gif)
THen you use <form>
<input type="text" name="hello" id="hello" /> <label for="hello">Hello Text</label>
</form>
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ![Wink ;)](./images/smilies/icon_e_wink.gif)
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
![Wink ;)](./images/smilies/icon_e_wink.gif)
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
Re: Need help with css.
i dont understand sorry :s can u help me write the code ?
Regards
Mike aka hys
Regards
Mike aka hys
-
- Posts: 534
- Joined: Thu May 05, 2011 8:19 pm
Re: Need help with css.
[syntax=xhtml]<!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>[/syntax]
Thats the basic idea, modify that for your code.
<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>[/syntax]
Thats the basic idea, modify that for your code.
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ![Wink ;)](./images/smilies/icon_e_wink.gif)
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
![Wink ;)](./images/smilies/icon_e_wink.gif)
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9