Aligning text and image in center

Author Topic: Aligning text and image in center  (Read 1950 times)

Offline Nicpoint45Topic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 55
  • Karma: 3
Aligning text and image in center
« on: 04-21-2010, 16:06:44 »
How would I align the text and images in a single div? Would you just use padding and margins?


Offline Seofinder

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 0
  • Posts: 53
  • Karma: 2
Re: Aligning text and image in center
« Reply #1 on: 04-21-2010, 16:07:41 »
Please try it out

<IMG SRC="book.gif" ALIGN="----" WIDTH="70" ALT="A book">

I think it will work definitely to solve your problem..

Offline bigzee

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 33
  • Karma: 3
Re: Aligning text and image in center
« Reply #2 on: 05-02-2010, 21:47:05 »
to center the text within a block level you can use:

text-align: center;

to center a div you can use the margins:

margin: 0px auto;

Hope that helps matey!


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
652 Views
Last post 08-05-2011, 03:20:38
by Walalayo
19 Replies
2375 Views
Last post 12-19-2012, 22:16:26
by siljajoseph
0 Replies
1107 Views
Last post 09-06-2011, 03:44:27
by Walalayo
0 Replies
1044 Views
Last post 10-28-2011, 20:26:16
by Walalayo
0 Replies
405 Views
Last post 10-17-2014, 18:37:25
by chr2014