944,165 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Oct 17th, 2009
0
Re: Shadow / background
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).

css Syntax (Toggle Plain Text)
  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:

html Syntax (Toggle Plain Text)
  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
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
laura_ci is offline Offline
72 posts
since Jun 2009
Oct 19th, 2009
0
Re: Shadow / background
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.
Reputation Points: 120
Solved Threads: 134
Practically a Master Poster
Zero13 is offline Offline
620 posts
since Jan 2009
Oct 30th, 2009
0
Re: Shadow / background
Have tried this numerous times no with no success.

Dont know what I'm doing wrong.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
ytregnn is offline Offline
83 posts
since Jun 2006
Nov 2nd, 2009
0
Re: Shadow / background
Just wanted to say that I got it right now.. finally. Thanks for all the help.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
ytregnn is offline Offline
83 posts
since Jun 2006
Nov 3rd, 2009
0
Re: Shadow / background
That's good What was causing the problems? Might be worth knowing myself for future reference =D
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
laura_ci is offline Offline
72 posts
since Jun 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Help From Css Experince Developer
Next Thread in HTML and CSS Forum Timeline: How to declare the mime type for a html-email?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC