Click to See Complete Forum and Search --> : quick css question
Wee Bubba
10-19-2006, 11:00 PM
ive put 3 separate radio buttons and an image inside a <div>. is there anyway with CSS i can get them to all line up to the left hand side one below each other?
at the moment they appear after each other left to right which looks bad. thanks
<style type="text/css">
#divID * {display:block;}
</style>
Wee Bubba
10-20-2006, 03:24 AM
you da man
Wee Bubba
10-20-2006, 03:29 AM
or you da girl
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Basic HTML</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#container * {display:block;}
</style>
</head>
<body>
<div id="container">
<img alt="an image" src="anImage.gif" height="100" width="100">
<input type="radio">
<input type="radio">
<input type="radio">
</div>
</body>
</html>