All I want to do is put a line between paragraphs. I have an image I want to use but I cannot get it centered. How can this be done. I would like to know how to do it with css and html ( Im trying to learn this stuff). Ive tried style="text-align: center" and it doesnt work. Thank you in advance.
Centering an image
Started by Krimson, May 29 2006 06:17 PM
3 replies to this topic
#1
Posted 29 May 2006 - 06:17 PM
#2
Posted 29 May 2006 - 06:30 PM
If you want a line, I think you want to use an <hr> tag. If you have have an image you want to use, you could use it as the background-image for the hr and then center it using text-align.
#3
Posted 30 May 2006 - 05:31 AM
Or....
hr {
margin-left: auto;
margin-right: auto;
}
Edited by .Matt, 30 May 2006 - 05:31 AM.
#4
Posted 30 May 2006 - 12:16 PM
Keep in mind, when using the margin trick, you need to specify a width for it to work.
.center { width:100px; margin: 0 auto; }
And yes, i used shorthand Edited by rc69, 30 May 2006 - 12:16 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
