September 9, 201214 yr I'm having an issue where an image will not center in side its DIV. Its on the page: http://www.aliceshawphotography.co.uk/aytm.html . The title ('Adjust yourself to midnight') which is actually an image should be cented in the DIV called 'rightColumn'. I have given it the standard 'margin:0 auto' in CSS but it won't center. Can anyone help me?
September 9, 201214 yr A few options here, this works but will align everything centre (checked with firebug) #rightColumn { background-color: transparent; float: right; height: 500px; margin: 0; padding: 0; position: relative; width: 75%; text-align: center; } may be worth putting the image in its own div and centering that div to center
September 9, 201214 yr Author Thanks I put the title inside a DIV and cented that one and it works fine.
September 9, 201214 yr Thanks I put the title inside a DIV and cented that one and it works fine. Give the man a +1 then!
Create an account or sign in to comment