ulthane — 2011-12-25T02:57:57-05:00 — #1
i got a few divs in my website that are used to make a background color across the screen with a width of 100%, however the problem is that screens that doesn't see all the content (having a vertical-scrollbar) when they scroll to the sides they'll see uncolored background
my question is how to make the bg color affect the whole page even when the content is over the viewpoint
i hope you understood what i mean, im at uni atm so i cannot show any example but i think its easy enough to understand
ralphm — 2011-12-25T04:42:54-05:00 — #2
Presumably your content won't be width 100%, so set a min-width on the color divs so that they can't get smaller than the content.
paulob — 2011-12-25T06:40:50-05:00 — #3
Yes as Ralph said you will need to set a min-width (in pixels or ems) on each 100% element equivalent to the largest fixed width element it contains. If all containers are within a main parent then addressing the main parent should suffice.
ulthane — 2011-12-25T07:48:53-05:00 — #4
thanks, that solved the issue