Aligning text and image in center

Author Topic: Aligning text and image in center  (Read 1623 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, 18:06:44 »
How would I align the text and images in a single div? Would you just use padding and margins?

Seo Forum

Aligning text and image in center
« on: 04-21-2010, 18:06:44 »

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, 18: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, 23: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
519 Views
Last post 08-05-2011, 05:20:38
by Walalayo
19 Replies
1989 Views
Last post 12-20-2012, 00:16:26
by siljajoseph
0 Replies
730 Views
Last post 09-06-2011, 05:40:20
by Walalayo
0 Replies
781 Views
Last post 09-06-2011, 05:44:27
by Walalayo
0 Replies
811 Views
Last post 10-28-2011, 22:26:16
by Walalayo