Phill, When specifying a width of 100%, it does not mean that it takes as much space as possible. Instead, specifying a width of 100% means that the width be be EQUAL to the width of it's parent element.
So what you should do is go check that it's parent elements have the desired width. You might have to specify width: 100% all the way up to a parent element that has an absolute size. If not, specify width: 100% all the way up to body. Let me know if that helps, Richard Aday On Fri, Jan 2, 2009 at 12:02 PM, Jamie C. <[email protected]> wrote: > 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 >> >> >> > > > > -- -Richard Aday --~--~---------~--~----~------------~-------~--~----~ -- 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] -~----------~----~----~----~------~----~------~--~---
