Phill,

Try adding overflow:auto to that div's style definition. If that doesent
work you might need to post a link so we can see what's happening.

Jamie

On Wed, Dec 31, 2008 at 2:31 PM, Phill <[email protected]> wrote:

>
> Hi guys,
>
> I have been having a problem with my background <div> not displaying
> in firefox unless I have text in it. I have seen various posts about
> this on the internet but they all seem to fizzle out right before the
> answer gets posted.
>
> Essentially everyone suggests specifying width and height attributes
> and that this resolves the problem. I have already done this however
> the background only displays when I specify absolute values rather
> than 100%.
>
> The reason I specify 100% is because the content I have which sits
> inside another div within this background div positions itself in the
> centre of the screen by using auto margin. If I specify absolute
> values the content centres itself absolutely as well which means it
> does not move to the centre when the screen is re-sized and it is not
> centred depending on the absolute values I specify.
>
> Does anyone know of a way I get can the <div> to display using 100%
> width/height values.
>
> Thanks for the help
>
> Phill
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to