By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,397 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,397 IT Pros & Developers. It's quick & easy.

PHP div problem

P: 1
I am writing my first php code and have run into a spacing problem. I have displaying some div's that are in columns and are not equals heights. Everything was fine until near the end of the template. see http://www.s-v-g.co.uk/php_site/test.php I have been trying to move the bottom left grey div up to rest under the left red menu, but it will not move up past the yellow middle content div. Can you have a look at the sourse code to see where I have gone wrong.

Expand|Select|Wrap|Line Numbers
  1. #sidebar {
  2. width:150px;
  3. height:600px;
  4. float:left;
  5. margin-bottom:0px;
  6. border-left:1px solid #ccc;
  7. background-color:red;
  8.  
  9. }
  10.  
  11. #sidebar a {
  12. text-decoration:none;
  13. }
  14.  
  15. #sidebar li {
  16. list-style:none;
  17. }
  18.  
  19. #rightbar {
  20. width:160px;
  21. height:600px;
  22. float:right;
  23. margin-bottom:0px;
  24. border-left:1px solid #ccc;
  25. background-color:lightgreen;
  26. }
  27.  
  28. #leftlowerad {
  29. width:150px;
  30. height:300px;
  31. float:left;
  32. margin-bottom:0px;
  33. border-left:0px solid #ccc;
  34. background-color:lightblue;
  35.  
  36.  
  37. }
  38.  
  39. #rightlowerad {
  40. width:160px;
  41. height:300px;
  42. float:right;
  43. margin-bottom:0px;
  44. border-left:0px solid #ccc;
  45. background-color:lightblue;
  46. }
  47.  
  48. #footer {
  49. clear:both;
  50. width:1038px;
  51. height:135px;
  52. border-top:1px solid #ccc;
May 1 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.