WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-07-2008, 03:24 PM
WebProWorld New Member
 

Join Date: Apr 2008
Posts: 2
judithm RepRank 0
Default White spaces between sliced background images

Hi! I am using 3 background images for a website. The one in the middle is enlarging in height as the content is long or not. There is a white space appearing in Safari and Firefox but not in IE between my images. Here is the link : Charlotte en fête

And here is my CSS :

#ColRightWrapper {
margin: 0px;
padding: 0px;
height: 100%;
}

#ColRight {
background: url(images/fond_ColRight_02.gif) repeat top;
width: 517px;
margin: 0px;
padding: 0;
top: 0px;
}
#ColRightBottom {
background: url(images/fond_ColRight_03.gif) no-repeat;
width: 517px;
margin: 0px;
padding: 0px;
text-align: center;
height: 48px;
#ColRightTop {
background: url(images/fond_ColRight_01.gif) no-repeat bottom;
height: 45px;
width: 517px;
margin: 0px;
padding: 0px;
}

#ColRightTop, #ColRight, #ColRightBottom {
margin: 0px;
padding: 0px;
}


Thanks for helping

Judithm
Reply With Quote
  #2 (permalink)  
Old 04-07-2008, 09:32 PM
sands's Avatar
WebProWorld Veteran
 

Join Date: Sep 2005
Location: Kerala, India
Posts: 397
sands RepRank 1
Default Re: White spaces between sliced background images

Just add:
Code:
float:left;
to both #ColRight and #ColRightBottom.
__________________
My Nook | My Biz
Reply With Quote
  #3 (permalink)  
Old 04-07-2008, 09:52 PM
WebProWorld New Member
 

Join Date: Apr 2008
Posts: 2
judithm RepRank 0
Default Re: White spaces between sliced background images

That simple Thanks Sands.

Can you explain to me why it fixes my problem.

Judithm
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 10:10 PM
sands's Avatar
WebProWorld Veteran
 

Join Date: Sep 2005
Location: Kerala, India
Posts: 397
sands RepRank 1
Default Re: White spaces between sliced background images

Quote:
Originally Posted by judithm View Post
That simple Thanks Sands.

Can you explain to me why it fixes my problem.

Judithm
Just the way browsers interpret code. To know more about the Float Property check out these links:
Using CSS Floats for Layout - Understanding CSS Float
Does CSS float?
__________________
My Nook | My Biz

Last edited by sands : 04-07-2008 at 10:37 PM.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why use background images? frobn Accessibility and Usability Forum 11 03-04-2008 04:09 PM
Black background with white text. Any chance of a penalty? Aldo Google Discussion Forum 18 07-19-2005 03:35 AM
Sliced Background Image Hush Graphics & Design Discussion Forum 1 02-04-2004 02:16 AM
Photos on White Background Shot From Above nokturnalmuse Graphics & Design Discussion Forum 11 11-27-2003 09:43 AM
How do I get rid of white around images on Web photos vintagedge Graphics & Design Discussion Forum 5 11-01-2003 10:51 AM


Search Engine Optimization by vBSEO 3.2.0