English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Sorry about this silly question but I am new to html.
Here is the code for my div tag so far:



I am trying to figure out how to center it. I tried to put align="center" inside my code but it does not work. What else can I do to center it into my page? Thanks!

2007-12-14 10:12:09 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

#ivoog
{
float: none;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}

2007-12-14 10:17:49 · answer #1 · answered by star.seem 1 · 0 1

For centering take

nothing to else you can set content using this tag.

2016-05-23 23:53:11 · answer #2 · answered by ? 3 · 0 0

Your width: and height: properties are not affecting your background-image, just FYI.

As far as the background alignment is concerned, you want background-position: center center;
(or maybe you want background-position: top center; or bottom center; ?)

w3schools is one of my best references for everything. HTML, CSS, even Javascript, and the DOM (when you get that far).

http://www.w3schools.com/

2007-12-14 10:22:26 · answer #3 · answered by vxjasonxv 1 · 0 0

just put

after the div tag.

2007-12-14 10:20:19 · answer #4 · answered by Anonymous · 0 2

before the tag
and
after the
tag if remember correctly

2007-12-14 10:16:14 · answer #5 · answered by liv3wire ~ 3 · 0 3

margin: 0 auto;

2007-12-14 10:16:33 · answer #6 · answered by daa 7 · 0 1

fedest.com, questions and answers