Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Why is the div background box not growing?

Reply
Thread Tools

Why is the div background box not growing?

 
 
saurabh9
Guest
Posts: n/a
 
      10-10-2008
Hi,
if you open the following site in Firefox 3, the green background is
not growing in height with the text content. This seems to be working
fine in Internet Explorer 6 though. What have I done wrong?

http://www.saurabhkumar.com/rac/school/
 
Reply With Quote
 
 
 
 
saurabh9
Guest
Posts: n/a
 
      10-10-2008
On Oct 10, 12:17*pm, Ben C <(E-Mail Removed)> wrote:
> On 2008-10-10, saurabh9 <(E-Mail Removed)> wrote:
>
> > Hi,
> > if you open the following site in Firefox 3, the green background is
> > not growing in height with the text content. This seems to be working
> > fine in Internet Explorer 6 though. What have I done wrong?

>
> >http://www.saurabhkumar.com/rac/school/

>
> Replace height: 30em on #body with overflow: hidden.
>
> Seehttp://netweaver.com.au/floatHousefor explanation.


Thanks it worked!
 
Reply With Quote
 
 
 
 
Bergamot
Guest
Posts: n/a
 
      10-10-2008

saurabh9 wrote:
> On Oct 10, 12:17 pm, Ben C <(E-Mail Removed)> wrote:
>> On 2008-10-10, saurabh9 <(E-Mail Removed)> wrote:
>>
>> > if you open the following site in Firefox 3, the green background is
>> > not growing in height with the text content.

>>
>> >http://www.saurabhkumar.com/rac/school/

>>
>> Replace height: 30em on #body with overflow: hidden.

>
> Thanks it worked!


Now you can fix the next problem - spacing in the navigation bar when
the text line wraps. Try making your text size larger and/or the browser
window narrower and see what happens.

--
Berg
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
DIV background-repeat background-image? For shadow effect jc ASP .Net 3 03-19-2008 04:19 PM
DIV background-repeat background-image for shadowing effect jc HTML 1 03-19-2008 02:16 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM



Advertisments