Streaming live at 10am (PST)

Issues with making a div centre


I’m having issues making “footer div” to centre in a col I’ve tried number of methods but no joy.

Some reason there all going to the left.

You need to assign a width (maybe 80%) to your footer div.And you’ll need to put your image inside the footer div if you want it to come along with the text.

Cute site! :slightly_smiling:

Good luck!

hmm strange, the image is inside the footer div but no joy?

Ah, remove the float from your footer div. :slight_smile:

Still not quite right, the FAQ is miles away from its image which I guess because its only 3 letters… Even if the FAQ was next to the image it wouldn’t still be quite central.


Part of it is that your structure is flipped. It should look like this:

Footer Div (centered, with some width, and no float)
– Image (float: left, clear: none)
– Text (float:left, clear: none)

Sorry, I assumed that you would make these changes. Make sure your elements are in the order you want them when you’re applying floats and clears to them. In your case, image first, then text inside your floater div.

Hey @Matty I tried the following style changes:

Remove the float and clear styles from your text fields, set them to display: Inline. Then change your font line-height settings to about 50px (or the same height as your image heights). And set your text to align center.

Here’s a quick GIF:

​Please let me know if this solves the problem, if not, I’m happy to help further :slight_smile:

Thanks both, worked a treat.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.