Make div flow across screen
My parent div has a width of 980px, but I want the div to have a background colour of #171717, 150px high, and to flow from the left of the screen to the right without making it have the horizontal scroll bar. How do I do this?
Also, I want to store icons in the div, 3 to be particular, how do I space them evenly whole using the width of 980px like the 'grandparent' div?
I have a feeling this is not what you want:
How to equally space them. Used the parent height and width.
Height 150 - 50 = 100. Divide that by two and it becomes the top and bottom margin.
Width 980 /3 = 326.6 The width space needed by one smaller div. Then 326.6 - 100 = 226.6. And divide that by 2 = 113.3 the left and right margins.
|All times are GMT +1. The time now is 01:01 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.