[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

Div relative positioning white space where div would ordinarily go

Hello. I'm using text-align:center in my body to center a div so it will float horizontally when the screen stretches. In my main body div container I have text-align:left to readjust the content in the floating space. Problem is I have to position my divs relative and there is all this huge white space beneath my divs where they would otherwise go.

I understand that this is supposed to happen, but how do I get rid of it. I've tried wrapping divs a whole bunch of different ways.

Please help it is driving me crazy!!! thanks in advance!
0
animated405
Asked:
animated405
1 Solution
 
David S.Commented:
The best way to get rid of it is to use a different positioning/layout technique. Floats and margins are very useful.
0
 
animated405Author Commented:
sory for the late response, got passed that and now into another issue. thanks again not sure why i got caught up on relative positioning...
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now