Need help with css.

Anything questions related to styling should go in here.
Post Reply
hys
Posts: 38
Joined: Fri Jan 20, 2012 11:11 am

Need help with css.

Post 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
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: Need help with css.

Post by bowersbros »

which page?
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

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
hys
Posts: 38
Joined: Fri Jan 20, 2012 11:11 am

Re: Need help with css.

Post 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;
	}
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: Need help with css.

Post 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>
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

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
hys
Posts: 38
Joined: Fri Jan 20, 2012 11:11 am

Re: Need help with css.

Post by hys »

i dont understand sorry :s can u help me write the code ?

Regards
Mike aka hys
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: Need help with css.

Post 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.
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

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
User avatar
DrMax
Posts: 21
Joined: Mon Feb 06, 2012 10:55 pm

Re: Need help with css.

Post by DrMax »

Are you asking about a Footer.?
Image
"They were good. I'm the best."
Post Reply