473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem in layout of website

274 100+
hi everyone,
I am struck in layout of my site. Im using 1024 fixed width layout. I have a site layout designed in psd files. Bisically I have to stick with that design tightly and I am asked not to chnage even a pixel. As I am not too good so I though why not ask you. I am using dreameweaver for my ease in design. The problem is "expanding box problem and cruel appearance in IE and site looks better in FFox".
I am not usinf any image bigger than the size of DIV(I am using Div for layout purposes). I do see error saying expanding box problem in one division. But I assure you none of the images is bigger than size of DIV at all. Still I get this error. I don't have any borders etc. Pelase help me it is very urgent to fix.
here is my code and css file.:
Css file:
Expand|Select|Wrap|Line Numbers
  1. body{
  2.     font-size: 12px; 
  3.     text-align:center;/* for ie5.+*/
  4.     background:#97999c;
  5.     margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
  6.     height: 738px;
  7.     border:0;
  8. }
  9.  
  10. .outer{
  11. background-color:#1c2e5d;
  12. width:1024px;
  13. margin:0px;
  14. border:0px;
  15. padding:0px;
  16. }
  17.  
  18. .outer_left{
  19. background-color:#97999c;
  20. background-image:url(../images/outer_left_bgr.jpg); /* image size 30*5 */
  21. border:0px;
  22. background-repeat:repeat-y;
  23. width: 32px;
  24. float: left;
  25. height: 770px;
  26. margin:0;
  27. padding:0;
  28.  
  29. }
  30. .outer_right{
  31. background-color:#97999c;
  32. background-image:url(../images/outer_right_bgr.jpg); /* image size 30*5 */
  33. background-repeat:repeat-y;
  34. width: 32px;
  35. float:left;
  36. height: 770px;
  37. margin:0;
  38. padding:0;
  39. border:0px;
  40.  
  41. }
  42. .outer_middle{
  43. background-color:#1c2e5d;
  44. border:0px;
  45. width: 960px;
  46. float: left;
  47. height: 738px;
  48. margin:0;
  49. padding:0;
  50. }
  51.  
  52. .header{
  53. background-image:url(../images/header.jpg);
  54. background-color:#1c2e5d;
  55. background-position:center;
  56. background-repeat:no-repeat;
  57. height:107px;
  58. width:960px;
  59. margin:0;
  60. padding:0;
  61. border:0px;
  62. }
  63.  
  64. .nav{
  65. background-color:#FFFFFF;
  66. background-image:url(../images/nav_bar.jpg);
  67. background-repeat:no-repeat;
  68. background-position:center;
  69. height:37px;
  70. width:960px;
  71. font: Tahoma, Arial, Helvetica, sans-serif;
  72. margin:0;
  73. padding-left:0px;
  74. text-align:left;
  75. }
  76.  
  77. .main{
  78.  
  79. background-color:#1c2e5d;
  80. width:960px;
  81. height:500px;
  82. margin:0;
  83. padding:0;
  84.  
  85. }
  86.  
  87. .main_left{
  88.  
  89. background-color:#1c2e5d;
  90. width:580px;
  91. float:left;
  92. height: 510px;
  93. margin:0;
  94. padding:0;
  95. }
  96.  
  97. .main_right{
  98.  
  99. background-color:#1c2e5d;
  100. width:380px;
  101. float:left;
  102. height: 500px;
  103. margin:0;
  104. padding:0;
  105. }
  106.  
  107. .main_right_top{
  108.  
  109. background-color:#1c2e5d;
  110. height: 200px;
  111. margin:0;
  112. padding:0;
  113. }
  114. .main_right_bottom{
  115.  
  116. background-color:#1c2e5d;
  117. height: 300px;
  118. margin:0;
  119. padding:0;
  120. }
  121.  
  122.  
  123.  
  124.  
  125. .footer{
  126. background-image:url(../images/footer.jpg);
  127. margin:0;
  128. padding:0;
  129. width:960px;
  130. height:94px;
  131. }
  132.  
  133.  
  134. .clearfloat {
  135.  /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
  136.     clear:both;
  137.     height:0;
  138.     font-size: 1px;
  139.     line-height: 0px;
  140. }
