Current location: Hot Scripts Forums » General Web Coding » CSS » Layout problem in IE and dreamweaver


Layout problem in IE and dreamweaver

Reply
  #1 (permalink)  
Old 05-29-07, 06:10 AM
kkillgasmm kkillgasmm is offline
Newbie Coder
 
Join Date: Feb 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Layout problem in IE and dreamweaver

You can see it here:
http://inspindesign.zidev.com/test/

It displays fine in FF, but in IE there are gaps on the right hand side [it also shows up in dreamweaver].

Here is the code for my stylesheet:

css Code:
  1. body {
  2. font:11px Arial, Helvetica, sans-serif;
  3. color:#FFFFFF;
  4. background-image:url(../Images/bg_square2.gif);
  5. text-align:center;
  6. margin:0;
  7. }
  8.  
  9. .title {
  10. font-size:14px;
  11. font-weight:900;
  12. }
  13.  
  14. #container {
  15. text-align:left;
  16. margin:0 auto;
  17. width:720px;
  18. background:#171717 url(../Images/banner.gif) no-repeat 50% 0%;
  19. padding-top:120px;
  20. border:solid #323232;
  21. border-width:3px 4px 4px 3px;
  22. }
  23.  
  24. div.nav {
  25. width:720px;
  26. }
  27.  
  28. #content {
  29. width:720px;
  30. margin:0;
  31. padding:4px 5px;
  32. }
  33.  
  34. #content_height {
  35. height:300px;
  36. }
  37.  
  38. #footer {
  39. width:720px;
  40. text-align:center;
  41. font-weight:bolder;
  42. font-stretch:extra-condensed;
  43. background-color:#323232;
  44. padding:2px 0 0 2px;
  45. }
  46.  
  47. a {
  48. color:#FFF;
  49. }
  50.  
  51. a:hover {
  52. color:#950C00;
  53. }
  54.  
  55. div.news {
  56. width:346px;
  57. height:150px;
  58. overflow:auto;
  59. border:solid #171717;
  60. border-width:1px 0px 0px 1px;
  61. margin-left:0px;
  62. display:block;
  63. clear:left;
  64. }
  65.  
  66. div.news_h, div.news_m {
  67. width:308px;
  68. background-color:#323232;
  69. padding-left:15px;
  70. border-bottom-color: #171717;
  71. border-bottom-style: solid;
  72. }
  73.  
  74. div.news_h {
  75. font-weight:900;
  76. font-size:12px;
  77. height:20px;
  78. background:url(../Images/deco_news.gif) 0 0 no-repeat;
  79. background-color:#323232;
  80. border-width:1px;
  81. padding-top:12px;
  82. }
  83.  
  84. div.news_m {
  85. background-image:url(../Images/bg_square.gif);
  86. border-width:2px;
  87. padding-top:5px;
  88. padding-bottom:4px;
  89. }
  90.  
  91. .info, .intro {
  92. width:346px;
  93. border:2px solid #323232;
  94. margin-bottom:4px;
  95. margin-right:4px;
  96. display:block;
  97. }
  98.  
  99. .info .title {
  100. background-color:#323232;
  101. display:block;
  102. margin-bottom:5px;
  103. }
  104.  
  105. .intro {
  106. background: url(../Images/logo.gif) no-repeat 100% 0;
  107. padding-top:42px;
  108. }
  109.  
  110. .info img {
  111. margin-left:3px;
  112. margin-bottom:3px;
  113. }
  114.  
  115. .info p, .intro p {
  116. text-align:right;
  117. padding:0;
  118. margin:3px;
  119. }
  120.  
  121. ul#nav {
  122. margin-left:0px;
  123. padding-left:0px;
  124. list-style-type:none;
  125. }
  126.  
  127. ul#nav li {
  128. display:inline;
  129. }
  130.  
  131. ul#nav a {
  132. display:block;
  133. text-decoration:none;
  134. background-color:#323232;
  135. width:100px;
  136. padding:5px 4px;
  137. border-bottom:1px solid #171717;
  138. font-weight:900;
  139. font-stretch:condensed;
  140. text-align:right;
  141. }
  142.  
  143. ul#nav a:hover {
  144. color:#FFF;
  145. }


Does anyone know what might be causing it?

Thanks.

Last edited by Nico; 05-29-07 at 06:13 AM.
Reply With Quote
  #2 (permalink)  
Old 05-29-07, 09:04 AM
atomique's Avatar
atomique atomique is offline
New Member
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
I'm on a run right now but from what I see it's the #content's fault.

Try setting the #content width to a lower value.

It may be the #content padding.

Good luck
Reply With Quote
  #3 (permalink)  
Old 05-29-07, 03:01 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
no? Maybe its because I have IE7, but I do not see a problem...
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
  #4 (permalink)  
Old 05-29-07, 06:06 PM
staticfire's Avatar
staticfire staticfire is offline
Wannabe Coder
 
Join Date: May 2007
Location: Stockton, England
Posts: 223
Thanks: 0
Thanked 1 Time in 1 Post
No problems here. But then again i use IE7 too. You could just wait and eventually everyone will use IE7 (or higher)

^No actually that's a stupid idea just try to fix the problem
__________________
Visit http://www.staticfire.co.uk
Reply With Quote
  #5 (permalink)  
Old 05-30-07, 02:50 AM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
I'm seeing a "gap" on the right in FF.

You have an "intro" div inside your "right1" div, but the widths are 50px difference. Your css has .right1 {width:350px;} and .intro {width:300px;}. Is that the problem?
Reply With Quote
  #6 (permalink)  
Old 06-03-07, 05:56 AM
kkillgasmm kkillgasmm is offline
Newbie Coder
 
Join Date: Feb 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Wow i totally forgot i posted this!

I managed to sort it out in the end, although i cant remember exactly what i did.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 02:03 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.