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.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Parent div not growing
Old 06-18-2007, 07:02 AM Parent div not growing
jag
Junior Talker

Posts: 2
Name: Nitish
Trades: 0
Hi all

here's my css file:
http://domah.net/lfc/css/style.css

and here's the html page:

http://domah.net/lfc


My prob no 1:

You will see a white background. This consists of a mainBodyDiv which contains a leftColDiv and a rightColDiv. The problem is that as content gets added to them, these two divs overlap the mainBodyDiv in Firefox.How can i solve this problem?

My prob no 2:

Everything in the website is contained inside a wholeSiteDiv. I used 'body { text-align:center;}' to center it in the page.However, this does not work in Firefox.Does anybody know how to align a div in the center of a page using CSS.Else i am left with html <center> tags, which i dont want to use.

Thanks

Last edited by jag; 06-18-2007 at 07:07 AM.. Reason: mistakes
jag is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-18-2007, 11:02 AM Re: Parent div not growing
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
For problem #2, add
Code:
margin:auto;
into your css for your wholeSiteDiv.
I am still working on problem #1
angele803 is offline
Reply With Quote
View Public Profile
 
Old 06-18-2007, 01:20 PM Re: Parent div not growing
jag
Junior Talker

Posts: 2
Name: Nitish
Trades: 0
Thanks Stephanie, problem #2 is indeed solved
jag is offline
Reply With Quote
View Public Profile
 
Old 06-18-2007, 02:10 PM Re: Parent div not growing
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
What's with the slashes in the rules: //w/idth ?? You should NOT use hacks like this. Use conditional comments to target IE and create separate CSS files that are called by those CC's and contain ONLY those rules needed to make IE behave.

As for problem #1 - you must CLEAR your floats. There are several methods listed here:
http://css-discuss.incutio.com/?page=ClearingSpace

Once you clear the floats, the divs will contain it's children and your problem should be solved.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Parent div not growing
 

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