[CSS] – Container zentriert setzen

Hallo

für das Archive erkläre ich hier ganz kurz, wie man einen CSS div container mittig setzt.

[css]
div#maincont {
width: 400px;
margin-left: auto;
margin-right: auto;
}
[/css]

oder:
[css]
div#maincont {
width: 400px;
margin-left: auto auto auto auto; /* oben rechts unten links */
}
[/css]

It's only fair to share...Flattr the authorShare on FacebookTweet about this on TwitterShare on LinkedInEmail this to someone

Related Posts:

  • No Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.