Image showing up twice as much

Thread Solved

Join Date: Feb 2008
Posts: 14
Reputation: Loopster is an unknown quantity at this point 
Solved Threads: 0
Loopster's Avatar
Loopster Loopster is offline Offline
Newbie Poster

Image showing up twice as much

 
0
  #1
Mar 25th, 2008
Hello,
I have put together code for a website using a working directory where all looked fine. Then ported the code over to the production URL - with some changes that I checked over - and now I'm getting a duplication of an image img04.gif that is coded in the common-style.css


The website is www.thestuffsafari.com The 25 pixel image shows up 12 times on the homepage, and should only be 6. The production URL is a Linux server, the working server was windows. But I really only made changes to directories, which I checked over very carefully...

Anyone see why the problem?

Here is the code:

HTML and CSS Syntax (Toggle Plain Text)
  1. /* Released 20080305 */
  2.  
  3. * {
  4. margin: 0;
  5. padding: 0;
  6. }
  7.  
  8.  
  9. body {
  10. margin: 20px 0;
  11. background: #FFFFFF;
  12. font: normal 13px "Trebuchet MS", Arial, Helvetica, sans-serif;
  13. color: #666666;
  14. }
  15.  
  16. a {
  17. color: #29A3E1;
  18. }
  19.  
  20. a:hover {
  21. text-decoration: none;
  22. color: #1A7196;
  23. }
  24.  
  25. /* Boxed */
  26.  
  27. .title {
  28. padding-left: 30px;
  29. background: url(/images/img04.gif) no-repeat left center;
  30. }
  31.  
  32. .boxed1 .title {
  33. height: 24px;
  34. padding-top: 5px;
  35. font-size: 100%;
  36. }
  37.  
  38. .boxed1 .content {
  39. background: url(/images/img04.gif) no-repeat left bottom;
  40. padding: 20px;
  41. }
  42.  
  43. .boxed2 .title {
  44. font-size: 182%;
  45. }
  46.  
  47. .boxed2 .content {
  48. background: url(/images/img04.gif) no-repeat left bottom;
  49. padding: 20px;
  50. }
  51.  
  52. .boxed3 .title {
  53. font-size: 129%;
  54. }
  55.  
  56. .boxed3 .content {
  57. background: url(/images/img04.gif) no-repeat left bottom;
  58. padding: 20px;
  59. }
  60.  
  61. .boxed3 ol, .boxed3 ul {
  62. margin-left: 1em;
  63. }
  64.  
  65.  
  66. /* Header */
  67.  
  68. #header {
  69. width: 760px;
  70. height: 161px;
  71. margin: 0 auto;
  72. background: url(/images/ele03.jpg) no-repeat 100% 50px;
  73. border-bottom: 5px solid #29A4E1;
  74. }
  75.  
  76. /* Logo */
  77.  
  78. #logo {
  79. float: left;
  80. width: 239px;
  81. height: 160px;
  82. background: #9A8825 url(/images/img01.jpg) no-repeat;
  83. border-right: 1px solid #FFFFFF;
  84. text-align: center;
  85. }
  86.  
  87. #logo h1 {
  88. padding-top: 5px;
  89. text-transform: lowercase;
  90. letter-spacing: -2px;
  91. font-size: 36px;
  92. font-weight: normal;
  93. }
  94.  
  95. #logo h2 {
  96. text-transform: uppercase;
  97. letter-spacing: 2px;
  98. font-size: 9px;
  99. }
  100.  
  101. #logo a {
  102. text-decoration: none;
  103. color: #FFFFFF;
  104. }
  105.  
  106.  
  107. /* Top */
  108. #top {
  109. float: left;
  110. width: 520px;
  111. height: 49px;
  112. background: #B09733 url(/images/ele02.jpg) no-repeat;
  113. border-bottom: 1px solid #FFFFFF;
  114. }
  115.  
  116. #top h1 {
  117. padding-top: 11px;
  118. text-transform: lowercase;
  119. letter-spacing: -2px;
  120. font-size: 28px;
  121. font-weight: normal;
  122. }
  123.  
  124.  
  125. /* Menu */
  126.  
  127. #menu {
  128. clear: both;
  129. float: none;
  130. width: 760px;
  131. height: 32px;
  132. color: #666666;
  133. margin: 0 auto;
  134. border-bottom: 1px solid #FFFFFF;
  135. }
  136.  
  137.  
  138. #menu a:hover {
  139. border-top-color: #1A7196;
  140. }
  141.  
  142. #menu .active a {
  143. }
  144.  
  145. #menu a b {
  146. text-decoration: underline;
  147. }
  148.  
  149. /* Page */
  150.  
  151. #page {
  152. width: 760px;
  153. margin: 0 auto;
  154. border-top: 1px solid #FFFFFF;
  155. border-bottom: 1px solid #FFFFFF;
  156. }
  157.  
  158. /* Content */
  159.  
  160. #content {
  161. float: right;
  162. width: 480px;
  163. padding: 20px;
  164. border-bottom: 1px solid #FFFFFF;
  165. }
  166.  
  167. #content p, #content ol, #content ul {
  168. line-height: 152%;
  169. }
  170.  
  171.  
  172. /* HIDE MENU AND ITEMS FOR PRINTING */
  173.  
  174.  
  175. @media print {
  176. .printhide { display:none; }
  177. .printhelp { width:600px; }
  178. }
  179. @media screen{
  180. .printonly { display:none; }
  181. }
  182.  
  183.  
  184.  
  185.  
  186. /* Sidebar */
  187.  
  188. #sidebar {
  189. float: left;
  190. width: 200px;
  191. padding: 20px;
  192. }
  193.  
  194. /* News */
  195.  
  196. #news {
  197. padding-bottom: 0;
  198. }
  199.  
  200. #news ul {
  201. list-style-type: square;
  202. }
  203.  
  204. #news li {
  205. margin-bottom: 15px;
  206. }
  207.  
  208. #news h3 {
  209. margin-bottom: 10px;
  210. text-transform: uppercase;
  211. font-size: 77%;
  212. }
  213.  
  214. #news h3 a {
  215. display: block;
  216. }
  217.  
  218. #news p {
  219. font-size: 85%;
  220. }
  221.  
  222. /* Welcome */
  223.  
  224. #welcome {
  225. margin-bottom: 20px;
  226. }
  227.  
  228. /* Samples */
  229.  
  230. #sample1, #sample2 {
  231. float: left;
  232. width: 230px;
  233. }
  234.  
  235. #sample1 {
  236. }
  237.  
  238. #sample2 {
  239. margin-left: 20px;
  240. }
  241.  
  242. /* Footer */
  243.  
  244. #footer {
  245. width: 760px;
  246. margin: 0 auto;
  247. padding: 20px 0;
  248. border-top: 5px solid #29A4E1;
  249. }
  250.  
  251. #footer p {
  252. text-align: center;
  253. font-size: 77%;
  254. }
