ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Quick Web Design Q.



mas

  MK7 GTD & Mini GP
I seem to have come across a glitch when designing a new website.

I have a Div, which directly below I want to sit another div flush to the bottom edge. But, even when I set the CSS to 0px Margin etc... I still get a gap above the Div below?!

Like so....

<div id="Wrapper">

<div id="Inner">

Hello im a big box

</div>

</div>

-----//This is where I am getting a gap//------

<div id="Wrapper 2">

<div id="Inner 2">

Hello im a big box

</div>

</div>

I'm confused?!
 

mas

  MK7 GTD & Mini GP
THis will tell you what I'm trying to do,Ive coloured in the box to make it easier to understand....

6892998085_7293c2dd19_b.png

Screen Shot 2012-02-17 at 20.11.03 by Stickars, on Flickr
 

mas

  MK7 GTD & Mini GP
Hi C.J.

Sorted it, it was my fault.... donkey.

On the nab section above I had set the height of the white div to 100% of its container... but, with the padding it pushed it outside. I forgot when using 100% it adds the padding on top.
 


Top