How do i create the left and right spaces for uses such as adding a side menu or advert space? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do i create the left and right spaces for uses such as adding a side menu or advert space?

20th Jul 2016, 12:32 PM
BRIAN KIPROTICH
BRIAN KIPROTICH - avatar
6 Answers
+ 1
The space is "created" automatically when you float or position the elements correctly.
20th Jul 2016, 1:05 PM
ZinC
ZinC - avatar
+ 1
When you float an element, you have to clear the float for the element that comes after it: clear: left; clear: right; or clear : both; Then they'll have the default left positioning. To center these elements, give them a width and margin: 0px auto; /adjust the margin*/. Don't use tables for layout.
20th Jul 2016, 4:31 PM
ZinC
ZinC - avatar
0
if i float right and left ...how am i able to centre the rest of the body ?
20th Jul 2016, 2:12 PM
BRIAN KIPROTICH
BRIAN KIPROTICH - avatar
0
do i have to use tables ?
20th Jul 2016, 2:13 PM
BRIAN KIPROTICH
BRIAN KIPROTICH - avatar
0
do i have to use tables ?
20th Jul 2016, 2:13 PM
BRIAN KIPROTICH
BRIAN KIPROTICH - avatar
0
what you want to create?
20th Jul 2016, 7:14 PM
rahul swami
rahul swami - avatar