Last edited by peter_budo; Mar 25th, 2008 at 4:05 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 514
Reputation: techniner is an unknown quantity at this point 
Solved Threads: 19
techniner techniner is offline Offline
Posting Pro

Re: Image showing up twice as much

 
0
  #2
Mar 25th, 2008
Simple.

You keep calling:

class="title"


That will display the image as stated in your css.

background: url(/images/img04.gif)
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 14
Reputation: Loopster is an unknown quantity at this point 
Solved Threads: 0
Loopster's Avatar
Loopster Loopster is offline Offline
Newbie Poster

Re: Image showing up twice as much

 
0
  #3
Mar 25th, 2008
Techniner,
Thanks for the look and reply. I'll work at it with your suggestion in mind. The odd thing is, none of this showed up when under my worksite, it only showed up 2X when moved over, and I didn't change any of the code in that CLASS area. I was wondering if the common-style.css "No Repeat" had something to do with it...
Loopster
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 14
Reputation: Loopster is an unknown quantity at this point 
Solved Threads: 0
Loopster's Avatar
Loopster Loopster is offline Offline
Newbie Poster

Re: Image showing up twice as much

 
0
  #4
Mar 25th, 2008
Techniner,
The problem is solved. I guess it just didn't make sense how the problem didn't show up before now. But, based on your suggestion, hunted down the prob and mods were made and it's good to go.
Thanks again!
Carl
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
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