Shadow / background

Thread Solved

Join Date: Jun 2009
Posts: 46
Reputation: laura_ci is an unknown quantity at this point 
Solved Threads: 5
laura_ci laura_ci is offline Offline
Light Poster
 
0
  #11
Oct 17th, 2009
Aww... the joy of Dreamweaver generated code. I'm not suprised your having issues with all those tables!

Hmm... well, we'll start with the easier of you problems. Obviously I don't know the dimensions of the main.jpg, but I suspect that the reason why it is only showing half way down the page is because it is set to only repeat on x - only repeating horizontally. Change this to just repeat, so that it repeats both horizontally (x) and vertically (y).

  1. page {
  2. background: url(main.jpg) top left repeat;
  3. text-align:center;
  4. }

With the shadow problem, it would help if I knew what sort of content was in those table cells, because currently it doesn't really mean anything...

I don't know how far along you are with this, but if you must use dreamweaver/tables, try this:

  1. <html>
  2. <head>
  3. <title>Test</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <style type="text/css">
  6. #page {
  7. background: url(main.jpg) top left repeat;
  8. }
  9. #wrap {
  10. width:966px;
  11. background: url (shadow.png) center top repeat-y;
  12. margin:0 auto;
  13. }
  14. #site {
  15. margin:0 10px;
  16. }
  17. </style>
  18. </head>
  19. <body id="page">
  20. <div id="wrap">
  21. <table width="946" id="site" cellpadding="0" cellspacing="4">
  22. <tbody>
  23. <tr>
  24. <td>Stuff goes in here.</td>
  25. </tr>
  26. </tbody>
  27. </table>
  28. </div>
  29. </body>
  30. </html>

Obviously I don't know the demands of your layout, so I've simplified it A LOT, so hopefully you can start to see what's going on and what it should be doing.

Hope this helps you out.

Laura
Looking for a Web & Graphic Designer?
creativeindividual.co.uk
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 79
Reputation: Zero13 is an unknown quantity at this point 
Solved Threads: 11
Zero13 Zero13 is offline Offline
Junior Poster in Training
 
0
  #12
Oct 19th, 2009
Remove the white space between url and bracket in CSS syntax.
Here it is..
#wrap {
background: url (shadow.png) center top repeat-y;
replace with
#wrap {
background: url(shadow.png) center top repeat-y;
This is the only error I found it. And you need to validate your HTML.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 67
Reputation: ytregnn is an unknown quantity at this point 
Solved Threads: 0
ytregnn ytregnn is offline Offline
Junior Poster in Training
 
0
  #13
28 Days Ago
Have tried this numerous times no with no success.

Dont know what I'm doing wrong.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 67
Reputation: ytregnn is an unknown quantity at this point 
Solved Threads: 0
ytregnn ytregnn is offline Offline
Junior Poster in Training
 
0
  #14
24 Days Ago
Just wanted to say that I got it right now.. finally. Thanks for all the help.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 46
Reputation: laura_ci is an unknown quantity at this point 
Solved Threads: 5
laura_ci laura_ci is offline Offline
Light Poster
 
0
  #15
24 Days Ago
That's good What was causing the problems? Might be worth knowing myself for future reference =D
Looking for a Web & Graphic Designer?
creativeindividual.co.uk
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC