+ 1

how to make a webpage with left and right padding in the center??

4th Oct 2016, 3:56 PM
rupali magar
rupali magar - avatar
11 Answers
+ 1
Margin:auto
1st Nov 2016, 2:29 AM
Lisbeth Felix
0
without padding. display: block; margin: 0 auto:
4th Oct 2016, 5:36 PM
HawkEye
HawkEye - avatar
0
i dont understand can u plz explain
4th Oct 2016, 5:37 PM
rupali magar
rupali magar - avatar
0
how?
4th Oct 2016, 5:40 PM
rupali magar
rupali magar - avatar
0
try with html file. you will see.
4th Oct 2016, 6:41 PM
HawkEye
HawkEye - avatar
0
I probably do not understood your question...but...if you want to center a div you must set margin: 0px auto; in the CSS
4th Oct 2016, 7:07 PM
Scotti
Scotti - avatar
0
scotti did I say something else ?
4th Oct 2016, 7:24 PM
HawkEye
HawkEye - avatar
0
how to text-align on parent box ?
4th Oct 2016, 8:32 PM
Muhammad Gulam alkahfi
Muhammad Gulam alkahfi - avatar
0
i want my webpage in center with left and right free space.
5th Oct 2016, 3:04 AM
rupali magar
rupali magar - avatar
0
depends where you want to position the content. explain more of what you want. the q is too ambiguous.
7th Dec 2016, 1:07 PM
ene sorin
ene sorin - avatar
0
why display:block; goes here?
20th Dec 2016, 3:21 PM
Wolfinho