CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Iron Speed
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 December 1st, 2003, 06:26 AM
mg8's Avatar
mg8 mg8 is offline
SAWEET
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: New York
Posts: 128 mg8 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 29 m 22 sec
Reputation Power: 5
Send a message via AIM to mg8 Send a message via MSN to mg8
Exclamation CSS background image problem!

Site

I have a table that consists of one row and three colums (the navigation, main, and login/poll).

The main one, I assigned the class of "table"
The navigation one, I assigned the class of "table1"
The login/poll, I assigned the class of "table2"

Here is the CSS code:

.table { background-attachment: fixed; background-image: url(/images/MainBack.gif); background-position: 100% 100%; background-repeat: no-repeat;}
.table2 { background-attachment: fixed; background-image: url(/images/NavigationBack.gif); background-position: 100% 100%; background-repeat: no-repeat;}
.table3 { background-attachment: fixed; background-image: url(/images/LoginBack1.gif); background-position: 100% 100%; background-repeat: no-repeat;}

How can I get the background images to ALWAYS fit the exact size of the table cell no matter the resoultion or change in the cell?

Thanks

Reply With Quote
  #2  
Old December 1st, 2003, 11:02 AM
asdruble asdruble is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sao Paulo - Brasil
Posts: 23 asdruble User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to asdruble
hey... i dunno how you can change the bg properties to fit wherever it is, however, u can set the blue background (the one in the middle) in table (three rows and three cells).
You should cut the image into 9 pieces and put them into the respective cells.
The corner cells would have a fixed pixels size (same as corner images).
The left, right, top and bottom cells would not have a defined size (so it would be "adaptable" to any resolution).
The center cell wouldnt have any size either, and thats where the content would be...
You could see an example <a href="www.asdy.blogger.com.br" target="_blank">HERE</a>.

Hope this was of any use!

Reply With Quote
  #3  
Old December 1st, 2003, 11:15 AM
mg8's Avatar
mg8 mg8 is offline
SAWEET
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: New York
Posts: 128 mg8 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 29 m 22 sec
Reputation Power: 5
Send a message via AIM to mg8 Send a message via MSN to mg8
Wouldn't that require changing every page to have the table in it?

That is a ton of work

Thanks though

Does anyone know a faster way to achieve this?

Reply With Quote
  #4  
Old December 2nd, 2003, 08:44 PM
Dirty D Dirty D is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 5 Dirty D User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i don't think you can mess with the size of background images on the fly. i could be wrong but ive never found the style (or script) to do it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS background image problem!


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 4 hosted by Hostway