Fluid Width Layout Problem

Reply

Join Date: Dec 2008
Posts: 2
Reputation: TagMaker is an unknown quantity at this point 
Solved Threads: 0
TagMaker TagMaker is offline Offline
Newbie Poster

Fluid Width Layout Problem

 
0
  #1
Dec 9th, 2008
Hello All,
I am having some problems with creating a 1 column fluid width web page which has a header section and left and right side bars. I can not get it to center nor to display consistently on different browsers. In fact its a complete mess. Please take a look at my attached CSS and HTML file and help point out to me my mistakes. Thank you in advance for your help.
Last edited by TagMaker; Dec 9th, 2008 at 6:20 pm.
Attached Files
File Type: txt HomePage.txt (2.5 KB, 4 views)
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 45
Reputation: colweb is an unknown quantity at this point 
Solved Threads: 1
colweb colweb is offline Offline
Light Poster

Re: Fluid Width Layout Problem

 
0
  #2
Dec 11th, 2008
I'm not sure what you want to create, but maybe this will help:

HTML and CSS Syntax (Toggle Plain Text)
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2.  
  3. <html>
  4. <head>
  5. <title>My Trials</title>
  6. <style type="text/css">
  7.  
  8. * {margin:0; padding:0;}
  9. #Header {height:160px; width:100%; background:#df7401;}
  10. #Container {width:100%; background:#ffffff;}
  11. #LeftCol, #RightCol {width:5%; background:#000000; height:600px;}
  12. #LeftCol {float:left;}
  13. #RightCol {float:right;}
  14. #Main {height:600px;}
  15. #Footer {clear:both; height:40px; background:#000000; width:100%;}
  16. #Nav {padding-top:15px; margin-left:20%;}
  17. #MiddleCol {float:left; width:90%;}
  18.  
  19. #Nav li {list-style-type: none; display:inline;}
  20. #Nav a, #Nav a:visited {border-top:solid white 1px; border-bottom:solid white 1px;
  21. color:White; font-family:arial, verdana, sans-serif;
  22. font-size:50%; text-align:center; text-decoration:none;
  23. padding:1% ; background:gray;}
  24. #Nav a:hover {background:black; color:white;}
  25.  
  26. </style>
  27. </head>
  28.  
  29. <body>
  30. <div id="Container">
  31.  
  32. <div id="LeftCol">
  33.  
  34. </div> <!-- end LeftCol -->
  35.  
  36. <div id="RightCol">
  37. </div> <!-- end RightCol -->
  38.  
  39. <div id="MiddleCol">
  40.  
  41. <div id="Header">
  42. <img src="MyImageFile.jpg" alt=""/>
  43.  
  44. <div id="Nav">
  45. <ul>
  46. <li><a href="index.html">Home</a></li>
  47. <li><a href="Stuff.html">Stuff</a></li>
  48. <li><a href="MoreStuff.html">More Stuffs</a></li>
  49. <li><a href="About.html">About Us</a></li>
  50. <li><a href="Contact.html">Contact Us</a></li>
  51.  
  52. </ul>
  53. </div> <!-- end Nav -->
  54. </div> <!-- end Header -->
  55.  
  56. </div> <!-- end MiddleCol -->
  57.  
  58. <div id="Footer">
  59. </div> <!-- end Footer -->
  60.  
  61. </div> <!-- end Container -->
  62. </body>
  63. </html>

At least it looks the same in Firefox 3 and IE 6 under WinXP.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 2
Reputation: TagMaker is an unknown quantity at this point 
Solved Threads: 0
TagMaker TagMaker is offline Offline
Newbie Poster

Re: Fluid Width Layout Problem

 
0
  #3
Dec 12th, 2008
Thank you so much, that is very close to what I wanted. I will definitely check to see what you did to make it work.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC