vicious Posted October 1, 2008 Share Posted October 1, 2008 hey guys, i've a pic with some small writing underneath it, is there a way to centre both of them? they are in <p> </P> tags and i'm using xhtml if thats any help. i tried :p {float : center;} but nothing happened Quote Link to comment Share on other sites More sharing options...
kevin Posted October 1, 2008 Share Posted October 1, 2008 Have you tried text-align:center;You will have to apply this to the container element jsyk. Quote Link to comment Share on other sites More sharing options...
Max™ Posted October 2, 2008 Share Posted October 2, 2008 Kevins way should work. If not, try putting it in <div> tags. Quote Link to comment Share on other sites More sharing options...
vicious Posted October 2, 2008 Author Share Posted October 2, 2008 that worked for me, thanks. i've only been at this for a week now so excuse the simple question! Quote Link to comment Share on other sites More sharing options...
kevin Posted October 2, 2008 Share Posted October 2, 2008 NP, just remember that for images you have to center their container element. Not strictly the image. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.