Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
question about background image
Old 10-11-2009, 06:44 AM question about background image
Ultra Talker

Posts: 254
Trades: 0
question about background image

i am using 3 divs which contains a background image in each of the 3 divs name top btm and ctr

my question is about the ctr div, the background image i have used has a width of 235px and height of 125px, if the content will be small and can fit within 125px then there is no issue, however the amount of content that i need in the ctr div is beyond 125px

as you will notice from the link i have given to the page below for this example, if i use a background color closer to the background image then a clear gap appears in the ctr div where the content is, also the background image of the ctr div has a small white color on left and right side so if i use a background color as the content is more than 125px that white color disappears and the look of the center div is not what i want


so should i simply use a solid background color for the entire ctr div

please advice.

thanks.

this example with the 3 images is available at
http://www.sudhakargolakaram.co.in/background.html


following is the code

<div class="bgtop"></div>

<div class="bgctr">
<p>Lorem ipsum dolor sit amet, consetetur sadi pscing sed diam</p>
<p>Erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Lorem ipsum dolor sit amet, consetetur sadi pscing elitr, sed diam </p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean ut lectus eu enim dapibus placerat. Aenean cursus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce wisi mi, auctor et, tincidunt in, fermentum sed, mauris. Ves</p>
</div>

<div class="bgbtm"></div>

.bgtop{
float: left;
width: 235px;
height: 10px;
background: url(topbg.jpg) no-repeat;
}

.bgctr{
float: left;
width: 215px;
height: auto;
background: #dedede url(ctrbg.jpg) repeat-x;
padding: 0 10px 0 10px;
}

.bgbtm{
float: left;
width: 235px;
height: 10px;
background: url(btmbg.jpg);
}
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-11-2009, 01:18 PM Re: question about background image
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You need a background image that will tile both vertically AND horizontally, you have it only repeating horizontally.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-15-2009, 06:09 PM Re: question about background image
Clarence_82's Avatar
Skilled Talker

Posts: 90
Name: Clarence
Trades: 0
Just make sure your middle section can repeat vertically and seamlessly then set it to do so. Pretty easy fix.
__________________
-Clarence Cowan

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Clarence_82 is offline
Reply With Quote
View Public Profile
 
Old 10-16-2009, 07:06 PM Re: question about background image
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
you're working with gradients and rounded corners... you should have 3 or 5 images....

1 for top or 2 for top (rounded top and top gradient)
1 for mid
1 or 2 for bottom same as top

the mid section bg should be
| border | white space |||||||||||||||||||| gray ||||||||||||||| white space | border |

but this only works if you have fix widths for you divs
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to question about background image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15441 seconds with 12 queries