Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Floating of DIVs doesn't work
01-31-2014, 09:19 PM #1
- Join Date
- Jan 2014
- Thanked 0 Times in 0 Posts
Floating of DIVs doesn't work
Hi, I downloaded template and everything was ok. After I make some changes and now it doesn't work. But I doesn't understand HTML. I read about that and it should be something with floating of DIVs. But I really can figure it out. Can you please give me a hint?
There's source code: http://gazellafreeware.1apps.com/
And problem: http://s8.postimg.org/z5zwnzytf/problem.png
01-31-2014, 11:00 PM #2
- Join Date
- Dec 2006
- Thanked 1,827 Times in 1,811 Posts
There's really no way to tell what went wrong from the information you've given us. The screencap shows it broke but doesn't give any clue as to why. It's always best to post a link to the test site, we can get the markup and CSS from that.
In the demo of the template you link to,
.rightare floated inside
.contis 900px wide so any floats you put beside each other inside that containing element could not add up to a width bigger than that.
Have a quick study of the box model to see why. See the box model here. The box model says that whatever you put inside an element cannot be larger than that element. margin/padding/border all count when figuring width/height.