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
Background img not repeating
Old 06-18-2009, 12:59 PM Background img not repeating
wildbackpacker's Avatar
Extreme Talker

Posts: 162
Name: Colton
Location: Utah, USA
Trades: 0
On one of my web pages, I have a background image that repeats, but it doesn't repeat after it reaches the height of the 'main' div. If your browser window is taller than 571px, the background image stops repeating and just shows the black background. This is some of the css that results in my page looking like this, http://coolestontheweb.webs.com/. Any ideas?

Code:
html {min-height: 100%;}

* {
    margin: 0;
    padding: 0;
}

body {
    background: #000000;
    color: #282828;
    font: normal 62.5% Tahoma,sans-serif;
    padding-top: 2px;
}


.inner-container {
    border: 0px solid #000000;
    font-size: 1.2em;
    margin: 0 auto;
    padding: 0px;
    width: 750px;
    height:570px;
    background-color: #222;
    background-image: url(images/bg.jpg);
    background-repeat: repeat;
    back

}

.outer-container {
    padding-bottom: 0px;
    background-color: #000000;
    background-image: url(images/bg.gif);
    background-repeat: repeat;
    
}


.main {
    
    height:571px;
    padding: 0px 0px 0 0;
}
__________________
Colton
Wild Backpacker

Please login or register to view this content. Registration is FREE
wildbackpacker is offline
Reply With Quote
View Public Profile Visit wildbackpacker's homepage!
 
 
Register now for full access!
Old 06-18-2009, 01:20 PM Re: Background img not repeating
wildbackpacker's Avatar
Extreme Talker

Posts: 162
Name: Colton
Location: Utah, USA
Trades: 0
Also, I can't find a solution that works to center the main div vertically. Any help? Thanks for your help in advance!
__________________
Colton
Wild Backpacker

Please login or register to view this content. Registration is FREE
wildbackpacker is offline
Reply With Quote
View Public Profile Visit wildbackpacker's homepage!
 
Old 06-18-2009, 01:41 PM Re: Background img not repeating
EricReese's Avatar
Super Talker

Posts: 137
Name: Eric Reese
Location: Maryland, USA
Trades: 0
Hi,

Well first off, I doubt you want the image to repeat because of the cloud. I do assume that you want the color images in the column to repeat with the content. To do this, you need to cut your image into seperate pieces and apply the image to each element of the page (left column, middle column, right column, footer, etc...)

It does repeat, actuaally, try doing repeat-y instead of repeat. Then set the height to like 1500px, and add more content. As for your vertical aligning issue, there is no set property that does this for you so you will need to incorporate some techniques to do this. Check out some of these articles.

http://murphy.cz/victoria-s-vertical-centering/
http://www.jakpsatweb.cz/css/css-ver...-solution.html

Cheers
__________________
I am 17 years old.Looking for Web Design Job(s). If interested use my
Please login or register to view this content. Registration is FREE


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

Funny Line- "I'll Twitter your Yahoo! until I Google all over your FaceBook :D
EricReese is offline
Reply With Quote
View Public Profile Visit EricReese's homepage!
 
Old 06-18-2009, 02:59 PM Re: Background img not repeating
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
How about a much easier solution ? Set the diagonal background on the <body> instead of the outer container . You really don't want to go putting on set heights, it may come back to bite you later. The other alternative is to use the 100% height on #outer_container - set height:100% on html, body, and then the outer container and it should work.
__________________
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 06-20-2009, 05:08 PM Re: Background img not repeating
wildbackpacker's Avatar
Extreme Talker

Posts: 162
Name: Colton
Location: Utah, USA
Trades: 0
Thanks ladynred! It worked! And thanks your help too eric!
__________________
Colton
Wild Backpacker

Please login or register to view this content. Registration is FREE
wildbackpacker is offline
Reply With Quote
View Public Profile Visit wildbackpacker's homepage!
 
Reply     « Reply to Background img not repeating
 

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.25522 seconds with 12 queries