You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
programming-examples/css/Div line-height float displ...

48 lines
1.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" subLang="en-US" xml:subLang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Div Line Height Float Display</title>
<style rel="stylesheet" type="text/css">
#search {
width: 600px;
float: left;
margin: 60px 0 0 120px;
display: inline;
font-family: Arial, verdana, sans-serif;
font-size: 16px;
color: pink;
line-height: 20px;
}
#search input {
height: 20px;
width: 400px;
float: left;
border-top: 1px solid red;
border-left: 1px solid red;
border-bottom: 0px;
border-right: 0px;
margin: 0 4px 0 12px;
padding: 2px 0 0 2;
background-color: green
}
#search span {
display: block;
float: left;
}
</style>
</head>
<body>
<div id="search">
<span>Happy Codings</span>
<input type="text" />
<a href="http://www.happycodings.com"><img src="http://www.happycodings.com/images/happy.gif" alt="Code Examples" width="200" height="100" /></a><br />
</div>
</body>
</html>