Hi guys,
Hopfully this will be a really easy question for you...
basically I have some css code:
Ive just made them colour boxes to help me out see them.Code:#container { background-color: #CCFFCC; margin: 0px; padding: 0px; width: 1000px; height: 2000px; } #header { background-color: #009900; height: 150px; width: 950px; } #logo { background-color: #FF6600; height: 150px; width: 150px; } #search { background-color: #0033FF; height: 150px; width: 150px; float: right; }
Then in an index.php file I have the following:
The result is this:Code:<div id="container"> <div id="header"> <div id="logo"></div> <div id="search"></div> </div> </div>
w3.zeeboodee.com (cant post urls)
The thing is that how do I edit the code so that the blue box goes inside the green header box? At the moment it is sitting outside it to the bottom right, but I want it to be inside to the right.
Any ideas?
Thanks very much
You have some errors in your HTML, you never end <HEAD> (should be after you link to the CSS) and you do not have a <body> tag. I don't think these cause your problem, I'm just letting you know.
Try addingin the logo CSS. That might resolve your problem.Code:float: left;
Thanks Jordan - the float left worked.
No problem, glad it helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks