1

Possible Duplicate:
How to style in HR on left and right hand side of div?
How to make a line before and after my h1 tag?

I need to do something like that in HTML and CSS.

The Format

"-------------------- MY Footer ------------------------------"

I need to make it at the center of my screen using HTML and CSS.

Community
  • 1
  • 1
HTML Man
  • 937
  • 4
  • 16
  • 40

3 Answers3

0

Exampe: (CSS for 'footer')

margin: 0 auto;
width: 600px;
Riz
  • 9,703
  • 8
  • 38
  • 54
0

a div with .centered {width: 100% , text-align:center } as the css class And if the css property text-align: center doesn't work you can use the one from below

You can use a div, with a class like the one from below .center{ Left: 50% } that way you can have aligned in the center of the screen

Eduardo Crimi
  • 1,551
  • 13
  • 13
0

If you want to center the text then use text-align: center; if you want to center the div where the text is than first give the div - container a width e.g: width: 200px; than set margin: 0 auto;

Rafael Marques
  • 797
  • 1
  • 8
  • 18
  • I came here to find out how to get text to break up a line like this: ----------Breaking the Line----------------------------. like at the top of a box to show a new section of the page. Any Ideas? – Travis Heeter Oct 07 '12 at 22:18