code fo rone the pages:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <script language="javascript">
  4. services_on = new Image ( 99, 37 );
  5. services_off = new Image ( 99, 37 );
  6. services_on.src = "../public_html/images/navbar/services_on.gif";
  7. services_off.src = "../public_html/images/navbar/services_off.gif";
  8.  
  9. faq_on = new Image ( 80, 37 );
  10. faq_off = new Image ( 80, 37 );
  11. faq_on.src = "../public_html/images/navbar/faq_on.gif";
  12. faq_off.src = "../public_html/images/navbar/faq_off.gif";
  13.  
  14.  
  15. </script>
  16. <head>
  17.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  18.     <title>Trend Auto Group</title>
  19.     <link href="../public_html/css/main.css" rel="stylesheet" media="screen, projection" type="text/css" />
  20.     <link href="../public_html/css/print.css" rel="stylesheet" media="print" type="text/css" />
  21. <!--[if IE ]>
  22. <link href="iecss.css" rel="stylesheet"  media="screen,projection" type="text/css" />
  23. <![endif]-->
  24. </head>
  25.  
  26. <body id="home">
  27. <div class="outer">
  28.  
  29.           <div class="outer_left"></div><!-- End of div[outer_left] -->
  30.   <div class="outer_middle">
  31.                <div class="header"> </div> <!-- End of div[header] -->
  32.                    <div class="nav" >
  33.                    <!-- TemplateBeginEditable name="Nav_bar_editable" -->
  34.                            <!--    <img src="../public_html/images/navbar/nav_bar_left_space.gif"  /> -->
  35.                                     <a href="services.html" 
  36.                                            onmouseout="button_off('services');"
  37.                                         onmouseover="button_on('services');"> <img src="../public_html/images/navbar/services_off.gif" 
  38.                                         style="border: none;" width="99" height="37" name="Services"/>
  39.                                     </a>
  40.  
  41.  
  42.                  <!-- TemplateEndEditable -->
  43.                   </div>
  44. <!-- End of div[nav] -->
  45.                         <div class="main">
  46.                             <div class="main_left"><!-- TemplateBeginEditable name="left_editable" -->
  47.                               <p>Content for  class "main_left" Goes Here</p>
  48.                               <!-- TemplateEndEditable -->
  49. <p>&nbsp;</p></div><!-- End of div[main_left] -->
  50.                                    <div class="main_right">
  51.                                              <div class="main_right_top"><!-- TemplateBeginEditable name="Right_top_edirable" -->
  52.                                                <p>Content for  class "main_right_top" Goes Here</p>
  53.                                              <!-- TemplateEndEditable --></div> 
  54.                                   <!-- End of div[main_right_top] -->
  55.                                              <div class="main_right_bottom"><!-- TemplateBeginEditable name="right_bottom_editable" -->
  56.                                                <p>Content for  class "main_right_bottom" Goes Here</p>
  57.                                              <!-- TemplateEndEditable --></div> 
  58.                                        <!-- End of div[main_right_bottom] -->
  59.                                 </div> <!-- End of div[main_right] -->
  60.  
  61.                         </div> 
  62.               <!-- End of div[main] -->
  63.                <br><br>
  64.           <div class="footer" ></div>
  65.   </div>
  66.  </div> <!-- End of div[outer] -->
  67.  
  68.  
  69.   <div class="outer_right"></div>  
  70.  
  71. </div>
  72.  
  73.  
  74. </body></html>
I get error in outer_middle DIV. As a result it splits the border of outer_right to the next line. If I leave extra pixels around each DIV by increasing the sizes that would look ugly.
Nov 17 '08 #1
5 1865
Death Slaught
1,137 1GB
I would start with the obvious. You have your script tags outside of your head tags (which is one of the two places you can place script elements, and the other being within the body tags).

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Nov 17 '08 #2
creative1
274 100+
but that is not a problem, at all should I stick to table format?
Nov 17 '08 #3
creative1
274 100+
Ahh.......
I chnaged layout in table and that worked. But why DIV did this with me.
Nov 18 '08 #4
Death Slaught
1,137 1GB
See what happens after you validate your page.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Nov 19 '08 #5
creative1
274 100+
Thanks for the link.
Nov 24 '08 #6

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

Similar topics

4
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
10
by: Ed | last post by:
The page I'm working on is at http://www.coldpizzasoftware.com/temp/layout.html I trying to get the yellow sidebar to go in the white area to the right of the green content area and between the...
2
by: Ralph Soons | last post by:
Hi all, I am looking for a correct way to setup my website layout. For instance: I would like to have a selection mechanism (like tree or something) on the left and the page data on the right. ...
4
by: Mustufa Baig | last post by:
Hello, I developed ASP.NET website and as long as I view .aspx pages from Win2000 (I.E. 6.0) they appear fine but if I view these pages from Win98 (I.E. 6.0) the text on the page appears in big...
2
by: Steve Richter | last post by:
I am spending too much time thinking of nesting tables within tables to get the form layout that I want. a simple example: Sub heading: property text: entry field property text: entry...
5
by: Mark | last post by:
I am struggling with a CSS2 layout problem, I am using Visual Web Developer 2005 Express. My website needs to be constrained within the visible viewport. This means that scrollable content will...
5
by: sembiance | last post by:
Hi everyone! So I have this webpage that renders fine in both Quirky and Strict modes under Firefox. Website HTML: http://www.telparia.com/layout_cross_platform_test.html Website CSS:...
2
by: PrinceDeeDer | last post by:
im trying to edit my blog layout to fit my website layout so i kind of just mixed my homepage HTML with the blog HTML and it has a few bugs in it. i was wondering if anybody could help me fix it or...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.