CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 2nd, 2004, 01:59 AM
Real World Real World is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: UK
Posts: 113 Real World User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 46 m 40 sec
Reputation Power: 6
Send a message via ICQ to Real World Send a message via AIM to Real World Send a message via MSN to Real World Send a message via Yahoo to Real World
Complex backgrounds with css

I would like to do the following on a web page but not sure how. Tried a few things but it didnt display what I was hoping for...

I want essentially a 3 layered background image.
The main background is one image that is tiled in all directions
The second image is tiled in x but attached to the top of the screen
The third image is the same as the second image but attached to the bottom of the screen.

Over the top of this I want to use html tables and have the background displayed through the empty table cells. Is this possible? Any help appreciated
__________________
www.maidenfans.com

Reply With Quote
  #2  
Old April 2nd, 2004, 03:13 AM
Dusk's Avatar
Dusk Dusk is offline
Twilight Thinking
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Oxford UK
Posts: 656 Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 m 3 sec
Reputation Power: 32
Is the following any help:

Code:
<style type="text/css">
<!--

body {
margin: 0px;
background: url(images/bg1.gif) repeat;
}

#top {
position: absolute;
top: 0px;
left: 0px;
height: 40px;
width: 100%;
background: url(images/bg2.gif) repeat-x;
}

#bottom {
position: absolute;
bottom: 0px;
left: 0px;
height: 40px;
width: 100%;
background: url(images/bg3.gif) repeat-x;
}

#main {
position: absolute;
top: 40px;
left: 40px;
right: 40px;
bottom: 40px;
border: 1px solid #000000;
}

-->
</style>



and:


<body>

<div id="top">
TOP
</div>

<div id="bottom">
BOTTOM
</div>

<div id="main">
MAIN
</div>

</body>
__________________
Cheers,
Dusk

My portfolio

Reply With Quote
  #3  
Old April 2nd, 2004, 05:12 AM
Real World Real World is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: UK
Posts: 113 Real World User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 46 m 40 sec
Reputation Power: 6
Send a message via ICQ to Real World Send a message via AIM to Real World Send a message via MSN to Real World Send a message via Yahoo to Real World
Apart from the #main div id thats exactly what I had already but the background wasnt showing through the table... in fact I'm not sure the background was showing at all to be honest but I will try that and see what happens

Reply With Quote
  #4  
Old April 2nd, 2004, 12:22 PM
Real World Real World is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: UK
Posts: 113 Real World User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 46 m 40 sec
Reputation Power: 6
Send a message via ICQ to Real World Send a message via AIM to Real World Send a message via MSN to Real World Send a message via Yahoo to Real World
hey it worked Thanks very much

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Complex backgrounds with css


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT