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
Sidebar's bakcground image doesn't repeat right!
Old 01-25-2011, 01:29 PM Sidebar's bakcground image doesn't repeat right!
Nors's Avatar
Average Talker

Posts: 22
Name: Viola
Trades: 0
Heya people! Long time, no see. D:

I have problem with a sidebar/box's background image. It doesn't repeat all the way down. As you can see here:
Link:
http://alolitaslogbook.blogg.se/2011...rufflebut.html
(Please, Ignore random test post and long loading time. And scroll down)

Image:


I think this should be quite easy to fix, but I just can't figure out a solution D: And the CSS & HML can you find by viewing the source code.

Thanks in advanced!
Nors is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-26-2011, 09:22 AM Re: Sidebar's bakcground image doesn't repeat right!
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
It's only going to be 768px high because that is the min-height you have set. If you did not set that, the sidebar bg would have stopped after the menu.

After the 768px, there is no content. If there is no content there is no reason for the bg image to repeat.

You'd be better of making a slice of the entire bg(paper and sidebar) then having that all repeat. Then they will be even heights without needing "min-height" which really isn't going to solve anything.

Last edited by racer x; 01-26-2011 at 09:25 AM..
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 01-30-2011, 04:09 AM Re: Sidebar's bakcground image doesn't repeat right!
Nors's Avatar
Average Talker

Posts: 22
Name: Viola
Trades: 0
Oh I see. So I should put the side and content image in to one. And then have boxes with the content "over"/"on" it. But how should I do that? In which box should I put the image in? And how should I align the boxes then? Gah *confused*.

Thanks in advanced!
Nors is offline
Reply With Quote
View Public Profile
 
Old 01-30-2011, 03:53 PM Re: Sidebar's bakcground image doesn't repeat right!
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
My suggestion is based on a concept of faux columns here http://www.alistapart.com/articles/fauxcolumns/.

This is [IMO] the easiest way to achieve what you want. Not the only way though. There are javascript methods, etc.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 02-02-2011, 01:01 PM Re: Sidebar's bakcground image doesn't repeat right!
Nors's Avatar
Average Talker

Posts: 22
Name: Viola
Trades: 0
Oh thanks. But it still doesn't repeat all the way down! D: And when I remove min-height: 770px; the image doesn't show up! Gah! I really thought I had it, but no. The image is in a new box, container.
Please help.
Thanks in advanced.
Nors is offline
Reply With Quote
View Public Profile
 
Old 02-02-2011, 04:13 PM Re: Sidebar's bakcground image doesn't repeat right!
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
If you are using ONE image for the content background (both the left and sidebar content) then the main background for both should repeat - as long is there is content in either column. (It would repeat to whichever was tallest)

Try adding #container { overflow:hidden; }

When all the content within a div parent is floated, the parent thinks there is nothing there. (As in: "Div parents, do you know where your children are?" -- hehe.)

The better way to contain floated elements in a parent is mentioned here

Good luck!

Last edited by racer x; 02-02-2011 at 04:21 PM..
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 02-03-2011, 10:06 AM Re: Sidebar's bakcground image doesn't repeat right!
Nors's Avatar
Average Talker

Posts: 22
Name: Viola
Trades: 0
Ah! I see! Thanks a lot! It works fine now
Nors is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Sidebar's bakcground image doesn't repeat right!
 

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