July 29, 200917 yr Hi I need help aligning my site probably a simple answer but im still learning As you can see in the attachment below the grey box on the right it is too big and I can work out how to make it inline without it going down to the bottom Code <!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" xml:lang="en" lang="en"> <head> <title></title> <link rel="stylesheet" href="main.css" type="text/css" /> </head> <body> <div id="header" > Hello </div> <div id="nav"> <ul> <li>hi</li> <li><a href="#">hi2</a></li> </ul> </div> <div id="content1"> hi </div> <div id="content2"> ies, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from th </div> <div id="content3"> poo </div> </body> </html> body { background-color: #000000; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; } #wrapper { width:960px; height:0auto; } #header { height: 100px; width:960px; background-color:white; -moz-border-radius-topleft: 15px; -webkit-border-top-left-radius: 15px; -moz-border-radius-topright: 15px; -webkit-border-top-right-radius: 15px; padding:8px; 8x; 8px;0px; } #nav { height: 40px; width:960px; background-color:white; padding:8px; 8px; 4px; 8px; } #nav li { display:inline; padding:3px; } #nav a { padding:20px 20px;} #nav a:link, #navlist a:visited { color: #000; background-color: none; text-decoration: none; } #nav a:hover, #active { color: #fff ; background-color: #A0A0A0 ; text-decoration: none; } #content1 { width:960px; height:20px; background-color: #A0A0A0; padding:8px; 8px; 4px; 8px; } #content2 { width:480px; height:0 auto; background-color: white; padding:8px; 0px; 0px; 8px; float:left; } #content3 { width:479px; height:0 auto; background-color: white; padding:8px; 0px; 0px; 0px; float:right; }
July 29, 200917 yr is it going to be a navigation menu ? use li tags instead e.g. html <div id="nav"> <ul> <li>hi</li> <li>hi</li> <li>Hi</li> </ul> </div> css #nav { width:100%; background-image:url(images/image_name.jpg); background-repeat:repeat-x; height:100px; } #nav ul { width:900px; } #nav li a{ color:#000000; display:inline; background-image:url(images/image_name.jpg); background-repeat:no-repeat; } that should display all 4 "hi's" in one line, all you would add is the images and the styling
August 10, 200917 yr OK, first up I'm not entirely sure what grey box it is you're having trouble with. Could you please explain? Which piece of text is inside it? I can see that you've got some white sticking out but I'm not sure if that's your problem area. Tell me that, and I should be able to help you.
Create an account or sign in to comment