css - How to create a 4-columned, liquid footer? -
The content of the website is fine-tuned and the left and the minimum width and the left fluid I think is below But now I'm having trouble creating a liquid, 4-columnged footer to go downstairs. The way I have it, columns move like a ladder.
In order to line it correctly with the same amount of space between the window spreading, all of them need the columns themselves to be of different width.
Edit
I realized that the mistakes I made, the columns had to take action, so now I can move forward to learn about space. Equally in the footer. I have CSS:
#footer .col1, #footer .col2, #footer .col3, #footer .col4 {float: left; Padding: 10 px 0; } #footer .col1 {width: 75px; } #footer .col2 {width: 375px; } #footer .col3 {width: 325px; } #footer .col4 {width: 100px; }
I used to get breadth in the form of percentage, but it did not even get the place as I thought it would be. Thanks for all your help!
The following will do the following for you:
HTML
& lt; Div id = "footer" & gt; & Lt; Div class = "column" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "column" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "column" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "column" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;
CSS
#footer .column {float: left; Width: 25%; Background: Red; } #footer .column div {margin: 10px; Height: 100 pixels; Background: blue; }
and
I nested & lt; Div & gt;
Using the structure to show how you can get a liquid column with a certain distance between When the dimension of% and fixed width is used, you can not apply the same element if you want to make sure about width in a live site, instead of making nested devil structure, fixed in nested elements Will make more sense to implement horizontal margins.
Your column is likely to go down because they are very broad, to fit together in the same horizontal line, you will see in my example that the width of the 4 outer divas increases to 100%. Something else (called margin / padding is added) will cause the drop you see.
Comments
Post a Comment